Re: user tables
From: Aaron [SQL Server MVP] (ten.xoc_at_dnartreb.noraa)
Date: 07/13/04
- Next message: pp: "Re: About mysql privilage table"
- Previous message: Peter: "Re: Public Role in SQL Server 2000 SP3"
- In reply to: hari: "user tables"
- Next in thread: anonymous_at_discussions.microsoft.com: "Re: user tables"
- Reply: anonymous_at_discussions.microsoft.com: "Re: user tables"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 13 Jul 2004 00:53:55 -0400
> What's wrong with the query?
You're querying system tables directly?
> I want to get the list of
> ONLY user tables in the database.
SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES
WHERE
OBJECTPROPERTY(OBJECT_ID(TABLE_SCHEMA+'.'+TABLE_NAME), 'IsMsShipped') = 0
-- http://www.aspfaq.com/ (Reverse address to reply.)
- Next message: pp: "Re: About mysql privilage table"
- Previous message: Peter: "Re: Public Role in SQL Server 2000 SP3"
- In reply to: hari: "user tables"
- Next in thread: anonymous_at_discussions.microsoft.com: "Re: user tables"
- Reply: anonymous_at_discussions.microsoft.com: "Re: user tables"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading