TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Anil Kumar Murmu
NA
744
338.6k
How to get column names from SP using Entityframework
Aug 2 2016 9:13 AM
How to get multiple result set on conditional basis and also retrieve the column name
I want to get the name as Col1, Col2, Col3, Col4 etc. as per the result set.
I have a store procedure which looks like
CREATE SP Test
(@Id INT)
AS
BEGIN
IF(@Id ==1)
BEGIN
SELECT Col1, Col2 from Table1
END
IF(@Id ==2)
BEGIN
SELECT Col1, Col2, Col3 from Table1
END
ELSE
BEGIN
SELECT Col4, Col3 from Table1
END
END
Reply
Answers (
3
)
how to display user input dialog box in windows phone
Context Menu for Windows App.