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
Your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files?
What are database states in ms sql server?
What is the difference between index seek vs. Index scan?
Write a code to select distinct records without using the DISTINCT keyword.
What is a trigger in sql server?
What are the benefits of filtered indexes?
What are the different kinds of ssrs reports?
How many types of keys are there?
Can you leave a union at any time?
How to execute a sql statement using odbc_exec()?
What are null values in ms sql server?
What does the on update no action do?
can an automatic recovery be initiated by a user? : Sql server administration
Explain what is use of dbcc commands?
Why use cursor in sql server?