Jan 10, 2003 #1 scc Programmer Apr 30, 2001 218 US I'm using SQL Server 7 Is there a query I can use to just retrieve the column names of a table in Query Analyzer? TIA
I'm using SQL Server 7 Is there a query I can use to just retrieve the column names of a table in Query Analyzer? TIA
Jan 10, 2003 1 #2 JamesLean Programmer Dec 13, 2002 3,059 GB SELECT column_name FROM information_schema.columns WHERE table_name = 'yourtablename' Upvote 0 Downvote
Jan 10, 2003 Thread starter #3 scc Programmer Apr 30, 2001 218 US Thanks!! Works great. Upvote 0 Downvote