Display row numbers in SSMS

How do you show row numbers in SQL Server Managment Studio? Read on and find out.

Continue reading Display row numbers in SSMS

Powershell: ReportingServicesTools. Download all RDL files from a SSRS folder.

I had a case where the original Visual Studio solution was missing and we needed to make changes to some reports. The reports were still up on the Reporting server and by using ReportingServicesTools, I was able to download all of them at one time instead of clicking each one and downloading manually.

Continue reading Powershell: ReportingServicesTools. Download all RDL files from a SSRS folder.

SSIS error: 0xC0048021SSIS

After deploying my SSIS ETL project, I tried to run it and got this error: Flat File Destination failed validation and returned error code 0xC0048021. See below how to fix this.

Continue reading SSIS error: 0xC0048021SSIS

SSIS Hresult: 0x80004005 Consider using the WITH RESULT SETS clause to explicitly describe the result set.SSIS Hresult: 0x80004005

I was trying to run a stored procedure in SSIS and put the results into a table and got this error:

Error at Data Flow Task [Call sp_Get_Activity [1]]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: “Microsoft OLE DB Driver for SQL Server” Hresult: 0x80004005 Description: “The metadata could not be
determined because statement ‘EXEC (@TSQL) at Production’ in procedure ‘sp_Get_Activity’ contains dynamic SQL.
Consider using the WITH RESULT SETS clause to explicitly describe the result set.”

Keep reading to see how I fixed it!

Continue reading SSIS Hresult: 0x80004005 Consider using the WITH RESULT SETS clause to explicitly describe the result set.SSIS Hresult: 0x80004005

Installing SQL Server 2022 Developer Edition

It is finally out!  SQL Server 2022 was released on 11/16/2022 and there are a bunch of new features and enhancements.  Today we are going to install the developer edition so you can see the new install screens. Lots of screenshots today!

Continue reading Installing SQL Server 2022 Developer Edition

Another feature I wish SQL Server had: as of timestamp

If you are using Oracle 10g or greater, you can query the database tables as of a certain time using their Flashback technology. This is great if you had some data deleted and you do not want or cannot restore a full backup to retrieve the lost data.

Continue reading Another feature I wish SQL Server had: as of timestamp