Connecting to Navision Native Database using VB.Net


Just wondering how can I connect to a Navision Native Database just like how we connect to a MSSQL?

I meant if we need any reference and how is the connection string?

LVL 10
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This document on using ODBC with Navision seems to have the information you need

Check your CD for the ODBC driver
It's in the 'nodbc' folder of the NAV product cd


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
adriankohwsAuthor Commented:
Thanks. Yeah, I google and found too and verified with our technical manager that we have this driver in our installation DVD. Need to explore how to manipulate the database using this, hopefully similar to other .net drivers.

Although you answered after I found it out myself, but you have given the correct and best answer. There were some people saying cannot use SQL to manipulate, but my technical manager said it can be done. I think having an ODBC should not have problem using SQL.

adriankohwsAuthor Commented:
I tried. Hard to configure but finally worked on the connection, however, the syntax to update a binary (image) into the table is a pain.

  Dim eNODBC As String = "UPDATE Item SET Picture = @img WHERE No. = @No"

            Dim Cmd2 As New Odbc.OdbcCommand(eNODBC, nODBC)
            Cmd2.Parameters.Add(New Odbc.OdbcParameter("@img", arrImage))
            Cmd2.Parameters.Add(New Odbc.OdbcParameter("@No", Code))

Got this error:
ERROR [42000] [Simba][SimbaEngine ODBC Driver]UPDATE Item SET Picture = @<< ??? >>img WHERE No. = @No
ERROR [42000] [Simba][SimbaEngine ODBC Driver]Syntax Error.

Using "?" as parameter also didn't work.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.