I have the following code:
When I run it I get:
fldMember [tab] fldDateJoined
John [tab][tab][highlight yellow]2017-08-15 00:00:00.000[/highlight]
Joe [tab] [tab] 2017-08-14 11:24:10.480
When I run
I get
fldMember fldDateJoined
John [tab][tab]2017-08-14 23:59:59.[highlight yellow]997[/highlight]
Joe [tab] [tab] [highlight #FCE94F][highlight #FCE94F][/highlight][/highlight]2017-08-14 11:24:10.480
Why might this be happening and is there a way to prevent it? The same thing happens if I assign :998 or :999 to a variable and then update the table.
Code:
UPDATE dbo.tblTable
SET fldDateJoined = '2017-08-14 23:59:59.[highlight yellow]999[/highlight]'
WHERE fldMember = 'John'
SELECT * FROM dbo.tblTable
When I run it I get:
fldMember [tab] fldDateJoined
John [tab][tab][highlight yellow]2017-08-15 00:00:00.000[/highlight]
Joe [tab] [tab] 2017-08-14 11:24:10.480
When I run
Code:
UPDATE dbo.tblTable
SET fldDateJoined = '2017-08-14 23:59:59.[highlight yellow]998[/highlight]'
WHERE fldMember = 'John'
SELECT * FROM dbo.tblTable
I get
fldMember fldDateJoined
John [tab][tab]2017-08-14 23:59:59.[highlight yellow]997[/highlight]
Joe [tab] [tab] [highlight #FCE94F][highlight #FCE94F][/highlight][/highlight]2017-08-14 11:24:10.480
Why might this be happening and is there a way to prevent it? The same thing happens if I assign :998 or :999 to a variable and then update the table.