Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
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
 
Similar Threads
jdbc:odbc with DSN less connection for MS Access
How to use String Connect with Bridge Driver ?
jdbc connection url
JDBC:ODBC bridge for remote access
JDBC connectivity