Solved

passing parameter to stored procedure

Posted on 2008-09-30
3
253 Views
Last Modified: 2012-05-05
have a stored procedure that parse a string and sends back an appropriate formatted string.
the stored procedure works - but this stored procedure is called from other stored procedures and i'm having an issue with syntex
set @value = dob.mystoredprocedure @value
gives a syntex error
if i try set @value = exec dob.mystoredprocedure @value
it doesn't like the exec or the last @value
help
0
Comment
Question by:quigleyryan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 60

Accepted Solution

by:
chapmandew earned 500 total points
ID: 22606329
are you using an output parameter, or the return param(which has to be an INT)


if output:
declare @value varchar(50)
exec dob.mystoredprocedure @value output

select @value
0
 
LVL 3

Expert Comment

by:R_Janssen
ID: 22606330
use SELECT....
SELECT @Bla = MyStoredProcOrFunctionOrQuery.
 
0
 

Author Closing Comment

by:quigleyryan
ID: 31501589
thanks - that's perfect
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…
Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question