Quantcast
Channel: Substring In Sql | Automatic Website Traffic RSS
Viewing all articles
Browse latest Browse all 989

Stairway to Exploring Database Metadata Level 4: Using the Dynamic Online Catalog to Explore Keys and Relationships

$
0
0
Below is the SQL to get all the relationships for a particular table in the database, via the system views SELECT SUBSTRING( (SELECT ' AND ' + Object_Schema_name(fk.Parent_object_ID) + '.' + OBJECT_NAME(fk.Parent_object_ID) + '.' + cr.name + ' = ' + Object ...

Viewing all articles
Browse latest Browse all 989

Trending Articles