我在访问SQL-Server为什么会出下列错误
try
{
sqlConnection1.ConnectionString = "Data Source=.; Initial Catalog=master;Integrated security=SSPI";
sqlConnection1.Open();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message); <==这里报错
}
SQL-Server does not exist or access denied
我是参照别人文章进行操作,它最后一句是:
Save, compile and run your application (make sure SQL Server / MSDE is also running ;-)
我的SQL-Server是启动的,但MSDE和它有没有关系的.