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 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply