dbTalk Databases Forums  

DTS Parameter inside datediff

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS Parameter inside datediff in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Zach.Baier
 
Posts: n/a

Default DTS Parameter inside datediff - 11-01-2005 , 10:14 AM






I am trying to use a datediff with a parameter in DTS as follows

Select * from dbo.tbl where datediff(dd,ReportDate,?) = 1

I have set it up the global variable in Parameters. If I do preview I get
"No value given for one or more required parameters"
If I run it, it compeltes successfuly only no data is retruned.

Any Ideas?

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS Parameter inside datediff - 11-01-2005 , 03:20 PM






I would be looking to build this statement up like this

Global Variables and SQL statements in DTS
(http://www.sqldts.com/default.aspx?205)


Allan



"Zach.Baier" <ZachBaier (AT) discussions (DOT) microsoft.com> wrote


Quote:
I am trying to use a datediff with a parameter in DTS as follows

Select * from dbo.tbl where datediff(dd,ReportDate,?) = 1

I have set it up the global variable in Parameters. If I do preview I
get
"No value given for one or more required parameters"
If I run it, it compeltes successfuly only no data is retruned.

Any Ideas?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.