Groups | Blog | Home
all groups > sql server new users > november 2005 >

sql server new users : updating field with specific date?



r
11/17/2005 1:04:38 PM
How do I update a date field to reflect a specific date? My field is
formatted at smalldatetime.

I've tried:

UPDATE dbo.Dealers
SET dbo.Dealers.BillQ2 = 2005/11/14
FROM dbo.Dealers, aipdn.qtr2
WHERE dbo.Dealers.DealerCode = aipdn.qtr2.DealerCode

And I've tried it as 11/14/2005 also.

??


r
11/17/2005 1:08:09 PM
Nevermind - just got it. = '20051114'


[quoted text, click to view]

AddThis Social Bookmark Button