how to get column names given table name through sql query ?
thanks in advance
thanks in advance
Sent via Deja.com http://www.deja.com/Quote:> how to get column names given table name through sql query ?
> thanks in advance
HTH
--
Wayne Snyder MCT,MCSE, Sql Server MVP
IKON Technology Services, C*te, NC Education
(Please respond to newsgroup unless otherwise requested.)
-- use this to get columns
Good luck,
-Max
Quote:> how to get column names given table name through sql query ?
> thanks in advance
1. Getting type name of many column names
How about:
SELECT Column_Name, Coalesce(Domain_Name, Data_Type) As DataType
FROM Information_Schema.Columns
WHERE Table_Name = 'TableName'
HTH
--
Regards,
Don R. Watters
Data Group Manager
PhotoWorks, Inc.
2. SQL Question
3. Request live query gives ORA-00904: invalid column name
4. It's the old "DTS Package Fails with Permission Denied on CreateObject as a Job" again...
5. give me the Column names of a table!
6. Is there a workaround:? xml accepted as varchar but not as text
7. Getting table names without actually knowing their names...
8. SQL Server ODBC driver version 3.5
9. Reaching columns -in C#.net- in queries with multiple tables with the same column name
10. (jdbc)Help getting column names without a dummy query
11. A query with column names and field names in the results
12. Getting table and column names through Visual Basic.