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
 Transact-SQL (2000)
 Passing GetDATE() as parameter

Author  Topic 

sghosh30
Starting Member

5 Posts

Posted - 2004-07-05 : 08:25:59
Hi

I am calling SP_A from SP_B. SP_A has a datetime parameter and I am trying to call it like follows (from SP_B)

Exec @V_Catch SP_A GETDATE()

But the code won't compile unless I replace Getdate with a datetime variable initialized with the current date.

Any idea guys?

SG

kroky
Starting Member

14 Posts

Posted - 2004-07-05 : 11:43:56
declare @x datetime
set @x = getdate()

Exec @V_Catch SP_A @x
Go to Top of Page
   

- Advertisement -