我调试了一下午,发现在XP上可以运行,没有该错误,在windows2000上就出现了该错误。我看了以下ODBC32.dll的版本号,XP为3.525,而WINDOWS2000为3.520。我将XP上的ODBC32.dll拷贝到了WINDOWS2000上之后还是不行。同时WINDOWS2000上的版本号也没有变。是否是ODBC版本的问题呢,如何升级ODBC32。DLL?有关调用实时(JIT)调试而不是此对话框的详细信息,
请参阅此消息的结尾。************** 异常文本 **************
System.Exception: 提取数据错误!
 SQL=SELECT shortname,UserName,deptlevel,dept,realname,leader,rights,job,phone FROM 所有员工信息一览
 ERROR:ERROR [IM005] [Microsoft][ODBC 驱动程序管理器] 驱动程序的 SQLAllocHandle on SQL_HANDLE_DBC 失败
ERROR [01000] [Microsoft][ODBC 驱动程序管理器] 驱动程序不支持这个应用程序请求的 ODBC 行为的版本 (参见 SQLSetEnvAttr)。
   at Uo.Class.Base.Database.OdbcDatabase.FillDataSet(DataSet& dataSet, String tableName, String querySql, CommandType commandType)
   at Uo.Class.Base.Database.OdbcDatabase.GetDataTable(String tableName, String querySql, CommandType commandType)
   at Uo.Class.Base.Database.OdbcDatabase.GetDataView(String tableName, String querySql, CommandType commandType)
   at Test.Form1.button1_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)