Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: SQL-Server-2008
I have one project....
 
So i need urs help...
 
Frontend using sql query and backend also using store procedure but execution only.....
 
May i possible this one....Help me......
Help me......Help me......
Help me......
Posted 7-Oct-12 23:04pm
Comments
Kenneth Haugland at 8-Oct-12 5:10am
   
Is your house on fire or something? Unfortunatly we are not firefighters...
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Am I correct that you want to create a query string in front end and then execute this string inside a stored procedure?
 
If so you can pass the query in as a parameter and inside the stored procedure you would call sp_executesql. You need to be careful though and ensure that no user can enter illegal sql statements as an input. Read up on SQL Injection and prevention techniques: Understanding SQL Injection and Creating SQL Injection Proof ASP.NET Applications[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.140926.1 | Last Updated 8 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100