1

I would like to save metedata about the database such as version, creation date, etc.

Is it possible to save it in the mdf file itself so I can get it using the DataContext object?

If it's not possible, where/what is the best way to save my data about the database?

1
  • 1
    Of course you may create another table and store whatever you want. Jan 27, 2012 at 9:28

1 Answer 1

2

"Extended properties" can be attached to any object in a database, including the database itself. However, it is simple text

You'd simply have a table called "Version" or such to capture what you need, which can then be accessed like a user table. This can also be used for reporting etc

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.