I have a table on a SQL Server and I would like to export its structure to send to a colleague. Which SQL command should I issue to get the structure? I don't have access to the SQL Server Management Studio.
sp_help '<TableName>'
will give you the structure of a table
Also you can use the information_Schema to get a detailed information,
SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'TableName'
Check this out http://msdn.microsoft.com/en-us/library/ms186778.aspx