Initialize the Storage Emulator by Using the Command-Line Tool

时间:2024-12-08 14:03:07

http://msdn.microsoft.com/en-us/library/azure/gg433132.aspx

To initialize the storage emulator

  1. Click the Start button or press the Windows key. Begin typing Windows Azure Storage Emulator and select it when it appears. A command prompt window will pop up.

  2. In the command prompt window, type the following command:

    WAStorageEmulator init /sqlInstance <SQLServerInstance>

    where <SQLServerInstance> is the name of the SQL Server instance. To use LocalDb, specify (localdb)\v11.0 as the SQL Server instance.

    You can also use the following command, which directs the emulator to use the default SQL Server instance:

    WAStorageEmulator init /server .\\

    Or, you can use the following command, which reinitializes the database:

    WAStorageEmulator init /forceCreate

Initialize the Storage Emulator by Using the Command-Line ToolImportant
Using the /forcecreate argument removes all existing storage emulator data.