August 26, 2003 at 8:52 am
How can I query the table to get the attributes of a table like the column name, column type...etc
thanks
August 26, 2003 at 9:09 am
sp_columns 'yourtablename'
August 26, 2003 at 9:20 am
sp_help <table name>
Returns more information like indexes, foreign keys, ... in a nice format in QA.
August 26, 2003 at 9:33 am
You might also try:
select * from information_schema.columns where table_name = '<yourtable>'
Gregory Larsen, DBA
If you looking for SQL Server Examples check out my website at http://www.geocities.com/sqlserverexamples
Gregory A. Larsen, MVP
August 26, 2003 at 2:14 pm
Thanks
sp_columns did the trick
August 27, 2003 at 4:06 am
hi!
you might want to have a look at
http://www.sqlservercentral.com/scripts/contributions/246.asp
to get comprehensive information ...
best regards,
chris.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply