To run a SSIS package outside of SQL Server Data Tools you must install Move File to Archive of Integration Services or higher

Just to give future visitors something to look on, in my case issue was I had two different version of SSIS installed on same machine. One was for 2005 and another for 2014. And oddly enough even I was explicitly pointing to newer version (as shown in later part of post) in my command, it … Read more

EAV over SQL Server

Best Practices for Semantic Data Modeling for Perfor… EAV is notoriusly problematic as it leads to severe deployment performance and scalability problems. The Whitepaper in the link, released by the SQL Server Customer Advisory Team tries to offer some guidance to deploy a succesful EAV model.

replace NULL values with latest non-NULL value in resultset series (SQL Server 2008 R2)

You can try the following: * Updated ** — Test Data DECLARE @YourTable TABLE(Product INT, Timestamp DATETIME, Price NUMERIC(16,4)) INSERT INTO @YourTable SELECT 5678, ‘20080101 12:00:00’, 12.34 UNION ALL SELECT 5678, ‘20080101 12:01:00’, NULL UNION ALL SELECT 5678, ‘20080101 12:02:00’, NULL UNION ALL SELECT 5678, ‘20080101 12:03:00’, 23.45 UNION ALL SELECT 5678, ‘20080101 12:04:00’, NULL … Read more

How to extract this specific substring in SQL Server?

Combine the SUBSTRING(), LEFT(), and CHARINDEX() functions. SELECT LEFT(SUBSTRING(YOUR_FIELD, CHARINDEX(‘;’, YOUR_FIELD) + 1, 100), CHARINDEX(‘[‘, YOUR_FIELD) – 1) FROM YOUR_TABLE; This assumes your field length will never exceed 100, but you can make it smarter to account for that if necessary by employing the LEN() function. I didn’t bother since there’s enough going on in … Read more