C
Christine Y.
Hi,
I have a method in a data access class (all in C#) where I'm trying to
put information from different connections into a single dataset to
return to the calling class. Any ideas on how I can do this? I only
know how to pull data from different tables using ONE connection. I
have data in a completely different connection that I need to pull
from. This is what I currently have:
Connection.Open();
myDataAdapter = new OracleDataAdapter();
myDataAdapter.SelectCommand = new OracleCommand( query, base.Connection
);
myDataSet = new DataSet();
myDataAdapter.Fill( myDataSet );
return myDataSet;
This fills my dataset using the query and only one connection. I don't
want to have to pass connection strings to the method that does this.
Any ideas would be greatly appreciated!
Christine
I have a method in a data access class (all in C#) where I'm trying to
put information from different connections into a single dataset to
return to the calling class. Any ideas on how I can do this? I only
know how to pull data from different tables using ONE connection. I
have data in a completely different connection that I need to pull
from. This is what I currently have:
Connection.Open();
myDataAdapter = new OracleDataAdapter();
myDataAdapter.SelectCommand = new OracleCommand( query, base.Connection
);
myDataSet = new DataSet();
myDataAdapter.Fill( myDataSet );
return myDataSet;
This fills my dataset using the query and only one connection. I don't
want to have to pass connection strings to the method that does this.
Any ideas would be greatly appreciated!
Christine