how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / ram&saran
SELECT COUNT(*) FROM SYS.COLUMNS WHERE ID=(SELECT * FROM
SYS.OBJECT WHERE NAME='TABLENAME')
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Write a program using SQL queries to find a unique entry in a table.
How to modify an existing user defined function?
What is the purpose of floor function?
what are the new features in SSRS?
What is truncate table?
What is the difference between for trigger and after trigger?
How many types of attribute relationships are there? : sql server analysis services, ssas
Explain syntax for viewing trigger?
How to create a scrollable cursor with the scroll option?
what are the basic functions for master, msdb, model, tempdb and resource system databases? : sql server database administration
What is mscorsvw.exe - process - microsoft .net framework ngen?
What is self contained sub query?
What happens if strings are casted into wrong code pages in ms sql server?
Which is faster statement or preparedstatement?
Explain system scalar functions?