且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用C#连接到本地SQL Server数据库

更新时间:2023-02-02 23:24:52

数据源(在Visual Studio的左侧)中,右键单击数据库,然后使用向导配置数据源.将出现一个新窗口,展开连接"字符串,您可以在其中找到连接字符串

In Data Source (on the left of Visual Studio) right click on the database, then Configure Data Source With Wizard. A new window will appear, expand the Connection string, you can find the connection string in there