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

What is sql server replication? : sql server replication

996


Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?

1055


Explain powershell included in sql server 2008?

1068


Why olap is used?

985


How data can be copied from one table to another table?

956


What is the main purpose of having conversation group?

902


What is dbcc updateusage?

1216


how many bits ip address consist of? : Sql server database administration

906


Explain important index characteristics?

1044


What is indexed view? How to create it?

1023


Explain datetime2 data type in sal server 2008?

919


you added a row to a view, but the row is not shown on the view. Explain how this can happen, and how you can remedy the situation

949


What is NOT NULL Constraint in sql server 2012?

1006


How to update multiple rows with one update statement in ms sql server?

1215


How do I trace a query in sql server?

963