how to find number of columns in a table in sql server 2000
and 2005 also

Answer Posted / kumar.t

Select Count(Column_Name) As NoOfColumns From
Information_Schema.Columns Where table_Name='Company'

Is This Answer Correct ?    22 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is t-sql script to take database offline – take database online.

606


What is field with example?

519


what is a join and explain different types of joins? : Sql server database administration

542


What is microsoft sql server?

546


what is the difference between writing data to mirrored drives versus raid5 drives. : Sql server administration

544






What is the stuff?

530


How to update a field in SQL after ALTERING a row?

690


What is cross join in sql server joins?

604


Explain in details security in SQL azure?

97


How do I edit a procedure in sql server?

553


what is dbcc? : Sql server database administration

531


you have developed an application which uses many stored procedures and triggers to update various tables users ocassionally get locking problems which tool is best suited to help you diagnose the problem? : Sql server administration

537


How to connect to SQL Azure Database by using sqlcmd?

110


What is the difference between dropping a database and taking a database offline?

704


What are the different sql server versions?

523