I have done some SQL Server queries using date ranges but I want to insert datetimes into a SQL Server table.

I used SELECT * FROM DB.TABLE WHERE adatefield = "2013-10-20" so I am guessing to insert a date into SQL Server I use:

INSERT INTO DB.TABLE (adatefield) VALUES ("2013-10-20")

How would I go about inserting a datetime() field into a SQL Server datetime field?

TIA

--
Jeff

---------------

Jeff Johnson
j...@san-dc.com
(623) 582-0323

www.san-dc.com
www.arelationshipmanager.com


_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/5258433b.9000...@san-dc.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to