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 are policy management terms?

741


What is the downside of using udf?

748


How many categories of functions based their return modes?

844


How to recreate an existing index in ms sql server?

711


Why we use trigger in sql server with example?

699






What do you mean by recursive stored procedure?

683


Can you type more than one query in the query editor screen at the same time?

772


wat wil hapn if we give the both read and deny read permission to user?

1859


Explain what is it unwise to create wide clustered index keys?

704


What is the security principal at the database level that represents your session?

702


What is 2nf example?

728


What is difference between sql and sql server?

689


What is data source in connection string?

641


How to create a simple user defined function in ms sql server?

741


Why we use the openxml clause?

719