how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / sudhir kumar
IN SQLSERVER 20005
SELECT COUNT(COLUMN_NAME) FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = N'TABLENAME'
try in sql server 2000
Is This Answer Correct ? | 29 Yes | 5 No |
Post New Answer View All Answers
What is difference between stored procedure and user defined function?
What do you understand by SQL*Net?
What are synonyms?
What is transactional replication?
How to Improve the performencs of SQL Server 2005 exclude stored Procedure and Indexes?
What are the two modes of authentication in sql server?
What is the use of for clause?
What is shared lock?
What is resultset concur_updatable?
Differentiate between mongodb vs. Sql server?
Explain go command in sql server?
Differentiate between ms sql server reporting services vs crystal reports?
How to trouble shoot if unable to connect SQL Server
What is GUID in sql server?
Can a function call a stored procedure in sql server?