how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / dharmendra k. dixit
@Anshul..
Bro..through your code u can obtain the Total numbers of
rows in your Table.
---------------------------------
For getting Total Columns i will use this:
SELECT Count(*)As Coloumns
FROM Sys.SysColumns
Where ID =
(SELECT ID FROM Sys.SysObjects Where Name = 'YourTableName')
| Is This Answer Correct ? | 34 Yes | 8 No |
Post New Answer View All Answers
How to remove duplicate rows from table?
what data regions are and what are the different data regions?
How to change server name in sql server?
How to assign new column names in a view?
What is history table in sql server?
Does a full backup include transaction log?
Explain the difference between control flow and data flow?
What is database dimension? : sql server analysis services, ssas
What are the benefits and tasks of object explorer? : sql server management studio
What is data modification?
How to create a new login name in ms sql server?
What are commit and rollback in sql?
whats the maximum size of view state??
What is importing utility?
What is Transparent Data Encryption?