Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Record Layout

Status
Not open for further replies.

devon59

Technical User
Joined
Nov 30, 2005
Messages
18
Location
US
Hi there,
Is there any easy way that I could get all columns data type for my output instead of me having to go through each variable and look at them one by one? I'm looking for something similar to
Proc contents in SAS.
Thank you
 
for a stored procedure use this example

USE pubs
Go
SELECT SPECIFIC_NAME as PROCEDURE_NAME,PARAMETER_NAME,DATA_TYPE,* FROM INFORMATION_SCHEMA.PARAMETERS
WHERE SPECIFIC_NAME = 'reptq3'
ORDER BY ORDINAL_POSITION

Denis The SQL Menace
SQL blog:
Personal Blog:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top