jon24422531
Technical User
Hi
I am currently trying to develop a little web app on our intranet where we are trying to limit use of SQL QA. So a user wants a query writing (say SELECT UserID, UserFullName, JobTitle FROM USERS WHERE JobTitle LIKE '%'+@JobTitleContains+'%' AND UserID LIKE @UserIDLike) This is stored in a table with an ID number and Title.
I then have a StoreProc that pulls all the @XXXX's out and displays them on a web page with an Input box for the variable.
Another StoredProc then reassembles the query with the variables in.
The problem I can't work out is how to pass what could be a differing number of variables back to the StoredProc. Ideally I just want it to look like:
EXEC JSP_QueryExecute 4,@JobTitleContains=Sales@UserIDLike=Jonathan Where 4 is the queryID
So in a nutshell, I am trying to get all my Request.Form data in a single string.
Please try to avoid JavaScript, I am not clever enough.....
Jonathan
I am currently trying to develop a little web app on our intranet where we are trying to limit use of SQL QA. So a user wants a query writing (say SELECT UserID, UserFullName, JobTitle FROM USERS WHERE JobTitle LIKE '%'+@JobTitleContains+'%' AND UserID LIKE @UserIDLike) This is stored in a table with an ID number and Title.
I then have a StoreProc that pulls all the @XXXX's out and displays them on a web page with an Input box for the variable.
Another StoredProc then reassembles the query with the variables in.
The problem I can't work out is how to pass what could be a differing number of variables back to the StoredProc. Ideally I just want it to look like:
EXEC JSP_QueryExecute 4,@JobTitleContains=Sales@UserIDLike=Jonathan Where 4 is the queryID
So in a nutshell, I am trying to get all my Request.Form data in a single string.
Please try to avoid JavaScript, I am not clever enough.....
Jonathan