PDA

View Full Version : اين دستور چه مشكلي داره؟



bobrus
شنبه 05 مرداد 1387, 09:24 صبح
سلام دوستان من ازن دستور رو از تو HELP خود Sql Analyzer در آوردم و دقيقاً مثل اون نوشتم و بجاش مقدار هاي خودم رو گذاشتم ولي وقتي اجراش مي كنم خطا مي ده نمي دونم چرا؟


exec bcp "pm85..pm_request" out "C:\request.txt" -u"sa" -P"1973"



Server: Msg 179, Level 15, State 1, Line 1
Cannot use the OUTPUT option when passing a constant to a stored procedure.

Erfanian
شنبه 05 مرداد 1387, 10:02 صبح
execution.
The error is in your execute call "EXEC dbo.test 1 OUT"

Declare @InAndOutParammeterName
Select @InAndOutParammeterName=1

EXEC dbo.test @InAndOutParammeterName OUT

@InAndOutParammeterName now holds the reference in memory for the returned
value to reside.