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.

  1. 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

    

    <Exec Condition="’$(SamplesDBName)’!="" 

            Command="$(DevTableGenCommand) /database:$(SamplesDBName) /server:localhost $(DevtableGenForceCreateFlag) @(DevTableGenAssemblies)" 

    WorkingDirectory="$(MSBuildProjectDirectory)"/>

  

  1. Change the datasource in the connection string used in  “Windows Azure SDK\v1.0\bin\DevelopmentStorage.exe.config” to localhost

    <add name=“DevelopmentStorageDbConnectionString”

         connectionString=“Data Source=localhost;Initial Catalog=DevelopmentStorageDb;Integrated Security=True”

         providerName=“System.Data.SqlClient” />

  

  1. Change the dbServer for the Table service in the developmentStorageConfig section to localhost in “Windows Azure SDK\v1.0\bin\DevelopmentStorage.exe.config”

    

      <service name=“Blob”

               url=“http://127.0.0.1:10000/”/>

      <service name=“Queue”

               url=“http://127.0.0.1:10001/”/>

      <service name=“Table”

               url=“http://127.0.0.1:10002/”

        dbServer="localhost"/>

 

    

HTH

Sijin Joseph
Sijin Joseph

Hands-on technology leader with 15+ yrs of experience in launching products, scaling up teams and setting up software infrastructure.