This SQL returns the table list on current database.
SELECT name AS TableName FROM sysobjects WHERE OBJECTPROPERTY(id, N'IsUserTable') = 1 AND status >= 0 ORDER BY name
Tips about BI,DWH and so on..
This SQL returns the table list on current database.
SELECT name AS TableName FROM sysobjects WHERE OBJECTPROPERTY(id, N'IsUserTable') = 1 AND status >= 0 ORDER BY name
No comments:
Post a Comment