I am new to Navision development, but experienced in C#. I am running on Windows 2003 Server - both webserver and Navision. NODBC.dll driver version is 5.00.24199.00.
I am trying to built an ASP.NET webinterface for a Native Navision database - I am using the C/ODBC drivers for Navision and connecting via System.Data.Odbc. Upgrading to SQL database is unfortunately not an option.
however the SimbaEngine driver (C/ODBC) appends the << ??? >> in the query…
I have tried removing brackets, removing “dbo.” - but no luck… what am I missing?
According to Microsoft Dynamics™ NAV ODBC Driver 5.0 Guide, DISTINCT keyword is supported.
part of my C# source:
…
DataSet result = new DataSet();
OdbcDataAdapter OdbcDA = new OdbcDataAdapter();
OdbcCommand cmd = new OdbcCommand();
not sure if this can help you. I’ve worked with NAV ODBC and Sharepoint BDC service, it’s supposed to display information of NAV on sharepoint lists and webparts but it doesn’t work, even if it works with other db’s ODBC.
I’ve to say this happens only (obviously) with native database, maybe more ODBC NAV errors can be discovered with your thread.
Thanks
Thanks for the reply
Before I try the cfront; I have narrowed down the problem, it is because I have a called Field 1 - so that Field 1 - I have escaped the space with _, so my SQL becomes SELECT DISTINCT(Field_1) FROM dbo.MyTable. This seems to work for some queries.
However I also have a field called something like “Field no_2” - what is the escape sequence for such a field? I have tried Field_no_2 and Field__no_2 no luck