Jan 21, 2002 #1 nirmalsp MIS Jan 17, 2002 25 LK i want to list down all the userdefied tables & view & sp from query Analyer using a query fro a db. excluding the system objects. how can i do it
i want to list down all the userdefied tables & view & sp from query Analyer using a query fro a db. excluding the system objects. how can i do it
Jan 22, 2002 #2 RickCole Technical User May 9, 2001 349 GB Tables: select table_name from information_schema.tables where table_type = 'BASE TABLE' Views: select table_name from information_schema.tables where table_type = 'VIEW' Stored Procedures: select name from sysobjects where xtype = 'P' Rick. Upvote 0 Downvote
Tables: select table_name from information_schema.tables where table_type = 'BASE TABLE' Views: select table_name from information_schema.tables where table_type = 'VIEW' Stored Procedures: select name from sysobjects where xtype = 'P' Rick.