Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fields that a calculated field depends on 1

Status
Not open for further replies.

litton1

Technical User
Apr 21, 2005
584
0
0
GB
HI all,

Any body know how to get at this info? tried sp_help table_name but it does not show up in there. Searched google but cannot find an answer to this.

Thanks.

Age is a consequence of experience
 
Code:
SELECT * FROM sys.computed_columns
?

Borislav Borissov
VFP9 SP2, SQL Server
 
Or from here:
Code:
SELECT OBJECT_NAME(referencing_id) AS referencing_entity_name, 
    o.type_desc AS referencing_desciption, 
    COALESCE(COL_NAME(referencing_id, referencing_minor_id), '(n/a)') AS referencing_minor_id, 
    referencing_class_desc, referenced_class_desc,
    referenced_server_name, referenced_database_name, referenced_schema_name,
    referenced_entity_name, 
    COALESCE(COL_NAME(referenced_id, referenced_minor_id), '(n/a)') AS referenced_column_name,
    is_caller_dependent, is_ambiguous
FROM sys.sql_expression_dependencies AS sed
INNER JOIN sys.objects AS o ON sed.referencing_id = o.object_id
WHERE  COALESCE(COL_NAME(referencing_id, referencing_minor_id), '(n/a)') = 'YourComputedFieldName'

Borislav Borissov
VFP9 SP2, SQL Server
 
bborissov - the second example did it for me thanks.

Have a star.




Age is a consequence of experience
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top