Created on 08-13-2023 03:48 AM - edited 08-13-2023 08:42 AM
Hi,
My task is to move data from my locally installed SQL server (16.0) to Azure SQL (12.0) hosted on my Azure subscription.
So far, I have used ExecuteSQL processor to run my select query from SQL Server and it returns me the rows successfully. I have created a Database Polling Connection Service which connect to my SQL Server.
After fetching the rows, I am using PutDatabaseRecord processor to insert the fetched rows into Azure SQL but its showing me error that "use statement is not supported to switch between databases". Note that the Database Polling Connection Service is different for PutDatabaseRecord where I have mentioned connection string of my Azure SQL.
Please if anyone can give feedback on this issue and suggest any workaround.
Created 08-14-2023 05:54 AM
@Kiranq No, you do not have to use the USE statement. Some things to consider:
Created 08-13-2023 07:20 AM
Should I be using "use statement" in my sql select query?
Created 08-14-2023 05:54 AM
@Kiranq No, you do not have to use the USE statement. Some things to consider:
Created 08-17-2023 04:49 AM
Thanks. It was an issue with the connection string. It was pointing to another database while my processor was inserting into another database.