CFF KB - Carrz-Fox-Fire Promotions Knowledge Base
CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.Knowledge Base
- Breadrumbs:
Update Records in SQL Server Table of type DateTime
- Article ID:
18 - Date Created
Thursday, September 30, 2010 - Last Updated
Wednesday, June 20, 2012 - This Article Has been Viewed
1815 times - Short Desc
If you are wanting to update a datetime column in your sql server database, this is how it is done. - Details
Updating current records in a SQL Server database from a Column of Type: DateTime using the CONVERT function. - Recreate Issue
Updating datetime field will sometimes not update or will give an error. Using the CONVERT function will correct this behavior. - Resolve Issue
To update your DateTime Column within SQL Server Database, run the following action.<%
UPDATE MyTabe SET DateUpdated = CONVERT(DATETIME, '1900-01-01 00:00:00', 102)
%>
Share With Friends (Updated 6-8-2010)
Recent Articles
All Topics
- Coming Soon - Knowledge Exchange
Trending Articles
- Microsoft VBScript runtime error '800a0046' Permission denied FileSystemObject 24695
- Microsoft OLE DB Provider for SQL Server error '80040e57' String or binary data would be truncated. or The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data. 21297
- ADODB.Parameters error '800a0e7c' Parameter object is improperly defined 19545
- After Effects warning: Audio conforming failed for the following file .cfa. Perhaps due to disk space 17785
- The backup set holds a backup of a database other than the existing 16826