请教:连接本地SQL时,错误提示:System.ArgumentException: 不支持关键字: “data souce”。应该如何解决?谢谢!
yyy39 2004-06-25 10:42:13 执行以下语句时,出错
SqlConnection connect = new SqlConnection("Data Souce=(local);Integrated Security=SSPI;Initial Catalog=northwind");
connect.Open();
SqlCommand myCommand = connect.CreateCommand();
myCommand.CommandText = "select * from sysfiles";
myCommand.ExecuteNonQuery();
connect.Close();
错误提示:System.ArgumentException: 不支持关键字: “data souce”。
at System.Data.Common.DBConnectionString.ParseInternal(Char[] connectionString, UdlSupport checkForUdl, NameValuePair& keychain)
请教应该如何解决?
谢谢!