![]() |
| ||
| How do I get ONLY DATATYPE and NAME of all the columns available in given table_name How do I get ONLY data type and name of all the columns available in given table_name |
| ||
| Re: How do I get ONLY DATATYPE and NAME of all the columns available in given table_name here is a couple more columns than you need, just so you can be clear on the query SELECT substitute your table name in for 'MyTableName' |
| ||
| Re: How do I get ONLY DATATYPE and NAME of all the columns available in given table_name In both SQL 2000 and 2005 you can run this query using the information_schema.columns SELECT This should do it, just make sure to run this in the correct database. If you have two table names with the same name in different schemas you may need to change the WHERE clause to this WHERE table_name = 'table' |
| All times are GMT -4. The time now is 5:29 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC