Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / harshad

select count(*) from information.schema.columns
where table_name='tablename'

//where tablename is name of your sql table.
//do not prefix table name with .dbo

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How much is a sql server license?

942


Explain important index characteristics?

1023


What is the process of normalising?

991


Explain the cursor lock types?

1041


What are the types of indexes?

1071


What is the difference between ‘having’ clause and a ‘where’ clause?

1032


What is efficiency data?

946


Explain the ways to controlling cursor behavior?

910


Difference Between ORDER BY Clause and GROUP BY Clause in SQL?

1050


What new changes are being made in SQL Server?

1170


Differentiate between delete and truncate.

1054


What is scan table/view and seek table/view when its occurs? : sql server database administration

1031


How to connect a database with sql express.?

1054


What is field with example?

914


What is query processing?

928