moralesramon


I'm trying to set the NOW() function as default value property of a table field (datetime type) but I'm getting the folowing errors:

error validating the default for column 'optime'

'NOW' is not a recognized built-in function name

i used now, now(),NOW,NOW() as default value property

sorry 'my bad english'




Re: error using default value property in table column properties (mssqlserver sme)(mssql2005 express)

Madhu K Nair


Now() is not a SQL Function... use Getdate() function

Madhu







Re: error using default value property in table column properties (mssqlserver sme)(mssql2005 express)

Satya SKJ

Ture, you have NOW() function in MS Access & VB and not in SQL server.

http://msdn.microsoft.com/library/default.asp url=/library/en-us/script56/html/74f3ca98-792a-43e6-9d7e-c9a2bab0be7b.asp

If you are using the VB script then ensure you are referring the object correclty.







Re: error using default value property in table column properties (mssqlserver sme)(mssql2005 express)

moralesramon

thank you