Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Creating DSN  RSS feed

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai Friends
A Strange Doubt.
Can we create the dsn name through Java Program.
When we are trying to connect to the database using Jdbc-Odbc Drivers we need to specify the dsn name.
Usually, that dsn name we have to create manually in control panel---odbc32 adminstrator.
Is it possible to create the dsn name using a java program without going for odbc32 administrator.
Thankyou VeryMuch
Yours
Rajesh
 
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what database are you trying to connect to?
I've heard this works for SQL Server using the jdbcdbc bridge:

I use this one to connect to Access:


Jamie
 
Rajesh Kumar
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Jamie,
Thankyou VeryMuch
Your Code helped me a Lot
Please Continue ur Help...by giving Good Solutions to the Members
Thanks Once Again.
Yours
Rajesh
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome! I hope you stick around the ranch and help others out that have the same problems as you.
happy coding!
Jamie
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!