更新时间:2023-02-22 20:50:36
查看MSDN上ConnectionString上的文档,您会找到此信息
Looking at the docs on ConnectionString on MSDN you could find this information
要连接到本地计算机,请为服务器指定(local)。如果未指定
服务器名称,则将尝试连接到本地计算机上的
默认实例。
To connect to a local computer, specify "(local)" for the server. If a server name is not specified, a connection will be attempted to the default instance on the local computer.