[DllImport("odbc32.dll")]
static extern short SQLFetch(IntPtr StatementHandle);
<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _
Private Function SQLFetch(ByVal statementHandle As IntPtr) As Short
End Function
None.
Do you know one? Please contribute it!
None.
Please add some!
bool Fetch()
{
bool ret = isOK(SQLFetch(statementHandle));
if (ret == false)
{
//ignore end-of-file errors
string maybe_err = GetError();
if (maybe_err!=null)
{
throw new Exception(maybe_err);
}
}
return ret;
}
bool isOK(int ret)
{
return ret == SQL_SUCCESS || ret == SQL_SUCCESS_WITH_INFO;
}