Solved

passing parameter to stored procedure

Posted on 2008-09-30
3
236 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based developeā€¦
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundrā€¦

803 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