解决Azure “Failed to start Storage Emulator: the SQL Server instance `.\' could not be found.”

时间:2022-06-01 17:19:52

由于Windows 8不支持SQL Server 2008R2.(严格来说是通过.NET程序在连接SQL Server 2008R2数据库是有错误)

解决Azure “Failed to start Storage Emulator: the SQL Server instance `.\' could not be found.”

那我不得不安装SQL Server 2012.

当安装完毕以后,Azure Storage Emulator启动不了,提示以下错误。

The storage emulator had an unexpected error: Unable to start Development Storag
e..
Error details: Failed to start Storage Emulator: the SQL Server instance `.\' co
uld not be found.   Please configure the SQL Server instance for Storage Emulato
r using the `DSInit' utility in the Windows Azure SDK.

 

因为以前使用SQL Server 2008时,使用的instance是'.\’。而我新安装的SQL Server 2012的instance是SQLExpress。可以通过下面的命令来解决问题。

C:\Program Files\Microsoft SDKs\Windows Azure\Emulator\devstore>dsinit /sqlinsta
nce:sqlexpress

 

解决Azure “Failed to start Storage Emulator: the SQL Server instance `.\' could not be found.”

 

下面是整个操作过程。

解决Azure “Failed to start Storage Emulator: the SQL Server instance `.\' could not be found.”