how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / vidit tyagi
SELECT Count(*)As Coloumns
FROM SysColumns
Where ID =
(SELECT ID FROM SysObjects Where Name = 'TableName')
| Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
What are the steps you can take to avoid “deadlocks”?
Explain what is the difference between union and union all?
Explain magic tables in sql server?
What is SQL Azure?
How many cores do I need for sql server 2016?
Can you leave a union at any time?
Does sql server use t sql?
What is sql server replication? : sql server replication
Can group functions be mixed with non-group selection fields in ms sql server?
What is key set driven?
What are transactions and its controls?
Tell me what do you understand by a view? What does the with check option clause for a view do?
When multiple after triggers are attached to sql table, how to control the order of execution?
What are secondary xml indexes?
What is the use of builtinadministrators group in sql server? : sql server security