Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
GeneralRe: Obtaining Caller of a Method in C# Pin
leppie3-Sep-03 13:33
leppie3-Sep-03 13:33 
GeneralRe: Obtaining Caller of a Method in C# Pin
James T. Johnson3-Sep-03 14:32
James T. Johnson3-Sep-03 14:32 
GeneralRe: Obtaining Caller of a Method in C# Pin
Jerry Dennany3-Sep-03 14:34
Jerry Dennany3-Sep-03 14:34 
GeneralPInvoke Pin
Anonymous3-Sep-03 9:17
Anonymous3-Sep-03 9:17 
GeneralDesign Patterns - on a mission. Pin
Aroogala3-Sep-03 6:58
Aroogala3-Sep-03 6:58 
GeneralRe: Design Patterns - on a mission. Pin
Anonymous3-Sep-03 7:37
Anonymous3-Sep-03 7:37 
GeneralRe: Design Patterns - on a mission. Pin
Jim Stewart4-Sep-03 3:27
Jim Stewart4-Sep-03 3:27 
GeneralOleDbException: Multiple-step OLE DB operation generated errors. Pin
mikemilano3-Sep-03 6:41
mikemilano3-Sep-03 6:41 
I'm trying to open and query an AS400/DB2 Database via OleDB. I can do this fine via ODBC, but when I try to use Ole DB, I get the following error:

OleDbException: Multiple-step OLE DB operation generated errors.

My code and query is quite simple, and the exception is caused on the OleDbConnection.Open() method. Could anyone shed some light on what this may mean?

Here's my code:
string source = ("Provider=IBMDA400;Data Source=10.10.10.1;USERID=myusername; Password=mypassword;";

OleDbConnection con = new OleDbConnection(source);

try
{
  con.Open();
}
catch (Exception a)
{
  MessageBox.Show(a.ToString());
  return;
}


Thanks in advance.
GeneralVB script to C# Pin
Majid Shahabfar3-Sep-03 4:35
Majid Shahabfar3-Sep-03 4:35 
GeneralRe: VB script to C# Pin
Alvaro Mendez3-Sep-03 6:29
Alvaro Mendez3-Sep-03 6:29 
GeneralRe: VB script to C# Pin
Majid Shahabfar3-Sep-03 19:03
Majid Shahabfar3-Sep-03 19:03 
GeneralRe: VB script to C# Pin
Corinna John4-Sep-03 2:00
Corinna John4-Sep-03 2:00 
GeneralRe: VB script to C# Pin
Majid Shahabfar6-Sep-03 3:42
Majid Shahabfar6-Sep-03 3:42 
GeneralRe: VB script to C# Pin
Richard Deeming5-Sep-03 8:05
mveRichard Deeming5-Sep-03 8:05 
GeneralRe: VB script to C# Pin
Majid Shahabfar6-Sep-03 3:43
Majid Shahabfar6-Sep-03 3:43 
GeneralRe: VB script to C# Pin
dog_spawn3-Sep-03 7:04
dog_spawn3-Sep-03 7:04 
QuestionRSA public key? Pin
ravingcoder3-Sep-03 4:05
ravingcoder3-Sep-03 4:05 
AnswerRe: RSA public key? Pin
ravingcoder3-Sep-03 17:12
ravingcoder3-Sep-03 17:12 
QuestionHow can we prevent a C++ Class from inheritance? Pin
sri sankaradoss3-Sep-03 1:59
sri sankaradoss3-Sep-03 1:59 
AnswerRe: How can we prevent a C++ Class from inheritance? Pin
Alvaro Mendez3-Sep-03 6:24
Alvaro Mendez3-Sep-03 6:24 
Generalruntime references Pin
wrzeszcz3-Sep-03 1:36
wrzeszcz3-Sep-03 1:36 
QuestionHow to pass an object to an exe Pin
Member 486393-Sep-03 1:08
Member 486393-Sep-03 1:08 
AnswerRe: How to pass an object to an exe Pin
dog_spawn3-Sep-03 1:34
dog_spawn3-Sep-03 1:34 
AnswerRe: How to pass an object to an exe Pin
Daniel Turini3-Sep-03 1:58
Daniel Turini3-Sep-03 1:58 
GeneralGetHashCode() Pin
deanoA3-Sep-03 0:18
deanoA3-Sep-03 0:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.