Q
Problem solve Get help with specific problems with your technologies, process and projects.

Stored procedure for displaying field names

Display field names from a SQL Server database with this stored procedure shared by our development expert Greg Low.

Could you give me a stored procedure for displaying field names from a SQL Server database?
You can do this easily by using the INFORMATION_SCHEMA views. Take a look at the output from:
SELECT * FROM INFORMATION_SCHEMA.COLUMNS
Select the appropriate columns you want in the stored procedure.

Dig Deeper on SQL Server Stored Procedures

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close