您还需要更改
DataSource连接字符串。
KELVIN-PC是本地计算机的名称,并且sql server在默认实例上运行。
如果确定服务器正在作为默认实例运行,则可以始终
.在DataSource中使用,例如。
connectionString="Data Source=.;Initial Catalog=LMS;User ID=sa;Password=temperament"
否则,您需要指定服务器实例的名称,
connectionString="Data Source=.INSTANCENAME;Initial Catalog=LMS;User ID=sa;Password=temperament"



