how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / jerry joseph
SELECT count(*) NoOfColumns FROM SYSCOLUMNS
WHERE id= (Select id from SYSOBJECTS where name = 'TableName')
| Is This Answer Correct ? | 14 Yes | 6 No |
Post New Answer View All Answers
How to create a simple user defined function in ms sql server?
What is default constraint?
You want to implement the many-to-many relationship while designing tables. How would you do it?
What is the bookmark lookup and rid lookup?
How many database files are there in sql server 2000?what are they?
What is tempdb database? : SQL Server Architecture
If we delete pack Spec what will be the status of pack Body ?
How secure is sql server database?
What is row_number()?
How to list all triggers in the database with sys.triggers in ms sql server?
How to create indexed view?
How to check table values in sql server?
Do you know the cursor types?
Can you explain what is sql server english query?
What is the difference between update lock and exclusive lock?