在sqljdbc.jar中使用Windows身份验证 [英] Using windows authentication with sqljdbc.jar
问题描述
在使用时是否可以将Windows身份验证模式用于SQL SERVER数据库 微型软件提供的JDBC驱动程序?
Is it possible to use the windows authentication mode for SQL SERVER database, while using the micro soft provided JDBC drivers?
我正在使用sqljdbc.jar.SQLJdbcVersion类文件包含以下内容:
I am using sqljdbc.jar.. the SQLJdbcVersion class file contains this:
static final int major = 2;
static final int minor = 0;
static final int MMDD = 1803;
static final int revision = 100;
有任何评论吗?
sqljdbc不能使用Windows身份验证吗?
Is there a reason why sqljdbc can not use windows authentication?
我正在使用Websphere应用程序服务器7并正在运行j2ee应用程序. 数据源是在WAS本身中创建的.
I am using Websphere application server 7 and running a j2ee application. The datasources are created in the WAS itself.
谢谢
推荐答案
是的,您可以将Windows身份验证与Microsoft提供的JDBC驱动程序一起使用
Yes you can use windows authentication with JDBC driver provided by Microsoft
jdbc:sqlserver {HOST};数据库= {DB_NAME}; integratedSecurity = true
jdbc:sqlserver{HOST};Database={DB_NAME};integratedSecurity=true
这篇关于在sqljdbc.jar中使用Windows身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!