Look for the INFORMATION_SCHEMA keyword. This allows you to query the database schema through SQL. For instance, you get the list of tables with this:
Code Snippet
SELECT * FROM INFORMATION_SCHEMA.TABLES|||The documentation is available here: http://technet.microsoft.com/en-us/library/ms174156.aspx
No comments:
Post a Comment