Register
Wednesday, February 08, 2012
 
Support this site Minimize
 
 
 
  
 
 Blog
  
Cloud Computing Thoughts Minimize
 
 
 
  
 
History Minimize
   
 
  
 
Cloud Computing Thoughts Minimize
   
 
  
 
Cloud Computing Thoughts Minimize
 
Nov10

Written by:Josef Finsel
11/10/2009 5:00 AM 

So, you've got an Azure SQL Database and have been doing some work in it/on it and then find out it is a CTP and you need to move the data and schema to another database.

Which isn't bad but there aren't any good tools for scripting an Azure SQL database, mostly because Azure SQL doesn't support using the DMO, which is what most people use.

So, I wrote my own.

It's not perfect, it's missing a few things (doesn't handle triggers, for instance) but it should be good enough to get you started.

AzureSQLScripter

It's simple enough. Download and run the code (or Install the app), enter the connection string to the server and a file name to store the script and click on Backup. The utility will walk the database, scripting tables, constraints, indices, views, stored procedures and functions.

Each object is wrapped in an IF EXISTS so you should be able to run it multiple times.

If there's something missing and you want to add it, add it and send me the code and I'll incorporate it.

If there's something missing and you don't know how to add it, leave feedback and I'll see if I can incorporate it.

Keep watching both this space and CloudQuotes. I've got some exciting new projects that will be pushing some boundaries, including a handler for AzureStorage apps.

Josef Finsel
AzureDBA

Technorati Tags: ,

Tags:

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment  Cancel 
 
 
  
 
Privacy Statement | Terms Of Use Copyright 2009-2010 by Azure-Architect.com