Re: Under what circumstances would GetDate() return NULL?
- From: "Darren Shaffer" <darrenshaffer@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 18 Jul 2005 08:30:37 -0600
is this table involved in merge replication or RDA with tracking on?
is it possible some code path executed an INSERT statement and
specified a null value for the ErrorTime column? it does accept
nulls. the default value only kicks in which you omit this column
from your INSERT statement entirely.
--
Darren Shaffer
..NET Compact Framework MVP
Principal Architect
Connected Innovation
www.connectedinnovation.com
"Jon Brunson" <JonBrunson@NOSPAMinnovationsoftwareDOTcoPERIODuk> wrote in
message news:uDyg$Y3iFHA.2904@xxxxxxxxxxxxxxxxxxxxxxx
> We have an error log on our handheld system in SQLCE. The table is created
> as follows:
>
> CREATE TABLE Errors (
> ErrorTime datetime DEFAULT GetDate(),
> DeviceID bigint NOT NULL,
> UserID bigint NULL,
> ProcedureID bigint NULL,
> QuestionID bigint NULL,
> Location nvarchar(255) NULL,
> ErrorText nvarchar(255) NULL,
> SyncStatus tinyint NULL
> )
>
> For some unknown reason one day, and never since, the ErrorTime column had
> NULLs in it. I didn't think it was even possible for GetDate() to return
> NULL.
>
> I'm completely clueless on this one.
.
- Follow-Ups:
- Re: Under what circumstances would GetDate() return NULL?
- From: Jon Brunson
- Re: Under what circumstances would GetDate() return NULL?
- References:
- Under what circumstances would GetDate() return NULL?
- From: Jon Brunson
- Under what circumstances would GetDate() return NULL?
- Prev by Date: Re: TOP Clause
- Next by Date: Re: Sql Mobile Synchronization (reconcilor problem) !!!!
- Previous by thread: Under what circumstances would GetDate() return NULL?
- Next by thread: Re: Under what circumstances would GetDate() return NULL?
- Index(es):
Relevant Pages
|