Connect to Azure Database from SQL Server - azure-sql-database

I am connecting to an Azure hosted SQL Server using SSMS and am getting an error I can't track down. This happens when I open the connection and try to select a database to use or try to refresh the database list.
Reference to database and/or server name in 'msdb.dbo.syspolicy_configuration' is not supported in this version of SQL Server.

For the best experience with Azure SQL Database please download for free the latest version of SQL Server Management Studio (SSMS). Please download it from here.
The latest version of SSMS is compatible also with SQL Server 2008 and later.
SSMS 2012 is not compatible with many changes and improvements Azure SQL Database has received the last 6 years.

Related

Deploy SQL Database to MS Azure Storage - Error: 40804 [duplicate]

I'm trying to move my databases to a newer Azure subscription. I used to simply click "Deploy to Azure" on a local database from SSMS and have it deployed to a specified Azure server. Importing/Exporting a BACPAC file also works. However, I can't seem to do any of this on the new server. I keep getting the error:
"The service objective 'Web' specified is invalid."
Googling around, I found this thread explaining the need to update the CREATE DATABASE template to accommodate Azure Databases (Azure upgrade, I'm guessing). However, the hotfix provided is specifically for SQL Server 2014 and I'm using SQL Server 2012. I checked other cumulative updates for 2012 here but found no fix for the issue.
Is there any other way I can fix this without having to upgrade to 2014?
Just to summarize my software versions:
SQL Server 2012
SQL Management Studio 11.0.2100.60
Local database: SQL Server 10.50.16000
Old Azure server: SQL Server 11.0.9230
New Azure server: SQL Server 13.0.15
You are getting this error because the latest V12 servers are not supporting the Web and Business Editions anymore. If you don't want to upgrade to SSMS 2014, you can create a V11 server and import your DB on this server. However this is only a temporary solution as Web and Business edition databases will be retired in September. At this point you will have to work with the latest tools to avoid this problem.
There is a Hotfix for it you can download and install on your machine. Please navigate to:
https://support.microsoft.com/en-gb/kb/2936603
You need to enter your email then download link will be sent to your email address. Then install it on your machine and you can see the following options:
Install the database as a Data Project into Visual Studio,
Set the target framework in the properties window to SQL Azure,
Build the project and resolve any unsupported issues.
Publish to your azure site.
I have tried the above and did not work for me - this solution worked!

No UI dialogs in MS Azure / SQL Server Management Studio

Recently, I purchased a licence for a Microsoft Azure SQL Server 2012 (packet "S0" - Standard, 250 GB)
When I connect with SQL Server Management Studio 2012 to this database, then all the user interface dialogs for creating tables, setting up users, etc. are gone.
You can only script and execute pure SQL statements.
Even the table editor is gone, so you even cannot edit the data in a table!
If I connect to a local database, then everything works. So the problem must be related to the Azure Database. Can anyone help ?
If this is Azure SQL Database, then keep in mind that this is not the same as SQL Server 2012 although you can use the same tools to connect to it. This behavior is therefore correct and normal. If you have installed or used an image for SQL Server on a VM then you should have everything as you expect.

How to dump remote SQL Server 2005 database schema?

I want to get the schema of tables from a remote database. I only have the username and password of remote SQL Server. It doesn't provide any tools like in SQL Server Management Studio. What is the proper way for getting schema of tables from this remote sql server? please help
The 2012 SP1 version of Management Studio Express is fully functional and free. Go download it instead of trying to reinvent the wheel.

Is their a way to connect to windows azure database using SQL Workbench or management tool

Hello guys,
Now its whole day ended and i am stuck where i was in morning..
I tried mostly lot of management tool and mysql workbench to connect to sql azure database so i can manage import / export database , tables and i can create dump of sql file for future use with my work and php projects.
but it was all helpless.. it does not connect to the db and to the azure server it seems azure are worst option.. :(
any suggestion will be helpful.
Always i get a new error code whenever i tried with SQL management tool 2005 and with MySQL workbench 5.x
Is your port 1433 open?
I would rather recommend a newer version of SQL management tool. Maybe an express version. SSMS 2012 Express supports special Azure SQL options like "Deploy Database to SQL Azure" etc, whereas SSMS 2005 seems very out of date.
I am not sure but does MySQL Workbench supports MSSQL anyways? I don't think so, but have not tried yet!

Error: Can't attach DB to SQL Server 2012

I have SQL Server 2012 and I'm trying to attach a db which was previously used with SQL Server 2012, surprisingly I'm getting the following error:
The database 'DatabaseName' cannot be opened because it is version
706. This server supports version 622 and earlier. A downgrade path is not supported.
I don't really understand how this could happen since like I said it was used with same 2012 version. What am I doing wrong? How can I make it work? Please explain in detail how this can be resolved.
Thank you!!
The error sounds like the server you are trying to attach the database to is not SQL Server 2012. This may be the version of Management Studio / Management Studio Express you're using, but I suspect SELECT ##VERSION; will tell you something different. It may just be a connection string mixup if you have multiple instances of SQL Server installed, otherwise you should download and install SQL Server 2012 Express from here.
#source
It sounds like you had the following configuration and source databases:
SQL Server 2008 SP3 (ver 10.0...) - database engine
SQL Server Management Studio 2012 (ver 11.0...) - management tools
a database that was created with SQL Server 2012 (version 706)
As mentioned you could install SSMS for SQL Server 2008 (after you uninstall SSMS for SQL Server 2012). Then you would have to script your database for that version and re-run the script via 'Tasks>Script...', remembering to set the target server version as shown below.
After scripting you can then use the import/export wizard to export and then inport the data into the new (downgraded database), assuming the database had no 2012-only datatypes (such as sequences).
Another consideration is database compatibility level as shown below. You can have a SQL Server 2012 instance which hosts databases with various compatibility levels.
Using SELECT ##VERSION works very well for me. Your Database Engine is connected to a 2008 DB which certainly doesn't allow you to attach. Once I change my Database Engine to connect to 2012 DB, it works for me.
Check your Database Engine connection. You can be working on 2012 Management Studio yet connecting to 2008 DB. This is what happened to me and I have solved it use SELECT ##VERSION.