It’s another T-SQL Tuesday! This month, it’s hosted by the one and only Deepthi Goguri (b | t). This month, Deepthi has two question for us:
Continue reading “T-SQL Tuesday #159 – Favorite SQL 2022 Feature” →
- Blog about your new favorite feature in SQL Server 2022 or in Azure.
- What are your new year resolutions and how do you keep the discipline doing it day after day?
Now that we understand a little more how dynamic SQL works, let’s see how it helped me solve the problem.
What is OPENROWSET?
OPENROWSET is a functionality that allows you to access data sources outside your current server. This could be reading from an Excel file or calling another SQL Server instance. You’re able to treat that other data source as record set, or derived table, and work with the rows returned as you would a local table. One reason you may want to do this is that you need to use a stored procedures to query data from other servers and bring the data together, effectively creating an ELT (Extract – Load – Transform) process without having to use SSIS or Azure Data Factory (ADF).
Continue reading “OPENROWSET, Dynamic SQL & Error Handling” →