加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MsSql教程 > 正文

Webshpere 6.1下SQLServer 2005 驱动程序设置方法

发布时间:2020-12-12 15:44:24 所属栏目:MsSql教程 来源:网络整理
导读:首先必须是websphere 6.1 fixpack 15 以上的版本。 下面的设置方法: 1. download the Microsoft SQL Server 2005 JDBC driver version 1.2 2. unzip it 3. copy the sqljdbc jar into [drive]:/IBM/WebSphere/AppServer/lib 4. restart Web$phere service 5

首先必须是websphere 6.1 fixpack 15 以上的版本。

下面的设置方法:

1. download the Microsoft SQL Server 2005 JDBC driver version 1.2

2. unzip it

3. copy the sqljdbc jar into [drive]:/IBM/WebSphere/AppServer/lib

4. restart Web$phere service

5. open admin console

5. create the JDBC provider:

? a. open resources -> jdbc -> jdbc providers

? b. create new provider

? c. database type = "user-defined"

? d. implementation class = "com.microsoft.sqlserver.jdbc.SQLServerConnectionPoolDataSource"

? e. give it whatever name you like

? f. hit apply and hit save

6. create the JDBC data source:

? a. open resources -> jdbc -> data sources

? b. create a new datasource

? c. give it a datasoure name and jndi name (later used in your app) and click next

? d. select an existing jdbc provider (the one you just created)

? e. Datastore helper class name = "com.ibm.websphere.rsadapter.MicrosoftSQLServerDataStoreHelper" CMP is up to you. I unchecked it since we use BMP exclusively.

? f. you click finish,but you're not done. Go back into this datasource and at the bottom of the page you need to configure the database name,server name,and port. Then click apply,save,and test the datasource (may need to stop/start Web$phere).


资料来源:

http://blogs.msdn.com/jdbcteam/archive/2008/03/24/ibm-websphere-6-1-now-supports-sql-server-2005-jdbc-driver-v1-2.aspx

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读