February 22, 2002 at 8:10 am
I want to execute a stored procedure in DTS task. This stored procedure has one input parameter and one out parameter.
Following is the simplified sample:
create procedure spInOutputTest
@InTest int,
@OutTest int output
as
set @OutTest = @InTest + 1
And I type following statements in DTS 'Execute SQL Task'
declare @OutTest int
EXEC spInOutputTest ?, @OutTest OUTPUT
SELECT @OutTest AS OutTest
I was trying to click parameter button to map the input parameter and output parameter, but there is an error dialogue popping up stating there is a sytax error or access violation.
Can anybody here help with this problem? Thanks in advance.
February 22, 2002 at 8:27 am
It will not let you mix this way.
Try create procedure spInOutputTest
@InTest int
as
SELECT @InTest + 1
Then just do
EXEC spInOutputTest ?
this will work.
Sorry I could not find the reason.
"Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy