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 / sujitha

SELECT DISTINCT SYS.NAME,COUNT(*) FROM SYSOBJECTS SYS
INNER JOIN SYSCOLUMNS SYSCOL ON SYSCOL.ID=SYS.ID
WHERE SYS.XTYPE='U' GROUP BY SYS.NAME

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How you can add messages to the nt event log from within a stored procedure?

1069


What is proper subset of candidate key?

996


What happens to a statement batch if there is a compilation error?

967


How many types of stored procedures are there in sql server?

1015


How to get the definition of a stored procedure back?

977


What is difference between order by and group by?

1006


If the job running very slow what is the action you do

1893


Explain the benefits of user-defined functions?

1062


What is the use of for clause?

1118


Why Master database is required?

1142


How to write the storeprocedure with in the store procedure? and how can we write the store procedure with in a trigger vice versa? plz post me the exact answer?

2582


Does a specific recovery model need to be used for a replicated database? : sql server replication

961


What do mean by xml datatype?

1103


What is sqlservr.exe - process - sql server (sqlex?press)?

1108


Explain the concept of recursive stored procedure.

959