出现在建立与服务器的连接时出错
请教:
我用VS2005:
conn = new SqlConnection("server=XXX\\FIRST;database=XXXX;user id=sa;password=sa");
连接SQL SERVER2000的数据库可以连上
但用
conn = new SqlConnection("server=" + this.textBox1.Text.Trim() + "\\first;database=" + this.textBox2.Text.Trim() + ";user id=" + this.textBox3.Text.Trim() + ";password=" + this.textBox4.Text.Trim() + "");
从界面上传值,就不行。
出现在建立与服务器的连接时出错。在连接到SQL Server 2005时,在默认的设置下SQL Server 不允许进行远程连接可能会导致此失败。
我没有装SQL SERVER2005数据库!