An easy way to do this is to use the INFORMATION SCHEMA objects. They provide a handy way to get at the tables/views/etc inside the database..
Code Snippet
USE MyDatabase;
SELECT * FROM INFORMATION_SCHEMA.VIEWS
If you need to look for anything else inside the database, there are a bunch of others:
http://msdn2.microsoft.com/en-us/library/ms186778.aspx
|||I really appreciate that. Thank you.
No comments:
Post a Comment