This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Database Connectivity  RSS feed

 
shahzahid hussain
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am connect to microsoft database(SQL Server Or Access)
with out using JDBC:ODBC
If any one Achive this task plese send me mail with script
at
thanx
 
J PRAKASH76
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friend,
it is easy to connect to a microsoft's databases (mssql server, ms-access)..
use JTURBO driver to connect to the database (it is a TYPE IV driver) u can download the driver from www.jturbo.com
and code is
Connection con=null;
Class.forname("com.ashna.jturbo.driver.Driver");
con=DriverManger.getConnection("jdbc:JTurbo://servername:1433/databasename","username","password");
u can get the connection using this code..
JP
 
vikinsa
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The above code sample is good but for ms -access you need to use JDBC/ODBC driver. Com Driver is for mySQL.

Originally posted by shahzahid hussain:
i am connect to microsoft database(SQL Server Or Access)
with out using JDBC:ODBC
If any one Achive this task plese send me mail with script
at
thanx


------------------
Vikas Aggarwal
Technology Associate
http://www.vikinsa.com
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!