SQL Command Parameter in SSIS.

by | Sep 15, 2009 | SQL server | 0 comments

I create new ETL package with SQL Server Integration Services 2005, and I was thinking that nothing can surprise me, but It seems that I was wrong. My package contains simple date parameter which I would like to pass to sql command source. But every time I’ve pressed parameters button I get message:

Parameters cannot be extracted from the SQL command. The provider might not help to parse parameter information from the command. In that case, use the “SQL command from variable” access mode, in which the entire SQL command is stored in a variable.

Strange because my t-sql command was very simple… So what’s happened? I used my query on different system and I need to set format of the date time, so I put at begging of the statement following part:

SET DATEFORMAT DMY

And that was the source of error when I removed it from script everything works fine.

Written by Tomasz Szulczewski

Hi, my name is Tomasz Szulczewski, and I have been in love with information technology for over 25 years, but I still have an IT passion and feel like a geek. I am a person who is problem solver who thinks that not all people must be experts in IT.

Related Posts

#n/A in SSAS cell

Today I get strange error when I made new cube for SQL Server 2008 R2 analysis services. My cube simple  just three dimensions and a few measures. I’ve created as always role for my users and grant them “Read” right [adblockingdetector id="5770e6ed85560"] Part of the...

read more

0 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.