We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,496 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

How to generate Dynamic where condition for single stored procedure

How to generate Dynamic where condition for single stored procedure and pass from code behind asp.net....

2
Contributors
1
Reply
2 Hours
Discussion Span
2 Months Ago
Last Updated
5
Views
korathualex
Light Poster
41 posts since Jan 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

You can pass the where clause as a parameter to your stored procedure, but that means you'll need to build your query as a string, and use sp_executesql to execute it.

pritaeas
Posting Prodigy
Moderator
9,317 posts since Jul 2006
Reputation Points: 1,178
Solved Threads: 1,467
Skill Endorsements: 86

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0594 seconds using 2.69MB