Failed to generate scripts for Sql Azure database: "Getting the list of objects from : failed" - azure

I follow http://msdn.microsoft.com/en-us/library/ee621790.aspx instructions and on get the following error:
Getting the list of objects from 'MYDBNAME'. Failed
Microsoft.SqlServer.Management.Sdk.Sfc.EnumeratorException: Failed to retrieve data for this request. ---> Microsoft.SqlServer.Management.Sdk.Sfc.InvalidVersionEnumeratorException: Operation not supported on version 11.0 SqlAzureDatabase. at Microsoft.SqlServer.Management.Smo.XmlReadDoc.LoadFile(Assembly a, String strFile) at Microsoft.SqlServer.Management.Smo.SqlObject.LoadInitData(String file, ServerVersion ver, DatabaseEngineType databaseEngineType) at Microsoft.SqlServer.Management.Sdk.Sfc.ObjectCache.LoadElement(ObjectLoadInfo oli, ServerVersion ver, DatabaseEngineType databaseEngineType) at Microsoft.SqlServer.Management.Sdk.Sfc.ObjectCache.GetElement(ObjectLoadInfo oli, ServerVersion ver, DatabaseEngineType databaseEngineType) at Microsoft.SqlServer.Management.Sdk.Sfc.ObjectCache.GetAllElements(Urn urn, ServerVersion ver, DatabaseEngineType databaseEngineType, Object ci) at Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetObjectsFromCache(Urn urn, Object ci) at Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetData(Request req, Object ci) at Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.GetData(Object connectionInfo, Request request) at Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.Process(Object connectionInfo, Request request) --- End of inner exception stack trace --- at Microsoft.SqlServer.Management.SqlScriptPublish.GeneratePublishPage.worker_DoWork(Object sender, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
How to get azure database backup or sql scripts?
UPDATE:
Azure db: SQL Server 11.0.2065;
Sql management studio: 11.0.2100.60
UPDATE 2:
SQL Azure Migration Wizard reports:
Microsoft.SqlServer.Management.Sdk.Sfc
Failed to retrieve data for this request.
ADDITIONAL INFORMATION:
Operation not supported on version 11.0 SqlAzureDatabase. (Microsoft.SqlServer.SqlEnum)
The same here.
The collation is Cyrillic_General_CI_AS. How to change collation for the db to make scripts?
UPDATE 3:
The same error while making export of Data-Tier Application using this guide:
..Operation not supported on version 11.0 SqlAzureDatabase.

In SqlServer Management Studio 2012;
Right click on the DB and Tasks > Deploy Database to Sql Azure but select your local server as target. It will get copy of azure to your local. And then you can generate scripts from your local server. I just found this method, worked for me.

I would suggest to go for the SQL Azure Migration Wizard as it is far more advanced than the Generate Scripts task in SSMS. As a side note, this tool is written and maintained by a person from the SQL Azure team!

Ok, i did the exporting of my azure db using cloudservices.red-gate.com. I created BACPAC File on a storage. Then i imported the BACPAC to my local Sql express. Strangely enough the service didn't threw the error i had when used my SQL Management Studio.

Related

Installing Azure Backup Server Crash With Error 4387

I am trying to install azure backup server on windows server 2016 to backup local sql server
the installation wizard pass requirement check
but when i enter sql server instance name the wizard crash
i checked the error log and i found the error
but it is not usefull
* Exception : Invoking Watson with Exception: => System.Configuration.ConfigurationErrorsException: Unable to get machine name information
at Microsoft.Internal.EnterpriseStorage.Dls.Utils.FqMachineName.GetDpmMachineName()
at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Inspect.InspectHelper.CheckIfLocalMachine(String sqlServerName)
at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.VenusSQLInspectPage.sqlServerInstanceTextBox_LeavingBox(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnLeave(EventArgs e)
at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
what could be possible problem?
the server is not domain controller and it is not a member of any domain ,
just a bare metal server somewhere in cloud

Azure SSIS IR - working with files in the temp folder of the IR node

I have setup a custom SSIS IR, however I'm having problems reading files from the current working directory or temp folder on the IR node
https://learn.microsoft.com/en-us/sql/integration-services/lift-shift/ssis-azure-files-file-shares?view=sql-server-2017
The work flow of my test package is
Load compressed file to Azure file share
Unzip file
Modify file, saving it the current working group folder on the IR node (this path .\testfile.json)
Load file to Azure SQL DB
The last step is where I'm having issues, I receive the below error message. Maybe looks to be related to security, but no idea how to access the SSIS IR node to check this.
Execute SQL Task:Error: Executing the query "DECLARE #request
VARCHAR(MAX) SELECT #request =..." failed with the following error:
"Cannot bulk load because the file ".\testfile.json" could not be
opened. Operating system error code (null).". Possible failure
reasons: Problems with the query, "ResultSet" property not set
correctly, parameters not set correctly, or connection not established
correctly.
How can I fix this issue?
From just the error message, looks like you're using BULK INSERT in Execute SQL Task to load data into Azure SQL DB. BULK INSERT into Azure SQL DB can only work from Azure Storage Blob, but not from file systems/SSIS IR nodes. To load data from the current working directory of SSIS IR nodes into Azure SQL DB, you can use a Data Flow with Flat File Source and ADO.NET Destination.

Error in SSIS DataSouce preview using Npgsql as ADO.NET Provider

I'm using Npgsql 3.0.5 as ADO.NET DataSource Provider to move data from one DB to another with some transformations
I having an error when trying to PREVIEW data which:
"57014: canceling statement due to user request (Npgsql)"
It is looks like "VS" just cancels query execution and returns error.
Full Error description :
===================================
There was an error displaying the preview. (Microsoft Visual Studio)
===================================
57014: canceling statement due to user request (Npgsql)
------------------------------ Program Location:
at Npgsql.NpgsqlConnector.DoReadSingleMessage(DataRowLoadingMode
dataRowLoadingMode, Boolean returnNullForAsyncMessage, Boolean
isPrependedMessage) at
Npgsql.NpgsqlConnector.ReadSingleMessage(DataRowLoadingMode
dataRowLoadingMode, Boolean returnNullForAsyncMessage) at
Npgsql.NpgsqlConnector.SkipUntil(BackendMessageCode stopAt1,
BackendMessageCode stopAt2) at
Npgsql.NpgsqlDataReader.SkipUntil(BackendMessageCode stopAt1,
BackendMessageCode stopAt2) at Npgsql.NpgsqlDataReader.Consume()
at Npgsql.NpgsqlDataReader.Close() at
Microsoft.DataTransformationServices.Design.PipelineUtils.ShowDataPreview(String
sqlStatement, DbConnection connection, Control parentWindow,
IServiceProvider serviceProvider,
IDTSExternalMetadataColumnCollection100 externalColumns) at
Microsoft.DataTransformationServices.Design.PipelineUtils.ShowDataPreview(String
sqlStatement, ConnectionManager connectionManager, Control
parentWindow, IServiceProvider serviceProvider,
IDTSExternalMetadataColumnCollection100 externalColumns) at
Microsoft.DataTransformationServices.DataFlowUI.DataFlowConnectionPage.previewButton_Click(Object
sender, EventArgs e)
Installed Npgsql from
https://github.com/npgsql/npgsql/releases
Microsoft Visual Studio Premium 2012
Version 11.0.61219.00 Update 5
Microsoft .NET Framework
Version 4.6.01038
SQL Server Data Tools 11.1.50730.0
Microsoft SQL Server Data Tools
Can anyone help with that bug?

Unable to read beyond the end of the stream. Azure Deployment Issue

I want to integrate office 365 API's and i'm following this sample git code enter link description here i follow all the steps and everything is working fine in localhost but when i deploy the same asp application on git it gives me following error **Unable to read beyond the end of the stream.**It can be this git line issue // place the entry in memory
this.Deserialize((Cache == null) ? null : Cache.cacheBits);
I debug my app, when i debug this app by providing localDB connectionString It works fine but when i change connectionString to online it throws above mention exception on the above mention line
I have sold issue by replacing local DB connection String to Online GB Connection String and than run migration
The problem was with migrated data actually when we deploy on Azure htat's why we have to run online migration first than deploy

sitefinity azure deployment cannot connect to database

I'm having trouble getting my new sitefinity deployment to windows azure hosting. On the sitefinity project startup screen I can put in my azure connection string info and it bombs out saying the database type mismatches (mssql instead of azure). I can't find where to change this so I'm unable to get the site to initialize. Am I missing something?
Here is the error:
* There was an error trying to connect to the Database Server:
System.InvalidOperationException: Wrong database backend configuration detected: Connecting to 'Microsoft SQL Azure (RTM) - 11.0.9117.67 Aug 4 2013 23:37:13 Copyright (c) Microsoft Corporation ' but configured for 'mssql'. at OpenAccessRuntime.Relational.sql.MsSqlDriver.customizeForServer(Connection con) at OpenAccessRuntime.Relational.sql.SqlDriver.InitializeFor(ConnectionString connectionString, Boolean noConnect, PropertySet props, DBDriver& driver, Connection& conn, ConnectionPoolType poolType) at OpenAccessRuntime.Relational.RelationalStorageManagerFactory..ctor(StorageManagerFactoryBuilder b) at OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createSmfForURL()
Thanks
You cannot create your project directly on Azure - you should create it locally first.
Then, in the DataConfig.config file you will find the connection string. Make sure you change the dbType from MsSql to SqlAzure.
Also, in the web.config you need to uncomment this:
<!-- Begin telerik section -->
<!--<telerik>
<sitefinity>
<environment platform="WindowsAzure"/>
<sitefinityConfig storageMode="Database" />
</sitefinity>
</telerik>-->
<!-- End telerik section -->
I suggest you use Thunder to deploy your project to Azure:
http://www.sitefinity.com/documentation/documentationarticles/sitefinity-azure-configuration

Resources