Importing a Azure SQL DB - azure-sql-database

I am facing a weird issue, can someone please help with this. I have a .bacpac file on the Blob storage, the bacpac file size is around 800 MB. This file was created by doing an export from one of the SQL DB on Azure which is of 4 GB.
While I am trying to import the .bacpac file, only the DB schema is created in the new database, data in the tables is missing. Can someone please suggest with this.
Many thanks

Create a New Database by Importing BACPAC File
Log on to the Azure Management Portal.
Click New > Data Services > SQL Database > Import. ...
Click the folder under BACPAC URL to navigate to the Storage Account, Container, and file name of the exported .bacpac file. ...
Specify a name for the new SQL database.
This works perfectly without any issues.

Related

Error when exporting SQL database from Azure to local

I am trying to export a SQL database in Azure to my local machine using SSMS in order to create a local back up. I used 'Export Data Tier Application' for creating back up. But I am getting the error given below.
How can I get rid of this?
Just from the error message, you don't have permission to alter/access the database.
If you want to do the Export Data Tier Application to create the backup bacpac file, you must using the Azure SQL database server admin account, or you don't have the enough permission.
Please try to using the Azure SQL database server admin account to do the operation.
Hope this helps.

Migrate from Azure SQL back to Access

I have a SQL database in Azure. Is there any way of downloading the SQL database in .mdb format?
Is there any way of downloading the SQL database in .mdb format?
Not directly in .mdb format but what you can do is export the database in BACPAC format and save this file in Blob Storage. Once the file is there, you can download this file. You can find more information about this here: https://learn.microsoft.com/en-us/azure/sql-database/sql-database-export. If you're doing this from Azure Portal, please read this: https://learn.microsoft.com/en-us/azure/sql-database/sql-database-export-portal
Next step would be to create a local database using this BACPAC file. Please see this link on instructions on how to import a BACPAC File to create a new user database: https://msdn.microsoft.com/en-IN/library/hh710052.aspx.
Last step would be to export this database and import it in Access. You can make use of SQL Server Import/Export Wizard to do so. Please see this link for more details: https://technet.microsoft.com/en-us/library/ms141209.aspx.

How to upload BACPAC file to Blob in Azure

So frustrating... , Microsoft do not offer help and you have figure out every small thing at the portal ...
My question is: I try to import my DB to Azure. I created a BACPAC file from the .Bak and when try to import, there's the "*storage" and then when I click on Configure required settings it's opens the "Storage Accounts" tab but give the message "Not found".
Here's the thing: I created storage and container and blob - it's just not find it. So annoying. And on the azure portal it's doesn't say how to create and how to upload the file.
Also, when I create the storage and the blob, there's no option where to Upload the BACPAC file. How do I do it? What's going on with Microsoft?? So unclear...
To summarize:
How do I create a storage/container/blob that when I try to import the DB it will see it?
How do I upload the BACPAC to the Azure Blob Storage?. I couldn't find a way to do that on the portal.
Thanks!!
Not 100% following your example, but if you have a later version of SQL Server Management Studio, you can right click the database you want to deploy, click 'Tasks/Export data tier application'. In there you can connect to a storage account which if you press Connect, you will have to type the name of the account from the portal and provide a key. You can then export it to storage and then if you connect to the Azure instance, you can right click the databases level and 'import data tier application'. If you need to create a storage account in the first place, you do that in the portal, but sounds like you have.
If you want to browse your storage and drop a file in directly, I use Azure Storage Explorer. There are various tools out there some free some not to do this. You could of course code your own interface as the API's are published.
View the portal as the administration of your subscription. When you want to use the services (not configure them) - you'll need to look at the toolsets.
Azure Storage Explorer makes navigating and uploading/downloading files in storage accounts super simple. Visual Studio works well too, for Db workloads Sql Management Studio has Azure integration. If all else fails, powershell gives you the finest level of control.
1 - Create an Azure storage account
2 - Create a blob in the new storage account
3 - Access the blob and upload your bacpac file
4 - Access the Sql server, go to import database and use the link "select the backup" to indicate in the blog the bacpac file you want to use to create the database

Azure SQL Backup and Restore

I know Azure does automatic backup and restoring based off those automatic backups. I need to create a manual backup of a database. From reading online, I created a bacpac file using Export and saved to an Azure Blob (how to here). The problem is when I go to 'Restore' using the Azure Portal, it only gives me the option to choose one of their automated backups.
On top of this, I would actually like to restore that database to another database (think restoring Production to Test). I cannot do this either.
I believe they used to have an Import + Export function when in the portal. Now it is Restore and Export, I'm wondering if they somehow took this capability away, I'm not sure.
I know I can create a new database from a .bacpac file, but this does not help me in any way shape or form.
There is a copy command you can execute from the old portal. Select a DB from the list and a copy toolbar item appears.

Export database from SQL Server Management Studio

I've managed to 'Restore' my database using the SQL Server Management Studio.
I now need to export that so I can import it into my websites empty database.
I've tried Tasks/Generate Scripts but I can't import the file it generates into my database on my site.
I get the following error message:
Could not find stored procedure 'xxx'
I've also tried to Export Data but I don't appear to get a result at the end of the process. Possibly because I'm using the free version of the software?
Are there any other ways to export this data into a .sql file so I can import it?
I'm just moving a site from one server to another - it shouldn't be this difficult!
Any help would be really appreciated!
Try the Microsoft SQL Server Database Publishing Wizard. Available at:
http://www.microsoft.com/en-us/download/details.aspx?id=5498
Use the generated .SQL file with these steps:
http://www.123-reg.co.uk/support/answers/Databases/Windows-MSSQL/how-do-i-import-export-a-mssql-database-793/
I don't know if you've managed to resolve this but I have found that the SQL file saved from SSMS is in Unicode format and the 123-Reg website is expecting plain text. This is what's causing the "Could not find stored procedure..." error message.
Instead of saving the file, copy and paste the text from SSMS into Notepad, then save that. The file should then upload correctly into the remote database.