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
append dynamic where condition inside sp
Jun 21 2017 2:02 AM
Hi,
I have a sp and I need to append the dynamic where condition inside sp.
Here is my effort
ALTER Procedure [dbo].[sp_searchCities]
(
@Id int,
@where varchar(200)
)
as
begin
select id,City from thlCities @where
end
Here
@
where =
Where City = 'New York'
Can you suggest that how to append the dynamic where in sp
Reply
Answers (
1
)
Get top 10 records from sp
Stored procedure - Only return if rows > 0