how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / ajit kumar nayak
select count(*) from syscolumns sy,Sysobjects so
where
sy.id =so.id
and so.name = <table name>
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is temporary stored procedure?
What’s the use of custom fields in report?
How to list all stored procedures in the current database using ms sql server?
what is sql server? : Sql server database administration
How would you add a section to a table?
Tell me what is de-normalization and what are some of the examples of it?
How to drop an existing table with "drop table" statements in ms sql server?
How to apply filtering criteria at group level with the having clause in ms sql server?
How do you create a clustered index?
How is sql server used?
Why I am getting "the microsoft .net framework 2.0 in not installed" message?
If I delete a template from the list in sql studio, will it be deleted from the hard disk? : sql server management studio
How many full-text indexes can a table have?
What is the standby server?
Can you please explain the difference between primary keys and foreign keys?