I have a huge database with many tables in SQL Server. I'm migrating this to Azure database.
The migration methods suggested all over the internet are nice and cute, but since Azure Db doesn't support some things (xml OPEN, sp_addextendedproperty
, etc.), I had to rewrite most of my stored procedures, and many of my table definitions and views. Because of this, I chose to migrate the schema and data separately. The schema is already in Azure.
I have many questions about moving the data separately:
1. for migrating data only from SQL Server to Azure Db, is there a better / easier way than bcp
? With bcp
, I'd have to do it table-by-table. I have 40 tables. There must be a better way... No?
2. should I run BCP
on the server, or on my local machine? The latter feels safer. The db is constantly being used by many users, I don't want to hog down its performance.
3. won't bcp
mess up my collations or data types?
I'd use something like this:
bcp Table1 out C:\DbExport\Table1.txt -c -U sa -S 1.2.3.4\MyDatabase -P password