I am getting an error message when I am trying to connect to Navision Database using ODBC in .net. It says the ODBC driver does not support that command. I have a feeling that the ODBC driver is not compatible with .net for some reason. Anyone else have this problem? Resolution? Is there a better way to connect, i.e. using the OCX? MBS support said that is beyond thier support level..bunchof *#($#* :evil: :evil: :evil:
0
Comments
RIS Plus, LLC
this.odbcConnection1.ConnectionString = "DRIVER=C/ODBC 32 bit;UID=mike.stallmann;PWD=PWD;SERVER =N;CN=essai, inc.;RD=No;ML=1033;CD=No;BE=Yes;CC=Yes;RO=No;QTYesNo=Yes;IT=All Except DOT;OPT=Text;PPath=C:\\Program Files\\Microsoft Business Solutions-Navision\\Client;NType=TCP;sName=server;CSF=Yes";
I tried using a dataset, and then tried a datareader as such:
this.odbcConnection1.Open();
System.Data.Odbc.OdbcDataReader Reader;
Reader = odbcCommand1.ExecuteReader(CommandBehavior.CloseConnection);
DataGrid1.DataSource = Reader;
Reader.Read();
Response.Write (Reader.GetOrdinal("No_"));
DataGrid1.DataBind();
Reader.Close();