Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Do you need a DSN when using JDBC

 
Fergus Red
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cheers for the help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic