SQL Code
Select TABLE_CATALOG,TABLE_NAME
From INFORMATION_SCHEMA.TABLES
Where TABLE_TYPE = 'BASE TABLE'
Order by Table_Name
Try it copy & Paste on SQL Query analyzer
Code Description
1. From INFORMATION_SCHEMA.TABLES - Table name in SQL master table2. Select TABLE_CATALOG,TABLE_NAME - Field name in Information Table
3. Where TABLE_TYPE = 'BASE TABLE' - Find Table Type 'Base Table'4. Order by Table_Name - Order Field by Table name
No comments:
Post a Comment