Unable to deploy DB from local SQL Server - sql-server

I'm trying to export a DB from my local SQL Server to Azure SQL.
So far I've tried
Tasks > Deploy Database to Windows Azure SQL Database
I then connect to the Azure DB, give the new DB a name and then let it run.
However, it fails with the message
A project which specifies Microsoft Azure SQL Database v12 (Preview) as the target platform cannot be published to Microsoft Azure SQL Database.
Having followed this page, I'm pretty sure that I have the latest of whatever I need on my local.
So what am I missing? How do I get a DB from a local instance of SQL Server to Azure SQL?

Although there are several means to upload a local DB to Azure, I found that all but one of these fails with the same error message.
The one which worked is the SQL Database Migration Wizard.

Related

Error when uploading my database from SQL server 2017 to Azure SQL server

When I use SQL server 2017 database tool to upload my database, I got this error.
When I generate .bacpac file by myself and upload to azure storage account, then import to azure sql server, I also get the same error.
This database is generated from my asp core project using Entity framework, I generate to sql server 2017 to add more performance update like: partition table, indexing table. After that, I upload this database to Azure cloud, then I get this error.
Please help me!
Please try to remove the login Admin at the database level before trying to migrate to Azure SQL Database again. Admin is not a valid login name you can use in Azure SQL Database.
I usually recommend users to use Azure Data Migration Assistant (DMA) to migrate a SQL Server database to Azure SQL Database, because it performs an assessment first and let you know things you need to fix prior to migrate to Azure SQL. Once all incompatibilities are fixed, DMA allows you to migrate with a couple of clicks.

How can i import a db from SQL Server to Azure db?

I have a db in sql server 2014 and i am trying to deploy the database to Azure db using Tasks-> Deploy database to Azure SQL Database.
I installed DAC framework but still i am not able to. When i try to connect to my local Azure server from SQL Server i am able to connect to it. Is there anything else that i am missing ?
Keep in mind that Azure SQL PaaS was quite immature in 2014.
Please upgrade your SSMS version to 17.x. This will work fine with your SQL 14 databases but have all the upgraded tooling for Azure SQL included.

Deploy SQL database to Azure is failing

I am trying to deploy a SQL Server database to Azure. In SSMS, I right click the database and choose Tasks > Deploy Database to Microsoft Azure SQL Database.
This database isn't part of source control or anything, and in the properties, I selected compatibility level 140 (SQL Server 2017).
However, I keep getting the error below when deploying it. What am I doing wrong? I was able to deploy this exact database in the past without issues.
Please forget about SSMS for migrating databases to Azure SQL Database. Use Microsoft Data Migration Assistant for this task. This tool is the easiest way to migrate to Azure SQL Database. It performs an assessment first, then it migrates your databases to Azure.

How do I add my Azure Sql Server Admin User to 'Sysadmin' Server Role?

I'm attempting to migrate a Sql Db from a local server to Azure using the new Data Migration Assistant v2.0 (announced here).
It seems to have connected to my source (a local SQL 2014 server, Windows Auth) and destination (Azure V12 SQL, server admin username and password) servers correctly, but gives the following error when attempting to get to the 'Add Database' step.
Provided credentials for target server
'fooserver.database.windows.net' have insufficient server-level
permissions to perform migration. The credentials used to connect to
the target server must be a member of the sysadmin server role.
How do I add my Azure Sql Server admin user to the 'sysadmin' server role? I couldn't see anything related to this in the Azure Portal.
I do not believe that Data Migration Assistant is the right tool for the job. If you original database is Microsoft SQL one you could either use The Microsoft SQL Server 2016 Upgrade Advisor Preview or The Export Data Tier application wizard in SQL Server Management Studio. I have used both approaches many times and they work very well.
The following article is probably the best one our there that lists and explains all available options - SQL Server database migration to SQL Database in the cloud.
Let me know if you have any questions.
Update 1 - #Ted has contacted Microsoft and they have said that Data Migration Assistant does not support migrating to Azure at the moment. This scenario will be supported in a future version.
Nov 2017 Update
The MS Data Migration Assistant now absolutely does support migrating on premises SQL databases to Azure SQL, as well assessing your DB for compatibility, and providing / applying suggestions for fixes if required.

Azure SQL database unavaliable on management portal, but working

I created a db on my server on azure, and it works well, and can be managed with sql server management studio, and the related website also works well, but on the management portal, the database is unavaliable. It appears on the list of databases under the server.
I deployed the database from my local server with ssms.
Muller, are you still able to interact with your database via the Azure portal?

Resources