troubleshooting Question

SQL Get Store Procedure Column Name As Row

Avatar of Naitik Gamit
Naitik GamitFlag for India asked on
SQLDatabasesMicrosoft SQL Server
5 Comments1 Solution168 ViewsLast Modified:
I want to retrieve store procedure columns as row without data.

for example I have store procedure SP_Get_All_Country_List with parameter @Return_Data BIT. If I pass Return_Data=1 then it return value but when I pass Return_Data=0 then no data return.

EXEC SP_Get_All_Country_List @Return_Data=0
it show blank columns as :

Country_ID   Country_Name   Country_Region

Now I want this as :
Country_ID
Country_Name
Country_Region

I don't want data I only want column names as row. simply I want store procedure all columns list.
ASKER CERTIFIED SOLUTION
sameer2010
Architect

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros