how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / bhaskar
select count(*) from syscolumns where id=(select id from
Sysobjects where [name]='Table_Name')
Is This Answer Correct ? | 13 Yes | 3 No |
Post New Answer View All Answers
What is user-defined multi-statement table-valued function?
What does asynchronous call backs means?
What stored by the model? : sql server database administration
What are out-of-range errors with date and time literals?
Define views.
Why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it?
How to disable a login name in ms sql server?
Define compound operators?
What are a scheduled jobs or what is a scheduled tasks?
Where can you add custom error messages to sql server?
What is difference between index and primary key?
What is index fragmentation in ms sql server?
what is datawarehouse?
Explain about protocol layer present in SQL server?
Mention the different authentication modes in sql server.