Re: query analyser problems - novice question
From: Vishal Parkar (REMOVE_THIS_vgparkar_at_yahoo.co.in)
Date: 08/18/04
- Next message: aoxpsql: "nondeterministic expressions (continue)"
- Previous message: Vishal Parkar: "Re: query analyser problems - novice question"
- In reply to: Joey: "query analyser problems - novice question"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 18 Aug 2004 05:40:52 +0530
See following example.
--actual parameter below is not defined as output
create procedure test_proc @err nchar(200)
as
set @err = 'no error'
go
--while executing above procedure you are passing the parameter as output
parameter, which is not allowed.
declare @errmsg1 nchar(200)
exec test_proc @errmsg1 output
soln: alter procedure and define the parameter as output, above procedure
can be changed as
alter procedure test_proc @err nchar(200) output
as
set @err = 'no error'
go
declare @errmsg1 nchar(200)
exec test_proc @errmsg1 output
print @errmsg1
OR do not pass the parameter as an output parameter while executing the
procedure.
-- Vishal Parkar vgparkar@yahoo.co.in | vgparkar@hotmail.com
- Next message: aoxpsql: "nondeterministic expressions (continue)"
- Previous message: Vishal Parkar: "Re: query analyser problems - novice question"
- In reply to: Joey: "query analyser problems - novice question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|