Connecting to local SQL Server database using C#

前端 未结 6 1853
后悔当初
后悔当初 2020-12-17 16:53

Suppose I have created a SQL Server database called Database1.mdf in the App_Data folder in Visual Studio with a table called Names. <

6条回答
  •  时光取名叫无心
    2020-12-17 17:04

    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

提交回复
热议问题