Problem with creating .MDF file from Visual Studio 2010

后端 未结 2 605
被撕碎了的回忆
被撕碎了的回忆 2020-12-11 11:12

I am trying to create a small wpf application by using mdf.

The problem is that when I am trying to add new service-based database (.mdf) I am getting the error \"C

相关标签:
2条回答
  • 2020-12-11 11:56

    Make sure the services are running on your box. The important ones will be SQL Server, and SQL Server Agent.

    SqlServices

    0 讨论(0)
  • 2020-12-11 12:15

    Check to make sure the SQLExpress service is running.

    From a command prompt:

    sc query mssql$sqlexpress
    

    If the state returned is "1 STOPPED", then start the service with

    sc start mssql$sqlexpress
    
    0 讨论(0)
提交回复
热议问题