完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,我正在尝试打开与我的SQL 2008服务器的连接,并且一直在使用提供的示例,只要我已登录它们就可以工作(我有管理权限)。但是,使用我们的测试系统用户帐户,我
我试图通过修改“Build SQL Server ConnectionString”来修改sql连接字符串,指定用户ID和密码,但是在调用时仍尝试使用登录的用户帐户域 xxx。 dbLib.OpenDatabase。 这会抛出一个SQLException:用户域 xxxI的登录失败会期望它使用连接字符串中指定的凭据吗?我的连接字符串:数据源= ServerName;初始目录= DbName;用户ID = UserId;密码=密码;集成安全性 = True; Pooling = True这里的任何人都有一个有效的例子吗?最好的问候Brian 以上来自于谷歌翻译 以下为原文 Hi All, I am trying to open a connection to my SQL 2008 server, and have been using the supplied examples and they do work as long as I am logged in (I have administrative rights). However using our test system user account, I can not make it work. I have tried to change the sql connection string by modifying the "Build SQL Server ConnectionString", specifying User ID and Password, but it keeps trying to use the logged on user account domainxxx when making the call to dbLib.OpenDatabase. This throws a SQLException: Login failed for user domainxxx I would expect it to use the credentials specified in the connection string ? My connection string: Data Source=ServerName;Initial Catalog=DbName;User ID=UserId;Password=Password;integrated security=True;Pooling=True Does anyone here have a working example ? Best regards Brian |
|
相关推荐
1个回答
|
|
发现错误,将连接字符串修改为:Data Source = ServerName; Initial Catalog = DbName; User ID = UserId; Password = Password;现在它作为指定的user.Brian连接
以上来自于谷歌翻译 以下为原文 Found the error, modified the connection string to: Data Source=ServerName;Initial Catalog=DbName;User ID=UserId;Password=Password; and now it connects as the specified user. Brian |
|
|
|
只有小组成员才能发言,加入小组>>
1296 浏览 0 评论
2378 浏览 1 评论
2199 浏览 1 评论
2068 浏览 5 评论
2955 浏览 3 评论
1136浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
759浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
943浏览 0评论
1296浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-27 12:36 , Processed in 1.333889 second(s), Total 66, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号