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 / dharmendra k. dixit

@Anshul..
Bro..through your code u can obtain the Total numbers of
rows in your Table.
---------------------------------

For getting Total Columns i will use this:

SELECT Count(*)As Coloumns
FROM Sys.SysColumns
Where ID =
(SELECT ID FROM Sys.SysObjects Where Name = 'YourTableName')

Is This Answer Correct ?    34 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does union all remove duplicates?

1016


What are the different types of join?

1100


What are different types of constraints?

875


What are the benefits of normalization?

1044


What is the difference between join and inner join?

952


What is sub query and its properties?

917


Find nth lowest salary or get nth lowest salary?

965


Explain contrast amongst grouped and non-bunched records?

957


How will you hide an attribute? : sql server analysis services, ssas

891


How do triggers work?

879


What is blocking and how would you troubleshoot it? : sql server database administration

992


What are the ways available in sql server to execute sql statements?

1039


what is the system function to get the current user's user id? : Sql server database administration

953


Distinguish between commit and rollback?

899


Does the order of columns in update statements matter?

858