What is the sql connection string I need to use to access localhost\SQLEXPRESS with Windows Authentication or SQL Authentication?

后端 未结 4 1478
面向向阳花
面向向阳花 2020-12-01 14:38

\'ve installed SQL Express on my PC hoping to do some practice creating tables and then modifying them. I coded a webpage in Visual Studio to, basically, SELECT * from a tab

4条回答
  •  一生所求
    2020-12-01 15:28

    Try like this:

    string connectionString = "Data Source=.\\SQLEXPRESS;Initial Catalog=test;User Id=x309;Password=abcd;";
    

    Also make sure you have enabled SQL authentication.

提交回复
热议问题