Connection String Error (error : 40)

后端 未结 2 408
故里飘歌
故里飘歌 2021-01-16 20:43

I have installed SQL Server 2012 Express on a Windows Server 2008 Machine. The name of the machine is \"THEMACHINE\". While installation, I set SQL Server 2012 as \"Default

相关标签:
2条回答
  • 2021-01-16 21:24

    Change Data Source=THEMACHINE to Data Source=THEMACHINE\SQLEXPRESS. Also check that the database service is running.

    0 讨论(0)
  • 2021-01-16 21:31

    Reference: Creating and Configuring Universal Data Link (.udl) Files

    Do following to Test connection and generate connection string,

    1) Create query.udl file in the desktop

    2) Double click the file to open and do the following

    enter image description here

    3)Open the Query.udl in notepad, you will find the connectionstring.

    0 讨论(0)
提交回复
热议问题