Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Stored Procedure with date parameter question

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-03-12 : 07:45:33
David writes "I need to put this a query into a DTS packet and run on a daily basis. That part I can do, but I can't quite figure out the syntax
I want to execute a stored procedure with a date parameter of Current date -1. Please let me know how this can be done. Thanks in advance for your help.

windows 2000
sql server 2000




Current SP

DECLARE @RC int
DECLARE @start_date datetime
-- Set parameter values
EXEC @RC = [KAEnterprise].[dbo].[sp_POPULATE_AGENT_REVIEW_RESULTS] @start_date"

sachinsamuel
Constraint Violating Yak Guru

383 Posts

Posted - 2004-03-12 : 07:58:59
Why do u want to send the date as a parameter, if the date is current date. In the stored procedure u can use getdate(), to get the current date.

regards
Sachin

Go to Top of Page
   

- Advertisement -