Explore Courses Blog Tutorials Interview Questions
0 votes
in Azure by (45.3k points)

Looks like Azure Storage Emulator omits SQL Azure. Does it hold true? Then how do I test my application that uses SQL Azure without deploying it onto the live cloud?

1 Answer

0 votes
by (16.8k points)

For local testing, you can use a local SQL Server (full, express or even CE) within your app - just use local connection string's in place of the SQL Azure ones in your .cscfg or .config files - then the local compute instance will connect just like any other local process would.

For the most part local SQL and SQL Azure are compatible and interchangeable. Microsoft claim that SQL Azure shares much of its codebase with SQL Server 2008 R2. As a result you can use SQL Server 2008 R2 or SQL Server 2008 Express locally in order to test your application. Indeed, for "simple" applications you should also be able to use the new file-based SQL Server CE.

For "advanced" applications, then there are some limitations with SQL Azure - see limitations on - but for many ASP.Net applications, you should be able to just migrate from SQL express to SQL Azure.

For more details on SQL vs SQL Azure, see

For migrating data from local SQL to SQL Azure, see the SQL Migration Wizard on Codeplex -

Browse Categories