backup SQL Azure and restore in SQL Server
-
יום רביעי 04 מאי 2011 14:53
Hi,
I understand that there's no out-of-the-box / straight-forward way to perform backup and restore in SQL Azure.
I also heard that we can use BCP to backup SQL Azure's table.
But how do we restore the BCP to on-premise SQL Server in case our SQL Azure is unavailable / we are not using it anymore?
כל התגובות
-
יום חמישי 05 מאי 2011 02:28מנחה דיון
Hi Daniell.Chong,
You can use the SQL Azure Migration Wizard to generate scripts and migrate data from SQL Azure to a on–premise SQL Server.
For more information, please see: http://sqlazuremw.codeplex.com/
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Get or Request Code Sample from Microsoft
If you have any feedback, please tell us. -
יום חמישי 05 מאי 2011 03:40
Hi,
But SQL Azure MW could not able to perform schedule backup. Any idea?
-
יום חמישי 05 מאי 2011 05:13
Hello,
Would this do the trick?
http://mooneyblog.mmdbsolutions.com/index.php/2011/01/11/simple-database-backups-with-sql-azure/
-
יום חמישי 05 מאי 2011 06:19
I work for Red Gate Software and we've just produced a free tool that may do what you want.
http://www.red-gate.com/products/dba/sql-azure-backup/
If not you could always use SQL Compare and SQL Data Compare in a scheduled task.
Either way always interesting in your thoughts.
-
יום חמישי 05 מאי 2011 07:42מנחה דיוןAn interesting article on SQL Azure backup:
http://www.cumulux.com/2011/04/28/sql-azure-backup-options/
Paras Doshi, I blog about SQLAzure @ http://www.parasdoshi.com -
יום רביעי 01 יוני 2011 18:34
Hi Daniell,
You can use DAC CLI Tool to Backup SQL Azure database objects and data and then restore it in On-Premise SQL Server and vice versa.
Please read this article for step by step instructions
Arunraj Chandrasekaran, MCTS, Author: SQLXpertise.com- הוצע כתשובה על-ידי Arunraj.C יום שלישי 21 יוני 2011 19:35
-
יום חמישי 02 יוני 2011 13:16how about "automatic" / "scheduled" backup?
-
יום חמישי 02 יוני 2011 13:42מנחה דיון
how about "automatic" / "scheduled" backup?
i replied on another thread started by you: http://social.msdn.microsoft.com/Forums/en-US/ssdsgetstarted/thread/6b40d9b9-5d94-4272-8071-bee42e5f7822
Paras Doshi, I blog about SQLAzure @ http://www.parasdoshi.com -
יום חמישי 02 יוני 2011 14:44
Hi Daniell,
You can Create a Batch file using DAC CLI Tool and setup that as Scheduled Job to run locally
Arunraj Chandrasekaran, MCTS, Author: SQLXpertise.com
If you found this post useful, let us know by clicking "Vote as Helpful". -
שבת 28 יולי 2012 09:20You can use Import of teh database functionality to take the back up. This will store the DB scheema+ data as a blob. Using this blob and export wizard you can restore the another DB with same scheema and data.
-
יום חמישי 20 ספטמבר 2012 16:18
The Windows Azure SQL Database Backup and Restore article explains the latest options available to create backups and links to how to articles.
Thanks,
Karthika
Karthika [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.
-
יום שישי 21 ספטמבר 2012 03:23
have you considered SQL Data Sync http://msdn.microsoft.com/en-us/library/windowsazure/hh456371.aspx?
-
יום חמישי 27 ספטמבר 2012 08:47
You should better write a procedure that Creates backups and Store them in BLOB STORAGE.
To schedule it you should do by writing module that fires the procedure in pre-described schedule.It worked for me once.
Backup Query is here: http://msdn.microsoft.com/en-us/library/ms186865.aspx
Mahesh Dahal
-
יום חמישי 27 ספטמבר 2012 20:52
There are several other options to programmatically export our database from Azure using Data-Tier Application Framework (DACFx) technology. First, create a copy of your database then export your database. For a larger database, option 1 will provide support for retries, we are improving retry logic for options 2 & 3.
1) Write a program to call the REST endpoints of the Windows Azure SQL Database Import Export Service - http://code.msdn.microsoft.com/windowsazure/Windows-Azure-SQL-Database-5eb17fe2#content. The daciesvcli application essentially does the same thing but writing your own application will give you greater flexibility.
2) Use the sqlpackage.exe application - details here - http://msdn.microsoft.com/en-us/library/hh550080(v=vs.103).aspx
3) Use the DACFx api - details here - http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.dac.aspx
Shamitha Reddy (Microsoft)
- הוצע כתשובה על-ידי Shamitha Reddy (Microsoft) יום חמישי 27 ספטמבר 2012 20:52
- נערך על-ידי Shamitha Reddy (Microsoft) שבת 08 דצמבר 2012 00:52
-
יום שני 05 נובמבר 2012 21:24
Hi Shamitha,
We've been waiting for a while for the details on REST endpoints of the Windows Azure SQL Database Import Export Service. Do we know when are these details coming?
-
שבת 08 דצמבר 2012 00:53Code samples for using the Import/Export REST API - http://code.msdn.microsoft.com/windowsazure/Windows-Azure-SQL-Database-5eb17fe2#content
Shamitha Reddy (Microsoft)
-
יום שלישי 11 דצמבר 2012 19:15
SQL Data Sync is not recommended for backing up/restoring databases. However, it does work for keeping database data in sync.
See the article at http://msdn.microsoft.com/en-us/library/hh667301.aspx#bkmk_datasyncbackupandrestore for details.
_RussH
- הוצע כתשובה על-ידי _RussHMicrosoft Employee יום שלישי 15 ינואר 2013 19:13