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

Answer Posted / sudhir kumar

IN SQLSERVER 20005


SELECT COUNT(COLUMN_NAME) FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = N'TABLENAME'


try in sql server 2000

Is This Answer Correct ?    29 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What stored procedure can you use to display the current processes?

658


What is fill factor and pad index?

746


What are translations and its use? : sql server analysis services, ssas

792


how would you improve etl (extract, transform, load) throughput?

754


What stored by the master? : sql server database administration

740






Can you explain about buffer cash and log cache in sql server?

700


What are functions in the sql server?

790


What function does a database engine serve in the sql server?

758


How do you handle datasets larger than 50 gb?

154


What is server-level principal?

114


Why transaction is important?

717


Why Master database is required?

757


In one interview...interviewer ask me question pleas tell me sql server architecture.. can any body tell me the sql server architecture with digram

1712


How do I view a trc file?

678


Why we use trigger in sql server with example?

696