110,536
社区成员
发帖
与我相关
我的任务
分享
try
{
ADODB.Recordset rs = new ADODB.Recordset();
rs.CursorLocation = ADODB.CursorLocationEnum.adUseClient;
rs.CursorType = ADODB.CursorTypeEnum.adOpenStatic;
rs.LockType = ADODB.LockTypeEnum.adLockReadOnly;
rs.Open(SQLString, objCn, ADODB.CursorTypeEnum.adOpenStatic, ADODB.LockTypeEnum.adLockReadOnly, (int)ADODB.CommandTypeEnum.adCmdUnknown);
rs.ActiveConnection = null;
object obj = rs.Fields[0].OriginalValue;
rs.Close();
rs = null;
return obj;
}
catch (System.SystemException e)这里抛出异常:在对应所需名称或序数的集合中,未找到项目。
{
throw e;
}