SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Create Param from SQL Task1 parse to SQL Task2
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ismailc
Constraint Violating Yak Guru

South Africa
286 Posts

Posted - 08/06/2007 :  06:22:58  Show Profile  Reply with Quote
Hi, This is my first SQL Task using parameters. OLE DB

How do I define in my SQL TASK1

SELECT Run_Period, Run_DateFrom, Run_DateTo FROM dbo.MIS_System_Parameters WHERE Run_Type = 'SELECTED'

1. run_period (decimal) as parameter 0 2. Run_DateFrom (integer) as parameter 1 3. Run_DateTo (Integer) as parameter 2

To be used in my second SQL TASK2 and defined in second task as well.

Delete from MIS_Customer_Documents where Doc_Period=?

Please anyone with assistance!

Regards

ismailc
Constraint Violating Yak Guru

South Africa
286 Posts

Posted - 08/06/2007 :  10:09:33  Show Profile  Reply with Quote
My fault, i had to set the Variables globally.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000