This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, I'm kind of new to jdbc. And i'm facing a problem while making a connection with the sql server ie: to give a proper url. When trying with ms-access i gave it as Connection con = DriverManger.getConnection("jdbcdbc:servData");where 'servData' is the dsn,and it works... but the same for the sqlserver it doesn't.Please help me in finding out the correct url for the sqlserver.. it's urgetn.. Thank you
[This message has been edited by rejieve alexander (edited October 18, 2001).]
did you configure your dsn? and when you create the connection the dsn is correct?
Joined: Dec 10, 2000
Hi kim, This is my code String url = "jdbc dbc:servData"; Connection con; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con = DriverManager.getConnection(url); /* where 'servData' is the dsn created for the sql server. But the connection just isn't taking place..
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Find difficulty in connecting to sqlserver