I have two system.data.dll files ,one is from unity3d 2.6, and one is from unity3d 3.x , the problem is :
-
when I read the excel file, the dll from the 3.0 works well, while use the dll from 2.6 , it appers something bellow:
OdbcException: [Microsoft][ODBC Excel Driver] FROM clause syntax error
System.Data.Odbc.OdbcCommand.ExecSQL (System.String sql)
System.Data.Odbc.OdbcCommand.ExecuteNonQuery (Boolean freeHandle)
System.Data.Odbc.OdbcCommand.ExecuteReader (CommandBehavior behavior)
System.Data.Odbc.OdbcCommand.ExecuteReader ()
(wrapper remoting-invoke-with-check) System.Data.Odbc.OdbcCommand:ExecuteReader ()
ExcelOp.QueryAllType () (at Assets\Code\ExcelOp.cs:21)
TT2Form1.InitializeComponent () (at Assets\Forms\TT2Form1.cs:57)
TT2Form1.Initialize () (at Assets\Forms\TT2Form1.cs:165)
UnityForms.Form.InitializeForm ()
UnityForms.FormsManager.LoadForm (UnityEngine.GameObject gameObject, System.Type formType, UnityEngine.GUISkin defaultSkin)
TestForm1.Start () (at Assets\Forms\TestForm1.cs:15) -
when I read the sql server from 2.6, it works ok, while I use the dll from 3.0, it will appears :
SqlServerTest ---- Test – catch :System.MissingMethodException: Method not found: ‘Mono.Data.Tds.Protocol.Tds.set_Pooling’.
at <0x00000>
at SqlServerTest.ConnectTest () [0x00016] in C:\Documents and Settings\Administrator\My Documents\GUITest\Assets\Code\SqlServerTest.cs:34
UnityEngine.Debug:Log(Object)
SqlServerTest:ConnectTest() (at Assets\Code\SqlServerTest.cs:40)
SqlServerTest:Start() (at Assets\Code\SqlServerTest.cs:12)