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
Ajay Mavatkar
NA
68
12.4k
Get top 10 records from sp
Jun 20 2017 7:12 AM
Hi,
I have a sp and I need to get top 10 record from sp.
Here is my effort,
DECLARE @Temp TABLE(id INT,Name VARCHAR(20),Phone VARCHAR(20))
INSERT INTO @Temp
EXEC sp_MyListReport
@id, @Name , @Phone
SELECT TOP(10) * FROM @Temp
@id, @Name , @Phone are parameters for sp, but it is not showing any records.
Any help will be appreciated. Thanks in advance
Reply
Answers (
3
)
What use of Cross apply?
append dynamic where condition inside sp