vengatesh Dotnet
Saturday, July 30, 2011
TABLE SCHEMA GET COLUMN NAME FROM TABLE
SELECT COLUMN_NAME FROM INFORMATION_sCHEMA.COLUMNS WHERE TABLE_NAME='TABLENAME'
or
select * from sys.columns where object_id in(select object_id from sys.tables where name='tablename')
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment