我正嘗試配置Azure存儲模擬器2.4與本地SQL Server 2012一起使用。
當我執行此命令時,我無法創建數據庫。如何將Azure存儲模擬器配置爲使用本地SQLServer
C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>WAStorageEmulator.exe init -server ThisPC -sqlinstance SQLEXPRESS -forcecreate
Windows Azure Storage Emulator 3.3.0.0 command line tool
Error: Cannot create database.
我的Sql Sever Manager使用服務器名稱ThisPC \ SQLEXPRESS登錄。
請幫我瞭解我錯過了哪些信息。
-----------------更新-----------------
C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>WAStorageEmulator.exe init -server (local)\SQLExpress -forcecreate
Windows Azure Storage Emulator 3.3.0.0 command line tool Error: Cannot create database.
如果你看一下應用程序數據\本地\ WAStorageEmulator \ WAStorageEmulator.3.3.config,你會發現:
<SQLInstance>(local)\SQLExpress</SQLInstance>
感謝拉夫在提醒我的日誌,我檢查了我的事件查看器:
Cannot create file 'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\WAStorageEmulatorDb33.mdf' because it already exists
它說SQL數據庫文件存在,所以刪除它,並重試命令,工作正常,存儲模擬器也開始。 (命令工作第二次嘗試一段時間後,可能會有一些SQL緩存問題)
當您登錄通過SSMS到您的SQLExpress實例,可以在您登錄使用Windows身份驗證或你使用SQL Server身份驗證? – 2014-10-03 11:44:18
Windows身份驗證 – harshal 2014-10-03 17:49:27
嗯......這很奇怪。我執行了上面的命令和一堆其他選項,它對我來說工作得很好。你可以試試:'WAStorageEmulator。exe init -server(local)\ SQLExpress -forcecreate',看看它是否適合你? – 2014-10-03 17:54:15