Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 DESCRIBE exist in MSSQL?

Author  Topic 

micnie_2020
Posting Yak Master

232 Posts

Posted - 2011-04-10 : 23:36:28
Dear All,

In mysql,there is function call describe <<tablename>>. May i know in mssql, what shall i need to used?

Thank you.

Regards,
Micheale

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2011-04-10 : 23:44:03
[code]
exec sp_columns <<tablename>>
[/code]

or

[code]
exec sp_help <<tablename>>
[/code]

or

[code]
select *
from INFORMATION_SCHEMA.COLUMNS
where TABLE_NAME = '<tablename>'
[/code]


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

micnie_2020
Posting Yak Master

232 Posts

Posted - 2011-04-10 : 23:47:04
Thank you KH Tan. It's work now.


Regards,
Micheale
Go to Top of Page
   

- Advertisement -