Add a DateCreated field that has a datetime data type. Then when you insert the record, use GETDATE() to add the current date:
INSERT INTO
namesTable
(1stName,lastName, datecreated)
VALUES
(@1stName,
@lastName, GETDATE())
Then in your select, order by datecreated
select * from namesTable order by datecreated
Sincerely,
Malcolm Sheridan
Microsoft Certified Solution Developer
Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as
Answer" if a marked post does not actually answer your question.
