IntelliJ Java IDE
The moose likes Java in General and the fly likes How to set the User data source properties through code? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "How to set the User data source properties through code?" Watch "How to set the User data source properties through code?" New topic
Author

How to set the User data source properties through code?

naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 543

in my previous application i was using MSSQL 2005 as an backend for my application, for the connectivity purpose i have used jdbc/odbc and for connection i have to do following things..
1. I need to create a new User Data Source
2. then I need to select the Driver which i have selected SQLServer
3. I need to give it a name, description etc
all i wanted to ask is how can i set this all details programatically? if yes how ?

for help all i get is this code from Connecting To Data Source


can any one explain me a how I can achieve this ?
[Thumb - 1.png]
 Filename 1.png [Disk] Download
 Description Data Source IMG
 Filesize 22 Kbytes
 Downloaded:  1 time(s)



The Only way to learn is ...........do!
 
 
subject: How to set the User data source properties through code?
 
Threads others viewed
weblogic database connection
WAS 5 - Error while connecting to Oracle datasource:
Architecture issue...common database access interface
Problem with JBoss
JDBC MSSQL 2000 connection pool manager
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com