how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / sudhir kumar
IN SQLSERVER 20005
SELECT COUNT(COLUMN_NAME) FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = N'TABLENAME'
try in sql server 2000
| Is This Answer Correct ? | 29 Yes | 5 No |
Post New Answer View All Answers
What is sql server locking?
In my application I have a process which picks the scanned files (tif format) from a shared location and it links to application and shown on it.The actuall issue is that my process picks the file before it is completly written or scanned which results in displaying few parts of the image or incomplete image.I need to check if the file is not completly scanned or written then do not link it to application.Please help if any body tell me that how can i check that file is in written phase or locked through DTS.thanking you in advance
Write an SQL query to obtain the 2nd highest salary.
How does SSIS(Sql Server Integration Services) deffer from DTS(Data Transformation Services)?
Do you know what are acid properties of transaction?
What is difference between materialized view and view?
How do I create a partition table in sql server?
What is awe?
how to invoke a trigger on demand? : Sql server database administration
Explain difference between control flow and data flow?
Define Business Edition in SQL Azure?
Can you get second highest salary from the table?
Describe different Processing Modes offered by SSRS?
What is surrogate key? : sql server analysis services, ssas
What is partitioned view?