Using Windows Azure SDK with SQL Server 2005/2008
I downloaded the Windows Azure SDK today and was going through the quick starts from MSDN , the quickstarts mention that you need SQL Server Express 2005/2008 to run the samples, but I only had SQL Server 2008 developer edition installed. I decided to give it a try anyways and immediately hit a snag when trying to build the samples because as expected it could not find the SQLExpress instance that it was assuming would be present on the localhost.
Here are the changes I had to make to get the samples and the SDK to work with SQLServer 2008 installed without an instance name on my laptop.
- In Windows Azure SDK\v1.0\samples\MSBuild\Microsoft.Samples.ServiceHosting.targets , add the “/server” option to the UpdateSampleTablesDB target to make it look like
Command="$(DevTableGenCommand) /database:$(SamplesDBName) /server:localhost $(DevtableGenForceCreateFlag) @(DevTableGenAssemblies)”
- Change the datasource in the connection string used in “Windows Azure SDK\v1.0\bin\DevelopmentStorage.exe.config” to localhost
connectionString="Data Source=localhost;Initial Catalog=DevelopmentStorageDb;Integrated Security=True”
- Change the dbServer for the Table service in the developmentStorageConfig section to localhost in “Windows Azure SDK\v1.0\bin\DevelopmentStorage.exe.config”