
04/05/2005, 14:48
|
 | | | Fecha de Ingreso: septiembre-2004 Ubicación: Venezuela
Mensajes: 300
Antigüedad: 20 años, 6 meses Puntos: 2 | |
en primer lugar...si tus tablas no están conectadas, por qué necesitas hacer un inner join?
Segundo, deberías hacer tu inner join en el sql que llena tu dataset, para esto utilizas un
objeto Command y un DataAdapter, pudiera ser algo así
string strSQL = "select * from tabla1 t1 inner join tabla2 t2 on ti.id = t2.id"
Command myCommand=new Command(strSQL, objConnection);
Adapter myAdapter=new Adapter();
myAdapter.SelectCommand=myCommand;
DataSet myDataSet=new DataSet();
myAdapter.Fill(myDataSet, "table_name");
Claro recuerda reemplazar Command y Adapter por sus nombres de clases correctos. Ya sea oldb u odbc o lo que sea que sea. |