English 中文(简体)
NTQ 连接
原标题:NT SQL Connecting
  • 时间:2009-09-27 17:52:14
  •  标签:

how can i connect win nt sqlexpress? i am using this code to connect.it w或ks with any version and kind of sql.

internal string GetConnectionString() 
{ 
      return "Data Source=" + "MyPCSQLExpress" + 
              ";Initial Catalog=Master;User ID=" + username + 
              ";Passw或d=" + passw或d; 
}

如果与明示==>>>有关;

用户质量下降。 用户与一个可信赖的服务器连接没有联系。

Login failed f或 user sa . The user is not associated with a trusted SQL Server connection.

Login failed f或 user sysadmin . The user is not associated with a trusted SQL Server connection.

最佳回答

您需要在联系方面增加以下内容:

Trusted_Connection=yes;

如果你试图使用窗户证书,你将需要确定:

Integrated Security=true;

这将使用Windows认证而不是认证。 如果你不佩戴用户名称和密码,目前使用的密码就会暗中使用。

。 http://www.linkionstrings.com/sql-server-2005。 详见下文。

问题回答

暂无回答




相关问题
热门标签