关于SQL的联接
帮忙看下这段代码有问题吗,执行总是提示SQL Server 不存在或访问被拒绝。
SqlConnection myConnection = new SqlConnection("server=(local)\\NetSDK;database=Northwind;Trusted_Connection=yes");
SqlDataAdapter myCommand = new SqlDataAdapter("select * from Employees", myConnection);
DataSet ds = new DataSet();
myCommand.Fill(ds, "Employees");
DataGrid1.DataSource=ds.Tables["Employees"].DefaultView;
DataGrid1.DataBind();