Solved

Using a MsDb2DataReader with a Stored Procedure

Posted on 2006-11-03
2
306 Views
Last Modified: 2012-05-05
I am using Host Integration Server and need to use a MsDb2DataReader to call a stored procedure. I will be creating an array of MsDb2Parameter objects, which I will be passing to the procedure.

The problem is that I can't find any examples of how to do this. The available MSDN documentation is sparse, and doesn't have what I'm looking for.

Has anyone done this? An example would be greatly appreciated.

Thanks!
0
Comment
Question by:marmaxx
2 Comments
 
LVL 7

Accepted Solution

by:
mjmarlow earned 500 total points
ID: 17872853
I read http://msdn2.microsoft.com/en-us/library/ms945832.aspx and see that the only quirk with the DB2 provider is the parameters must be added to parameter collection in same order they are defined (names are ignored).  Use this tutorial http://www.dbazine.com/sql/sql-articles/cook6 to see how it is done.

- Mark

0
 

Author Comment

by:marmaxx
ID: 17935076
Thanks Mark!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question