Azure Storage Emulator fails after adding VS 2015 SDK

后端 未结 2 727
生来不讨喜
生来不讨喜 2020-12-28 13:13

I\'ve had the Azure SDK 2.5 and Tools for VS2013 installed and working fine for quite a while. Today I installed the SDK and Tools for VS2015 and now my Azure Storage Emulat

相关标签:
2条回答
  • 2020-12-28 13:54

    You can use the following process to recover from most init problems involving the database. Note that any data in the emulator currently will be lost.

    Delete the SQL instance:

    sqllocaldb stop MSSQLLocalDB
    sqllocaldb delete MSSQLLocalDB
    

    Now delete the following database files:

    %USERPROFILE%\AzureStorageEmulatorDb*.mdf
    %USERPROFILE%\AzureStorageEmulatorDb*.ldf
    

    Finally, recreate the sql instance:

    sqllocaldb start MSSQLLocalDB
    

    Then retry the emulator init.

    0 讨论(0)
  • 2020-12-28 13:56

    I tried to clean up localdb but didn't work, so anyone has an issue running storage emulator with local db can benefit from this command to run it on SqlExpress.

    Command: AzureStorageEmulator.exe init -server . -sqlinstance SQLEXPRESS -forcecreate

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