how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / amit
SELECT count(*) NoOfColumns FROM SYSCOLUMNS
WHERE id= (Select id from SYSOBJECTS where name
= 'TableName')
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
How to test odbc dsn connection settings?
How to perform backup for certificates in sql server? : sql server security
query processing
Where are sql server usernames and passwords stored in the sql server?
Where cross join is used?
What is snapshot replication?
What is a view and what are its advantages?
How you can change the database name in SQL SERVER?
Where is localdb stored?
When to use Inner join & when to use subquery?
Difference between DELETE and TRUNCATE?
Can we use having clause without group by?
Sql server reporting services vs. Crystal reports.
What is the difference between drop table and truncate table?
How do you delete duplicate rows in sql server?