Azure Storage Emulator attempts to create LocalDB files in c:\Users
See original GitHub issueWhen I run this command:
AzureStorageEmulator.exe init -forcecreate
I’m getting this error:
Windows Azure Storage Emulator 5.3.0.0 command line tool Found SQL Instance (localdb)\MSSQLLocalDB. Creating database AzureStorageEmulatorDb53 on SQL instance ‘(localdb)\MSSQLLocalDB’. Cannot create database ‘AzureStorageEmulatorDb53’ : The database ‘AzureStorageEmulatorDb53’ does not exist. Supply a valid database name. To see available databases, use sys.databases… One or more initialization actions have failed. Resolve these errors before attempting to run the storage emulator again. Error: Cannot create database ‘AzureStorageEmulatorDb53’ : The database ‘AzureStorageEmulatorDb53’ does not exist. Supply a valid database name. To see available databases, use sys.databases…
In the log file I see this error:
2018-02-20 13:59:03.21 spid53 CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file ‘C:\Users\alexbat.REDMONDAzureStorageEmulatorDb53.mdf’.
So it attempts to create C:\Users\alexbat.REDMONDAzureStorageEmulatorDb53.mdf
rather than C:\Users\alexbat.REDMOND\AzureStorageEmulatorDb53.mdf
(note the slash before the file name).
Do you know why? How can this be fixed? I was getting the same error with ASE 5.2.
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (2 by maintainers)
Top GitHub Comments
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
Hi @abatishchev,
Please follow the steps that we have outline here and let us know if you still see any issues.
Thanks!