Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not generate script from SQL Azure

I would like to generate script of SQL Azure database after connecting to sql server R2 but it gives me error when i will do that.

> TITLE: Microsoft SQL Server Management Studio

Script failed for Server 'myserver'. (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1540+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Script+Server&LinkId=20476

------------------------------ ADDITIONAL INFORMATION:

Attempt to retrieve data for object failed for Server 'myserver'. (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1540+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Attempt+to+retrieve+data+for+object+Server&LinkId=20476


Index was outside the bounds of the array. (Microsoft.SqlServer.Smo)

I am generating script as usual as we do with sql server database.

Is there any special ways to generate scripts? My goal is to take backup of SQL Azure database to Sql server database. Please any one can help me to sort out this issue?

Thanks Arun.

like image 979
Arun Rana Avatar asked Oct 11 '22 01:10

Arun Rana


2 Answers

Installing the Service Pack 1 for SQL Server 2008 R2 helped for me.

There is a similar problem with Denali CTP1, which suggests that this is fixed in Cumulative Update 5.

like image 55
mika Avatar answered Oct 18 '22 06:10

mika


I have used Redgate SQL Azure backup tool and it did backup perfectly!

like image 22
Arun Rana Avatar answered Oct 18 '22 05:10

Arun Rana