how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / ajit kumar nayak
select count(*) from syscolumns sy,Sysobjects so
where
sy.id =so.id
and so.name = <table name>
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is t-sql script to take database offline – take database online.
Explain view in sql server?
Where cross join is used?
What are the limitations in ssrs on sql server express edition?
What is an example of a primary key?
what is bit datatype and what's the information that can be stored inside a bit column? : Sql server database administration
How to delete database objects with "drop" statements in ms sql server?
Can we use pragma autonomous_transaction in trigger?
Explain system views?
How do I find my localdb version?
What is statement level trigger?
what kind of lan types do you know? : Sql server database administration
How to create a scrollable cursor with the scroll option?
What does the update command do?
What is cross join in sql server joins?