Could not generate script from SQL Azure

喜欢而已 提交于 2020-01-02 05:02:48

问题


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.


回答1:


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.




回答2:


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




回答3:


I would use the sql migration wizard from codeplex http://sqlazuremw.codeplex.com/

Gl



来源:https://stackoverflow.com/questions/7357507/could-not-generate-script-from-sql-azure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!