Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Retrieving comments and descriptions

Author  Topic 

Bex
Aged Yak Warrior

580 Posts

Posted - 2005-07-05 : 06:11:50
Is there a system sproc or function that returns all the descriptions you entered for fields and tables of a database? I know you can change the custom settings when creating a diagram, but is there any other more immediate method (i.e. query the system table that contains the info???).

Thanks in advance!

Hearty head pats

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-07-05 : 06:17:00
Refer this
http://sqlteam.com/forums/topic.asp?TOPIC_ID=51921

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

Bex
Aged Yak Warrior

580 Posts

Posted - 2005-07-05 : 06:18:52
Perfect! Just what I wanted! Thank you very much!

Hearty head pats
Go to Top of Page

Bex
Aged Yak Warrior

580 Posts

Posted - 2005-07-05 : 06:28:10
I don't suppose you could elaborate on the second option. I get the first, but I don't really know what is going on in the second?? For example, what is it querying - ::fn_listextendedproperty ???

Thanks again!

Hearty head pats
Go to Top of Page

Bex
Aged Yak Warrior

580 Posts

Posted - 2005-07-05 : 06:30:04
Sorry, me again! I did what I shoudl have done in the first place and looked it up in BOL! So I now have a clearer understanding! Thanks

Hearty head pats
Go to Top of Page

Bex
Aged Yak Warrior

580 Posts

Posted - 2005-07-06 : 05:01:23
I have discovered another problem.

The database data and schema is scheduled to be dropped every night (using DTS) and rebuilt for automated testing purposes. The DTS package is simply 2 tasks, the first dropping and recreating the database and the second for re-populating the database with the same test data. I generate the SQL script using Enterprise Manager, but the script does not include the descriptions of the tables and fields.

How can I overcome this?

Hearty head pats
Go to Top of Page

Bex
Aged Yak Warrior

580 Posts

Posted - 2005-07-06 : 06:03:08
Just been thinking....is there a method of writing the descriptions in SQL Script as opposed to using the Enterprise Manager? Or would I have to simply locate the system tables and do an insert??


Hearty head pats
Go to Top of Page
   

- Advertisement -