Hello, SQL 2008R2
I would like to get a list of tables without the system tables within the database.
I execute
which gives me all my tables but also gives the table "sysdiagrams", which in Object Explorer is under Tables - System Tables.
I have also tried
as it was in the original example.
Thanks,
djj
The Lord is my shepherd (Psalm 23) - I need someone to lead me!
I would like to get a list of tables without the system tables within the database.
I execute
Code:
Select Table_name as "Table name"
From Information_schema.Tables
Where Table_type = 'BASE TABLE' and Objectproperty(Object_id(Table_name), 'IsSystemTable') = 0
I have also tried
Code:
Objectproperty(Object_id(Table_name), 'IsMSShipped') = 0
Thanks,
djj
The Lord is my shepherd (Psalm 23) - I need someone to lead me!