473,466 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Output from Extended Stored Procedure

Hi all

Ive got a problem I was hoping someone may be able to help with.

Im calling an extended stored procedure provided by a third party
(master..xp_OrderHeader).
This xp requires 3 inputs and is supposed to provie one output.

When I call it in SQL Query Analyser all runs OK and I get a column result
(single result) titled "Output_Info" with a value of say 300051

Here is an example call
execute master..xp_OrderHeader @CustID, @TodayDate, @OrderID,
@Output_Info OUTPUT

I would have thought that my variable @Output_Info would hold the output,
but all I get is NULL?

Any ideas what Im doing wrong. Seems bizarre that the XP Ive been provided
is displaying a result (be it a coumn I haven't named) ... but I can get it
into my variable for use.

Cheers

Craig
Jul 20 '05 #1
1 2364
"Craig Hoskin" <no****@infobahn.co.nz> wrote in message news:<Od********************@news.xtra.co.nz>...
Hi all

Ive got a problem I was hoping someone may be able to help with.

Im calling an extended stored procedure provided by a third party
(master..xp_OrderHeader).
This xp requires 3 inputs and is supposed to provie one output.

When I call it in SQL Query Analyser all runs OK and I get a column result
(single result) titled "Output_Info" with a value of say 300051

Here is an example call
execute master..xp_OrderHeader @CustID, @TodayDate, @OrderID,
@Output_Info OUTPUT

I would have thought that my variable @Output_Info would hold the output,
but all I get is NULL?

Any ideas what Im doing wrong. Seems bizarre that the XP Ive been provided
is displaying a result (be it a coumn I haven't named) ... but I can get it
into my variable for use.

Cheers

Craig


I don't know much about extended SPs, but I guess that it has simply
not been written to support an output parameter. The easiest solution
is probably to use a temp table:

create table #t (Output_Info int)
insert into #t exec master..xp_OrderHeader (...)
select @Output_Info = Output_Info from #t

Simon
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Matik | last post by:
Hi, I alredy tried to search this problem in last posts, but I couldn't find the answer. I try to access via Extended SP the method in a dll. I registered the dll as a ExSP, with a name of...
3
by: Bruce | last post by:
Since DBlib is no longer the suggested method for connecting back to sql server from an Extended Stored Procedure, has anyone built any extended stored procedures that use other connection methods...
1
by: smauldin | last post by:
What is the overhead of using extended stored procedures? I created a table with 500,000 rows. 1) I ran a select on two columns and it runs in about 5 seconds. 2) I ran a select on one column...
1
by: scanner2001 | last post by:
Here is what I would like to be able to do, Have an SQL extended stored procedure to do file copy, delete, and rename(move) procedures. I have written the code in C# to do this, in the form of a...
0
by: scanner2001 | last post by:
I am writing an extended stored procedure in c++ 7. As I have been testing, I am able to run this on my local box, my local sql server. When I register the extended stored procedure on a different...
4
by: icebrrrg | last post by:
Hi. I have some functionality in a C# DLL that I would like to be able to call from inside SQLServer. I know this was possible in C++, using an Extended Stored Procedure, but I haven't been able to...
0
by: SSW | last post by:
Hi: I'm trying to run Extended stored procedure, which is written in VC++ in window 2000 Professional. It works fine. But when I run it in windows 2003 I get following error ODBC: Msg 0,...
23
by: Bonj | last post by:
Hi I'm looking to write an extended stored procedure, the job of which will basically to read data from one table, process it using a COM object, and write (insert) rows out to another table. I...
3
by: ppateel | last post by:
Hi, First I would like to apologize for cross posting in three groups as I did not know which one would be the appropriate group. If some one points me to the correct one I will use that in the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.