Hey,
You can create a linked server on your on prem server connecting to the Azure SQL database.
And via linked server you can query the Azure SQL database tables.
Sample : Step #1 in below blog
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
how can i run azure sql "select query" in on premise sql server? or how can i see the azure sql tables data in on-premise sql server.
ex: select * from table_name; --azure sql query
i want to run the above select query in on-premise sql server?
Hey,
You can create a linked server on your on prem server connecting to the Azure SQL database.
And via linked server you can query the Azure SQL database tables.
Sample : Step #1 in below blog
Bommisetty, Rakesh (Hudson IT Consultant) Thank you for reaching out.
To see the azure SQL tables data in on-premises SQL server.
Alternatively, you can also do this:
To query the Azure SQL tables, you can use the four-part naming convention. For example:
SELECT * FROM AzureSQL.database_name.schema_name.table_name by creating a linked server in SSMS.
Please let us know if that works for you.
Regards,
Oury