Michael
Michael

Reputation: 13636

how to get last updated field in DataSet row?

Any idea how to get last updated field in DataSet row?

I mean in C# is there anything like select @@identity in sql?

Upvotes: 0

Views: 255

Answers (1)

syed mohsin
syed mohsin

Reputation: 2938

You can have a column that have DateTime in it. When you update your record, set the DateTime of your record to DateTime.Now and Atlast select Max(DateTimeColumn).

Some may prefer that column in DB for keeping records of last update.

Upvotes: 1

Related Questions