Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I stop and start a SQL Azure database?

I am running an Azure based site that for historic reasons uses two databases on two servers. I have copied the data from the static data-source so that both reside on the same server. I am fairly sure I have removed all references to the old server from the live code, and indeed the Azure dashboard shows no connections over the last month. But to be 100% sure before I delete the server I would like to stop it and test the live site. If anything goes wrong I would then like to start it again. In SQL Server Management Studio this is usually straightforward, I can right-click on a server in the SQL Server Management Studio object explorer and select 'Stop' and then if needed 'Start'. However 'Stop' and 'Start' are not listed in the options for SQL Azure servers, nor is there anything I can see in the management pages on the Azure portal.

So my question is simple - how do I stop and start a SQL Azure database?

like image 414
dumbledad Avatar asked Jan 21 '14 15:01

dumbledad


People also ask

Can you pause an Azure SQL Database?

Sign in to the Azure portal, and select your dedicated SQL pool. To pause compute, click the Pause button. To remove the dedicated SQL pool so you are not charged for compute or storage, click Delete.

How do I start an Azure SQL Database?

Once your database is created, you can use the Query editor (preview) in the Azure portal to connect to the database and query data. In the portal, search for and select SQL databases, and then select your database from the list. On the page for your database, select Query editor (preview) in the left menu.


3 Answers

We had an issue with a Sql Azure db and were pretty sure it was in the server/service. We couldn't find the stop & start button, but did find a workaround:

Scale the database to another tier and then scale it back!

It solved our db issue.

Everybody says you don't need a stop/start button... but sometimes the theory differs from practice. Even Azure has issues :)

like image 87
Jowen Avatar answered Oct 17 '22 14:10

Jowen


as Praggie mentioned, you cannot stop/start the SQL Azure servers. A SQL Azure Database resides on a shared host. there are other tenants on that server. you have access to the database, but not to the corresponding hosting server.

you can rename the database and if there's any app connecting to it, then they'd fail.

like image 23
JuneT Avatar answered Oct 17 '22 15:10

JuneT


You can simply block the IPs (remove all the firewall rules, so that no one can connect)

like image 37
Sirisha Chamarthi Avatar answered Oct 17 '22 15:10

Sirisha Chamarthi