We put a unique identifier in the extended properties of each table, which is then read by some reports. I'd like to be able to do this on the fly, so we don't have to type it in by hand. However, SQL Server 2008 does not allow ad hoc updates to system catalogs.
How can I update the extended properties with an ad hoc query? Or, is there another place that I can store metadata where it can be easily read by reports?
Any help is greatly appreciated.