473,396 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

timestamp column from sql server, how to presist in a class?

I need to store a timestamp record from a row in my class as a field that I
can use later to verify that the original record hasn't changed... how would
you store this? as a byte array? or some other data type? thanks!
Apr 20 '07 #1
4 1472
Smokey,

Yes, as a byte array. For example:

Private UpdateStamp As Byte()

Kerry Moorman
"Smokey Grindle" wrote:
I need to store a timestamp record from a row in my class as a field that I
can use later to verify that the original record hasn't changed... how would
you store this? as a byte array? or some other data type? thanks!
Apr 20 '07 #2
thats what I thought, thanks!
"Kerry Moorman" <Ke**********@discussions.microsoft.comwrote in message
news:CE**********************************@microsof t.com...
Smokey,

Yes, as a byte array. For example:

Private UpdateStamp As Byte()

Kerry Moorman
"Smokey Grindle" wrote:
>I need to store a timestamp record from a row in my class as a field that
I
can use later to verify that the original record hasn't changed... how
would
you store this? as a byte array? or some other data type? thanks!

Apr 20 '07 #3

You can also convert it to an int
Select EmpID , Convert(int , RowVers) as RowVersInt from Emp

where RowVers is a timestamp.


"Smokey Grindle" <no****@dontspamme.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
I need to store a timestamp record from a row in my class as a field that
I
can use later to verify that the original record hasn't changed... how
would
you store this? as a byte array? or some other data type? thanks!


Apr 22 '07 #4
ah awesome thanks

"sloan" <sl***@ipass.netwrote in message
news:ez**************@TK2MSFTNGP03.phx.gbl...
>
You can also convert it to an int
Select EmpID , Convert(int , RowVers) as RowVersInt from Emp

where RowVers is a timestamp.


"Smokey Grindle" <no****@dontspamme.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>I need to store a timestamp record from a row in my class as a field that
I
>can use later to verify that the original record hasn't changed... how
would
>you store this? as a byte array? or some other data type? thanks!



Apr 23 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David Greenberg | last post by:
Hi I'm interested in using the timestamp data type & I have some questions. As far as I can understand the contant of a timestamp column is a binary value. Is there any connection between that...
2
by: Lauren Quantrell | last post by:
Is there any reason to have a TimeStamp column onto a table that has a PrimaryKey when using SQL Server and an Access front end? I read that doing so will always eliminate that write conflict...
2
by: Astra | last post by:
Hi All I know an SQL Server timestamp seems to be as useful as rocking horse for show jumping, but I'm hoping you know a 'fudge' to get me round a problem or at least confirm that it isn't...
6
by: Robert Schuldenfrei | last post by:
Dear NG, As expected, when I went to implement TIMESTAMP, I failed. With the help of Kevin Yu, I got the 2 code segments at the bottom working using a WHERE clause that checks all columns. ...
5
by: Prabu Subroto | last post by:
Dear my friends... I created some tables with field timestamp (datatype also timestamp). I mean, I want to have the data when each record inserted or modified in the tables. on MysQL, I just...
2
by: Russell Smith | last post by:
Timestamps support infinity. However if appears dates do not. When timestamps are cast to dates, there is no output. Is this an acceptable option or not? Below are a number of examples...
5
by: pankaj_wolfhunter | last post by:
Greetings, In Sybase, a timestamp column is automatically loaded by the DB engine and its in some hex format. This is shown below id timestamp_value ----------- ------------------ 1...
22
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...
7
by: JJ | last post by:
How do I set one field to have the updated timestamp, and another to have the created timestamp? I want to do this directly from code generated from DB Designer if possible?! JJ
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...
0
tracyyun
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...
0
agi2029
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.