sql server express connection string

后端 未结 6 2402
北恋
北恋 2021-02-19 23:11

Is there a difference between sql server connection string and the express vesion?!

6条回答
  •  南旧
    南旧 (楼主)
    2021-02-19 23:51

    By default (though I don't recommend it1), Sql Express is installed as a named instance. That means you must connect like Server=servername.com\SQLEXPRESS as opposed to just Server=servername.com.

    As always, connectionstrings.com has the goodies.

    1 I don't recommend named instances because they run on a different port, which makes firewalling a PITA. Also, it makes little sense to me to run more than 1 MSSQL Server on a computer when you could just host multiple databases instead - so I'm not really sure what the point is.

提交回复
热议问题