B
BMermuys
Hi,
inline
If you use a command to open a recordset then you can't supply a connection,
use
Type.Missing :
rs.Open(cmd, Type.Missing, ADODB.CursorTypeEnum.adOpenUnspecified,
ADODB.LockTypeEnum.adLockUnspecified, -1);
If you don't have parameters or supplied them with the parameters collection
of the command object then use Type.Missing for the parameters argument:
object oPrms = Type.Missing;
object iRa;
cmd.Execute( out iRa, ref oPrms, -1 );
hth,
greetings
inline
//Does not work
rs.Open(cmd, tmpObj
,ADODB.CursorTypeEnum.adOpenUnspecified,ADODB.LockTypeEnum.adLockUnspecified
, -1);
If you use a command to open a recordset then you can't supply a connection,
use
Type.Missing :
rs.Open(cmd, Type.Missing, ADODB.CursorTypeEnum.adOpenUnspecified,
ADODB.LockTypeEnum.adLockUnspecified, -1);
//Does not work
cmd.Execute(out tmpObj, ref Temp,0);
If you don't have parameters or supplied them with the parameters collection
of the command object then use Type.Missing for the parameters argument:
object oPrms = Type.Missing;
object iRa;
cmd.Execute( out iRa, ref oPrms, -1 );
hth,
greetings