I have a SQL Server database and I want to know what columns and types it has. I\'d prefer to do this through a query rather than using a GUI like Enterprise Manager. Is the
In addition to above questions, if we have table in DB like db_name.dbo.table_name, we may use following steps
db_name.dbo.table_name
Connect with DB
USE db_name;
Use EXEC sp_help and don't forget to put table name as 'dbo.tablename' if you have dbo as schema.
EXEC sp_help
'dbo.tablename'
dbo
exec sp_help 'dbo.table_name'
This should work!