wood burning stoves 2.0*
The moose likes JDBC and the fly likes Do you need a DSN when using JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Do you need a DSN when using JDBC" Watch "Do you need a DSN when using JDBC" New topic
Author

Do you need a DSN when using JDBC

Fergus Red
Ranch Hand

Joined: Apr 25, 2002
Posts: 42
Hi,
I used to use a JDBC DBC bridge when connectingfrom my web server to my database. Now I am going using the JDBC driver for MS SQl Server2000.
When using the JDBC DBC bridge I used my DSN to connect to my database. What I am wondering are DSN's used with straight JDBC drivers or do I just use straight URL with username and password passed in also?
If you have any examples fo using JDBC then that would be great.
Cheers.
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

No, you don't need to create a DSN, everything is dynamic. See this thread for links to download the driver and a link to samples.
Jamie
Fergus Red
Ranch Hand

Joined: Apr 25, 2002
Posts: 42
cheers for the help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Do you need a DSN when using JDBC