Hi all,
Is it possible to connect to an SQL server from inside native Navision? At the moment we have Navision filling in a table periodically with the appropriate data to be exported. Another application reads this data via ODBC and imports this into another table in another non-Navision database (on SQL Server).
Since de NODBC driver is not stable enough to suit our needs (unreliable, frequent crashes,...), we would like to know if it's at all possible to write the data directly into the destination SQL table, so that we can skip the export/import procedure alltogether.
Thank you for your time and knowledge.
0
Comments
ADOCon is an Microsoft ActiveX Data Objects 2.7 Library'.Connection (Automation)
ADORs is an Microsoft ActiveX Data Objects 2.7 Library'.Recordset (Automation)
ADOConStr is an text
SQLStatement is an text
It's just an example:
Have a good day
Thanks for your quick reply! I'm trying it as we speak, but I'm having trouble logging in to our SQL Server database, since it is configured to work with Windows Logon. Any suggestions for passing on a username/password that way?
I've got this piece of code so far:
( from : http://msdn.microsoft.com/en-us/library/aa905872(SQL.80).aspx )
Windows NT authentication.
Integrated Security = SSPI
so try:
ADOConStr := 'Provider=sqloledb;' +
'Data Source=SQL SERVER NAMLE;' +
'Initial Catalog=COMPANY NAME;' +
'Integrated Security = SSPI;';
good luck
For future reference: