2 out of 3 rated this helpful - Rate this topic

Initialize the Storage Emulator by Using the DSInit Command-Line Tool

Updated: June 7, 2012

You use the DSInit Command-Line Tool to initialize the storage emulator to point to a different database instance than the default. If you wish to use the default LocalDB database instance, it's not necessary to run DSInit.

This tool is installed by default to the C:\Program Files\Windows Azure Emulator\emulator\devstore directory, and runs automatically the first time you start the emulator.

noteNote
You must have administrative privileges to run the DSInit Command-Line Tool.

  1. Click Start, point to All Programs, and then click Windows Azure SDK.

  2. Right-click Windows Azure SDK Command Prompt, and then click Run as administrator.

  3. In the Windows Azure SDK Command Prompt window, type the following command:

    DSInit /sqlInstance:<SQLServerInstance>
    

    Where <SQLServerInstance> is the name of the SQL Server instance.

    You can also use the following command, which uses the default instance:

    DSInit /sqlInstance:.
    

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

    DSInit /forceCreate
    
    ImportantImportant
    Running this command causes all of the existing data in the local Blob and Queue service to be lost.

noteNote
You can use the DSInit Command-Line Tool at any time to configure the Windows Azure storage emulator to point to a different instance.

See Also

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.