![]() |
| ||
| how to capture date in MSSQL hi.. i'm having a table called "Survey". Whenever user create survey, it will store the date and time the survey was created. CREATE TABLE [dbo].[Survey] ( right now..all the survey created by user are the the same for each record.. i guess i shouldn't use getdate() what should i do to resolve this? please help... |
| ||
| Re: how to capture date in MSSQL It should use a type of datetime and a default of getdate(). I think the syntax was this [DateCreated] [datetime] DEFAULT getdate() |
| All times are GMT -4. The time now is 10:49 am. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC