When creating a table, you have the option of assigning a default value for a column. Is it possible to set the default value for a datatime column to the current date and time?
Sorry, should have provided more information: Database is SQL server 2000. Am trying to set the default value in the table design page of enterprise manager.
Just had a quick look through Sql Server BOL and cant seem to find anything listing functions that can be used in the default value column. And, i have only ever set INT, VARCHAR and DATETIME defaults - of which DATETIME was the only one that required a function call to set the current date and time!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.