G
Guest
Hi
I have an ASP aplication that is used for colecting consumer complaint
information. THe info is stored in an SQL Server database. All seems to be
working OK apart from one thing. To record the date that the complaint came
in there is a field in the complaints table called DateReceived chihc has a
default value of (GetDate()). When i add a new record to the complaints
table manually in Visual Studio, the DateReceived field gets set to the date
and time the record was inserted. However when a record gets inserted using
the ASP.net aplication, the date is NULL. I realise i could probably
populate the date field programatically in ASP.net but i don't understand why
it doesn't work this way, this is how i have always done it before using
MySQL.
I have an ASP aplication that is used for colecting consumer complaint
information. THe info is stored in an SQL Server database. All seems to be
working OK apart from one thing. To record the date that the complaint came
in there is a field in the complaints table called DateReceived chihc has a
default value of (GetDate()). When i add a new record to the complaints
table manually in Visual Studio, the DateReceived field gets set to the date
and time the record was inserted. However when a record gets inserted using
the ASP.net aplication, the date is NULL. I realise i could probably
populate the date field programatically in ASP.net but i don't understand why
it doesn't work this way, this is how i have always done it before using
MySQL.