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

Answer Posted / saravanan p

select count(column_Name) from information_schema.columns
where table_name='tableName'

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create a view with data from multiple tables?

567


What is efficiency data?

529


What is change data capture (cdc) feature?

604


How many servers can we create in a single subscription?

148


What are the different types of collation sensitivity in sql server?

596






How many categories of data types used by sql server?

602


Define tool Manage Statistics in SQL Server 2000 query ?

531


What is the difference between commit and rollback?

515


What is the downside of using udf?

570


What is the contrast between sql and pl/sql?

629


Explain the cursor lock types?

559


How to use order by with union operators in ms sql server?

584


How to get the definition of a view out of the sql server?

513


What do you understand by coalesce in sql server?

512


How many replicas are maintained for each SQL Azure database?

130