How do I get ONLY data type and name of all the columns available in given table_name
tonyaim83 -2 Light Poster
Recommended Answers
Jump to PostIn both SQL 2000 and 2005 you can run this query using the information_schema.columns
SELECT data_type, column_name FROM information_schema.columns WHERE table_name = 'table'
This should do it, just make sure to run this in the correct database. If you have two table names with the same name …
All 2 Replies
Reply to this topic Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.