Getting Dynamic in SSIS Queries

Posted by ejohnson2010 on SQL Blog See other posts from SQL Blog or by ejohnson2010
Published on Mon, 22 Mar 2010 15:00:00 GMT Indexed on 2010/03/22 15:11 UTC
Read the original article Hit count: 466

Filed under:
|
|
When you start working with SQL Server and SSIS, it isn’t long before you find yourself wishing you could change bits of SQL queries dynamically. Most commonly, I see people that want to change the date portion of a query so that you can limit your query to the last 30 days, for example. This can be done using a combination of expressions and variables. I will do this in two parts, first I will build a variable that will always contain the 1 st day of the previous month and then I will dynamically...(read more)

© SQL Blog or respective owner

Related posts about expressions

Related posts about SQL Server