WinForm程序连接数据库错误(帮帮我吧!)
Visual Studio2005中做WinForm程序连接数据库提示错误
错误如下:
在建立与服务器的连接时出错。在连接到 SQL Server 2005 时,在默认的设置下 SQL Server 不允许进行远程连接可能会导致此失败。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接)
SqlConnection con = new SqlConnection("Data Source=SQLEXPRESS;Initial Catalog=aaa;Integrated Security=True;Pooling=False");
con.Open();