June 10, 2005 at 10:01 am
What's a reliable way to tell when a database was created?
Thank you.
June 10, 2005 at 10:05 am
In Em, right-click on your database and select properties. Look at Date Created.
Note that there's probably a t-sql way of doing this....
Erik
June 10, 2005 at 10:09 am
Select CrDate from master.dbo.SysDatabases where name = 'DbName'
June 10, 2005 at 10:31 am
Thank you. That worked as far as telling me when the database was created on THAT COMPUTER. However, it turned out, that the database was moved there from the old computer. Do you think the creation date for the Original db could still be stored somewhere within the database?
Thanks.
June 10, 2005 at 11:37 am
Do you have access to the master database from that server? or a backup that could be restored?
Otherwise I think you're out of luck (unless you have the original mdf file, you could check the creation time of the file in windows explorer).
June 14, 2005 at 5:24 pm
You could check the data. Maybe records carry a creation date. Not precise but at least an idea.
June 14, 2005 at 9:07 pm
Good idea... but make sure it's a column with a default if possible. Just to avoid data that's be reloaded from an even older version of the app.
June 15, 2005 at 6:44 am
Maybe this will help... look at the create date of the tables, sort by date created. Granted, it won't give you the exact date of when the db was created but unless you drop and recreate all of the tables the oldest table create date should be pretty close to when the db was created.
June 15, 2005 at 7:07 am
Always another way .
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply