小编Nee*_*eru的帖子

使用sql身份验证的sql连接字符串

我正在使用这个sql连接字符串:

string connection = "data source=OSBORNECHARLES2;initial catalog=TWO;
integrated security=False;User ID=userid;Password=PWD";
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

已成功与服务器建立连接,但在登录过程中发生错误.(提供者:共享内存提供者,错误:0 - 管道的另一端没有进程.)

如果我设置integrated security=True;它正在工作.
如果我使用其他窗口用户登录,则会出现错误.

你能告诉我为什么我会收到这个错误.

c# sql-server sqlconnection

5
推荐指数
2
解决办法
4万
查看次数

标签 统计

c# ×1

sql-server ×1

sqlconnection ×1