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 2005 Forums
 Transact-SQL (2005)
 How to supply default date as today?

Author  Topic 

Sun Foster
Aged Yak Warrior

515 Posts

Posted - 2007-04-11 : 15:37:36
I used code below to supply detault date as today but got error:

@created_ dt datetime = Now()

How to fix it?

X002548
Not Just a Number

15586 Posts

Posted - 2007-04-11 : 15:41:05
Is this SQL Server? If it is use Getdate()



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page
   

- Advertisement -