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 / vidit tyagi

SELECT Count(*)As Coloumns
FROM SysColumns
Where ID =
(SELECT ID FROM SysObjects Where Name = 'TableName')

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the properties of the relational tables?

996


What you can do to delete a table without the delete trigger firing?

973


Explain the microsoft sql server delete command? : SQL Server Architecture

1091


What types of Joins are possible with Sql Server?

1125


How to get a list of columns using the "sp_help" stored procedure in ms sql server?

1026


What does it mean to normalize data?

949


What is self join in sql server joins?

1067


How to drop an existing table with "drop table" statements in ms sql server?

1089


What is dbcc updateusage?

1212


What are the types of lock supported by ?

1046


application server is slow what may be the problem

2228


How to drop existing indexes in ms sql server?

1075


you notice that the transaction log on one of your databases is over 4gb the size of the data file is 2mb what could cause this situation, and how can you fix it? : Sql server administration

978


What are the difference between primary keys and foreign keys?

969


which table keeps the locking information? : Sql server administration

1107