有沒有人用過啊?著急啊.希望有知道的高人可以告訴我一下.好嗎?在下感謝了.因為我的ODBC可以成功的連接到數據庫上.但是我不知道在C#裡如何寫這些東東.

解决方案 »

  1.   


    http://www.connectionstrings.com/?carrier=informix-------------------------------------------------------ODBC 
     
    Informix 3.30 
      
    Dsn='';Driver={INFORMIX 3.30 32 BIT};Host=hostname;Server=myServerAddress;Service=service-name;Protocol=olsoctcp;Database=myDataBase;Uid=myUsername;Pwd=myPassword; -------------------------------------------------------Informix-CLI 2.5: 
      
    Driver={Informix-CLI 2.5 (32 Bit)};Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword; 
     
    -------------------------------------------------------
      

  2.   

    ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specifiedSource Error: 
    Line 132:            if (this._con.State == ConnectionState.Closed)
    Line 133:            {
    Line 134:                this._con.Open();
    Line 135:            }
    Line 136:        }
     
    错误提示
    连接早就OK了,你这个BC