-
SQL SERVER 2005 Support in Websphere Application Server V6.0.1 (4 messages)
- Posted by: yogvinder singh
- Posted on: August 18 2006 08:16 EDT
Hi i need to use Websphere Application Server V6.0.1 with SQL Server 2005. But as such there is no mention of Sql Server2005 Support in Documentation of Websphere Application Server V6.0.1. Can anyone provide me Links for the same. Thanks in advance.Threaded Messages (4)
- Re: SQL SERVER 2005 Support in Websphere Application Server V6.0.1 by Rajib GC on August 29 2006 17:45 EDT
- Getting error by Mohamed Safir on March 05 2007 22:23 EST
-
Yes, how?! by Luiz Gustavo St??bile de Souza on August 19 2009 03:18 EDT
- Do this: by Luiz Gustavo St??bile de Souza on August 19 2009 03:32 EDT
-
Yes, how?! by Luiz Gustavo St??bile de Souza on August 19 2009 03:18 EDT
- Getting error by Mohamed Safir on March 05 2007 22:23 EST
-
Re: SQL SERVER 2005 Support in Websphere Application Server V6.0.1[ Go to top ]
- Posted by: Rajib GC
- Posted on: August 29 2006 17:45 EDT
- in response to yogvinder singh
Hi, You may use Microsoft JDBC driver (downloadable from http://msdn.microsoft.com/data/ref/jdbc/) with WebSphere 6.0.1 using datasource. Install the driver & copy sqljdbc.jar to >/lib/ext folder. I followed these steps : * WAS admin console -> Resources -> JDBC provider -> new * database type : User defined * provider type : User defined JDBC provider * implementation type : user defined * Name : Provider_SQLServer2005 * Classpath : >/lib/ext/sqljdbc.jar * Impl class name: com.microsoft.sqlserver.jdbc.SQLServerConnectionPoolDataSource * Save. * Provider_SQLServer2005 -> data source (RHS) -> new * Data source name : dsSQLServer2005 * JNDI name : jdbc/dsSQLServer2005 * Data store helper: com.ibm.websphere.rsadapter.GenericDataStoreHelper * Save. * dsSQLServer2005 -> J2EE connector architecture auth data entries -> new * Alias : scott. User id : scott. Password : tiger [assuming that user/password exists!] * Save. * dsSQLServer2005 -> Component managed auth alias <<Node01/scott>> * Save. * Test conection. Then in code: //bla bla bla... Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory"); InitialContext ctx = new InitialContext(env); DataSource ds = (DataSource) ctx.lookup("jdbc/dsSQLServer2005"); Connection con = ds.getConnection(); //bla bla bla... Related comments at http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=646099&SiteID=1 HTH. - Rajib GanChaudhuri -
Getting error[ Go to top ]
- Posted by: Mohamed Safir
- Posted on: March 05 2007 22:23 EST
- in response to Rajib GC
How do you specify the server name and the database name? I am getting a connection error when i followed the procedures that you have mentioned below. Any thoughts? -
Yes, how?![ Go to top ]
- Posted by: Luiz Gustavo St??bile de Souza
- Posted on: August 19 2009 15:18 EDT
- in response to Mohamed Safir
How to configure server and database name in this configuration steps? -
Do this:[ Go to top ]
- Posted by: Luiz Gustavo St??bile de Souza
- Posted on: August 19 2009 15:32 EDT
- in response to Luiz Gustavo St??bile de Souza
I just discoreved: You have to add this custom properties for de datasource: serverName: myserver portNumber: 1433 (optional) databaseName: ICPC