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 2008 Forums
 Transact-SQL (2008)
 DATETIME Comparison

Author  Topic 

Quan69
Starting Member

5 Posts

Posted - 2011-08-16 : 21:15:42
I have a stored procedure to test for a given date againts the current date:

IF (@expr_date < GETDATE())
.... code

The Test condition works fine in SQL Server 2008,
But errors on above IF (@expr_date < GETDATE()) of stored proc,
when debugging in Visual Studio 2010...

Help Please


Me

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2011-08-16 : 21:22:48
can you post the entire stored procedure ?

You can't create the stored procedure or you get error while execution ? what is the error message ?


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -