wood burning stoves 2.0*
The moose likes JDBC and the fly likes connecting mssql7 through odbc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "connecting mssql7 through odbc" Watch "connecting mssql7 through odbc" New topic
Author

connecting mssql7 through odbc

Varma dandu
Greenhorn

Joined: Apr 29, 2005
Posts: 16
Hi dudes,

Could anyone help me in connecting to mssqlserver7 through odbc on linux platform().

msql server resides on the windows box which i have to access via network.


this is very urgent.

Thanx
Varma
Varma dandu
Greenhorn

Joined: Apr 29, 2005
Posts: 16
Sorry this is me again.
OR could anyone tell me how to create datasource on linux platform(KDE 3.3) to a remote mssql server.

Regards
Varma Dandu.
Varma dandu
Greenhorn

Joined: Apr 29, 2005
Posts: 16
gotcha...

I just downloaded jtds jar file and kept in classpath.

and used

Class.forName("net.sourceforge.jtds.jdbc.Driver").newInstance();
Connection con = DriverManager.getConnection("jdbc:jtds:sqlserver://serverip:1433/databaseName",
"userName", "password");

Cheers
Varma Dandu.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30383
    
150

Varma,
Thanks for posting the solution!


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
wood burning stoves
 
subject: connecting mssql7 through odbc