Solved

Using a MsDb2DataReader with a Stored Procedure

Posted on 2006-11-03
2
305 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

770 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