Get Table and Column Names From SQL Server
you can get table names from sql server with a simple query
–table names
SELECT * FROM sys.objects WHERE type = ‘U’
–column names
SELECT * FROM sys.columns
WHERE OBJECT_NAME(sys.columns.OBJECT_ID) = ‘tblTableName’
Category: Sql - 2 comments »





May 26th, 2009 at 8:19 am
Just what I was looking for! :-) Thanks!!!
May 26th, 2009 at 9:08 am
you are welcome Antonio.
thanks for the comment :)