I have a SQL Server database on one of my local servers and I need to create an image of it on RDS and enable synching between the two databases.
Is that possible? Anybody who can help?
Replication is the obvious answer, but unfortunately but SQL Server on RDS does not support it.
http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html
(about 1/3 the way down the page).
You can use Database Migration Service for this now. We've been using it successfully for close to a year.
We're syncing from RDS to RDS though. On-prem to RDS is a bit more difficult as you need to setup replication where as that's not required when the source is RDS.
Related
I have question about AWS RDS. what we have to do to create a SQL Server RDS Active/Active or Multi-Master Cluster on AWS? Is there any easy way in AWS RDS? Thanks.
assuming your requirement absolutely must have the ability to commit transactions to multiple database server instances, what you need is Always On Availability Groups (AGs). To set this up in Amazon RDS SQL Server, here's the relevant bit of the documentation. That should be enough to get you started!
I'm trying to build daily ETL process from Azure SQL Database to on-premises SQL Server data warehouse.
I have experience in ETL between on-premises SQL Servers but when it comes to Azure I'm not sure the best practise. I did some researches and got the options on ETL and ADP.
Would anyone here have similar experience before, could shed me some lights? Any comment, example or tutorial are much appreciated.
There are many ways can help you build daily ETL process from Azure SQL Database to on-premises SQL Server data warehouse.
I would suggest you think about Azure Data Factory or Azure SQL database Data Sync.
Data Factory can help you build a pipeline to copy the data between Azure SQL database and On-premise SQL Server. You could create a time trigger to trigger the copy daily. Ref these documents:
Copy and transform data in Azure SQL Database by using Azure Data
Factory
Copy data to and from SQL Server by using Azure Data Factory
Data Sync is a feature of Azure SQL database, you can sync the data between SQL database and on-premise SQL Server automatically. I think that's the easiest and cheapest way which can achieve your request in some way. Just note the requirements and limitations.
And like #Nick said, Azure SQL database doesn't support windows authentication, please use SQL authentication or AD.
HTH.
I am trying to replicate the source database (Oracle 11g and MS SQL Server 201x) to Azure SQL Database. Initially I thought of using Azure DMS(Database Migration Service) to do a full load + Change Data Capture for changes. After started to work on this, I learnt that the DMS requires Control Server privileges on the SQL Server Database and DBA Role on Oracle. We might not get these permissions on the source databases as they are managed by third party company (SaaS model). However, we have read permissions on the source database/tables.
We have to achieve the following :
Replicate data from Oracle Source System to Azure SQL Database and
Replicate data from SQL Server 201x to Azure SQL Database.
What should be the approach?
Azure SQL Data Sync? I read on the forum that it actually writes/creates tables in the source database. This won't be acceptable.
Transactional replication for SQL Server? - Has any one tried? Can you please share your experience?
Third option I thought was to use Attunity Replicate (however, not sure about the licensing costs)
Can someone please help with approaching this business problem?
Regards,
JE
You said, you have read permissions on the source database/tables(Oracle and SQL Server). I suppose that you just have the read-only permission.
Then the answer is no, we can not copy the data or migrate the database(Oracle and SQL Server) to Azure SQL database without the CONTROL SERVER permission.
Data sync can help you sync the data from SQL server to Azure SQL database, but you need have permission to Azure SQL too. Create the table with same schema and so.
If you don't the permission on SQL server, the Transactional replication also doesn't work.
For Attunity Replicate, I don't know much it, sorry that I can't answer you.
For your questions:
1.Replicate data from Oracle Source System to Azure SQL Database
Please reference this Azure Database Migration Guide: Migrate Oracle to Azure SQL Database.
This scenario describes how to migrate an Oracle instance to Azure SQL Database.
2.Replicate data from SQL Server 201x to Azure SQL Database.
Reference: Azure Database Migration Guide:Migrate SQL Server to Azure SQL Database.
This scenario describes how to migrate a SQL Server instance to Azure SQL Database.
We also could use bellow way to migrate the database with SSMS:
Create a dacpac file and import to Azure SQL.
SSMS Deploy database to Microsof Azure SQL database.
For details, please see: Learn how to Migrate a SQL Server database to SQL Azure server.
Hope this helps.
I need to copy a SQL server table from an on prem DB to AWS RDS(sql server). I'm trying to think of the simplest way to do that. I was thinking of using a link server to access AWS sql from the on prem DB but not sure how to create one. Or should I go with other option like SSIS or bulk copy.
Fortunately, there are various ways of doing this on prem to RDS migration!
Linked Servers can be used for only EC2 SQL Server instance to RDS SQL Server instance for now I think. The detailed information is here: https://aws.amazon.com/blogs/database/implement-linked-servers-with-amazon-rds-for-microsoft-sql-server/
DMS can be used to migrate from on prem to RDS:
https://aws.amazon.com/blogs/database/introducing-ongoing-replication-from-amazon-rds-for-sql-server-using-aws-database-migration-service/
Another solution is to do a periodic native SQL Server backup from on prem and restore the db onto SQL Server instances: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.Procedural.Importing.html
Or you can migrate by using transaction logs: https://aws.amazon.com/blogs/database/how-to-migrate-to-amazon-rds-for-sql-server-using-transactional-replication/
I'm having issues deploying databases to SQL Azure DB from SQL Server Management Studio using the Tasks > "Deploy Databases to Microsoft SQL Azure" option path. I notice this tends to fail if the database has views. Is this a well-known issue or am I doing something wrong?
Please consider not using SSMS and use Microsoft Data Migration Assistant (DMA) instead. DMA is the easiest way to migrate a database to Azure SQL Database. It gives you an assessment of the database and tells you about possible blocking points and existent incompatibilities of the database with Azure SQL Database. You can download DMA from here.