OK, I have a datetime field in a table and when I ran an update like
so:
UPDATE myTable SET number=2 WHERE ID=50
I had the old datetime information in the table and that got
overwritten when I did the update. Now I am sure there is no way of
getting that back (yup, believe it or not I didn't do a backup) but
just a general question, should i have done the update like so:
UPDATE myTable SET number=2, mydatetimefield=mydatetimefield WHERE
ID=50
to keep the same information in the datetime field?? Just curious. If
anyone can help, it would be greatly appreciated.
JJ 4 6734
Are you sure the column type is datetime and not timestamp? A
timestamp field is automatically updated whenever you insert or update
a row. If that's the case then I believe you are out of luck.
</rob> ja************@yahoo.com (Jimmy Jim) wrote in message news:<8e**************************@posting.google. com>... OK, I have a datetime field in a table and when I ran an update likeou a so:
UPDATE myTable SET number=2 WHERE ID=50
I had the old datetime information in the table and that got overwritten when I did the update. Now I am sure there is no way of getting that back (yup, believe it or not I didn't do a backup) but just a general question, should i have done the update like so:
UPDATE myTable SET number=2, mydatetimefield=mydatetimefield WHERE ID=50
to keep the same information in the datetime field?? Just curious. If anyone can help, it would be greatly appreciated.
JJ
Are you sure the column type is datetime and not timestamp? A
timestamp field is automatically updated whenever you insert or update
a row. If that's the case then I believe you are out of luck.
</rob> ja************@yahoo.com (Jimmy Jim) wrote in message news:<8e**************************@posting.google. com>... OK, I have a datetime field in a table and when I ran an update likeou a so:
UPDATE myTable SET number=2 WHERE ID=50
I had the old datetime information in the table and that got overwritten when I did the update. Now I am sure there is no way of getting that back (yup, believe it or not I didn't do a backup) but just a general question, should i have done the update like so:
UPDATE myTable SET number=2, mydatetimefield=mydatetimefield WHERE ID=50
to keep the same information in the datetime field?? Just curious. If anyone can help, it would be greatly appreciated.
JJ
I think you are right Rob. That sux, I will have to do some playing
around, but needless to say I screwed up the dates on the records. Oh
well, lessons learned.
Thanks again!
JJ ro*@microjuris.com (Rob Baxter) wrote in message news:<ac**************************@posting.google. com>... Are you sure the column type is datetime and not timestamp? A timestamp field is automatically updated whenever you insert or update a row. If that's the case then I believe you are out of luck.
</rob>
ja************@yahoo.com (Jimmy Jim) wrote in message news:<8e**************************@posting.google. com>... OK, I have a datetime field in a table and when I ran an update likeou a so:
UPDATE myTable SET number=2 WHERE ID=50
I had the old datetime information in the table and that got overwritten when I did the update. Now I am sure there is no way of getting that back (yup, believe it or not I didn't do a backup) but just a general question, should i have done the update like so:
UPDATE myTable SET number=2, mydatetimefield=mydatetimefield WHERE ID=50
to keep the same information in the datetime field?? Just curious. If anyone can help, it would be greatly appreciated.
JJ
I think you are right Rob. That sux, I will have to do some playing
around, but needless to say I screwed up the dates on the records. Oh
well, lessons learned.
Thanks again!
JJ ro*@microjuris.com (Rob Baxter) wrote in message news:<ac**************************@posting.google. com>... Are you sure the column type is datetime and not timestamp? A timestamp field is automatically updated whenever you insert or update a row. If that's the case then I believe you are out of luck.
</rob>
ja************@yahoo.com (Jimmy Jim) wrote in message news:<8e**************************@posting.google. com>... OK, I have a datetime field in a table and when I ran an update likeou a so:
UPDATE myTable SET number=2 WHERE ID=50
I had the old datetime information in the table and that got overwritten when I did the update. Now I am sure there is no way of getting that back (yup, believe it or not I didn't do a backup) but just a general question, should i have done the update like so:
UPDATE myTable SET number=2, mydatetimefield=mydatetimefield WHERE ID=50
to keep the same information in the datetime field?? Just curious. If anyone can help, it would be greatly appreciated.
JJ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ray Holtz |
last post by:
I have a form that shows a single record based on a query criteria.
When I click a button it is set to use an append query to copy that
record to a separate table, then deletes the record from the...
|
by: Tc |
last post by:
Hi,
I was curious, I am thinking of writing an application that loads a dataset
from a database that resides on a server. The question I have is this, if
multiple copies of the app will be...
|
by: RML |
last post by:
Hi everyone,
I am using VB.NET 2003 and an OleDBDataAdapter to update an Access table's
DateTime field. The field's format is set to "General Date" (ie: 11/24/2004
8:00:00 AM). The problem is...
|
by: Mal Ball |
last post by:
I hope I have the right forum for this question. I have an existing Windows
application which uses a SQL Server database and stored procedures. I am now
developing a web application to use the same...
|
by: Brett Romero |
last post by:
Is there a way to update data in a DataTable cell? I have column dates
that are string type. I want to add another column to this table:
dt.Columns.Add(new DataColumn("Datecolumn2",...
|
by: mfreeman |
last post by:
The minimal code (VB.NET 2003) needed to show this problem is shown
below. All I do is loop through the records in the table and update
them without making any changes. Out of 600 records, about...
|
by: kolalakitty |
last post by:
Hopefully someone here can help me/point me in the right direction.
I've found tons of references towards making relations, creating rows,
saving said rows, using datagrids, databinding objects,...
|
by: =?Utf-8?B?QmFyYmFyYSBBbGRlcnRvbg==?= |
last post by:
I setup a simple gridview as a utility just to do some updates, nothing fancy
just wanted easy UI to make updates. When I select ‘Edit’, I get the fields
I want to edit. I edit them and click...
|
by: semomaniz |
last post by:
I have a ajax reorderlist that displays the contents with out any problems but when i drag and reorder the list nothing happens, i get a postback and the same initial list is displayed, seems like my...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |