on 07-20-2006 11:24 AM
hi all
i am goutham
my dought is
what is the process to connect to database from wbedynpro ? please tell me the detailed procedure
thanks in advance
goutham.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Goutham
For the SQLServer Database Open Type
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
Connection conn= java.sql.DriverManager.getConnection("jdbc:microsoft:sqlserver://Server:Host;user=UserName;password=Password;database=DBUser");
Otherwise You can Create a Data Source alias name and conect the Databace
InitialContext initialContext = new InitialContext();
DataSource dataSource = (DataSource)initialContext.lookup("jdbc/DataSource");
java.sql.Connection conn = dataSource.getConnection();
To Create Data Source alias Refer This
Kind Regards
Mukesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.