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

What kind of problems occurs if we do not implement proper locking strategy?

1460


Explain optimistic and pessimistic concurrency?

1034


Explain for xml explicit mode?

1024


What are the dmvs? : sql server database administration

1119


Explain the usage of floor function in sql server.

1018


What is right outer join in sql server joins?

1217


Explain what is scheduled job and how to create it?

1023


Which is better statement or preparedstatement?

984


What is the difference between ddl and dml?

1097


What is single-user mode and what are the steps you should follow to start sql server in single-user mode?

1023


What is de-normalization and what are some of the examples of it?

1019


What is table-valued sub query?

1026


How to make a column nullable?

1175


Can I delete event logs?

977


What is a matrix in ssrs?

158