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
Can we check locks in database? If so, how can we do this lock check?
sql database suspect We have a sql database that is showing as suspect. How can we recover?
What are the fixed server level roles? : sql server security
What are the steps you must follow to hide sql server instances?
How many ways to create table-valued functions?
is there a column to which a default can't be bound? : Sql server database administration
How to achieve Paging of records in SQL SERVER?
what changed between the previous version of sql server and the current version? : Sql server database administration
What is transact-sql ddl trigger?
How to name query output columns in ms sql server?
What are the joins in sql server? : sql server database administration
What are the functions in sql server?
Find first and last day of current month in sql server
How you trouble shoot when any job fails
why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it? : Sql server administration