Hi, We are having requirement to fetch the data from External SQL table and Insert the values in NAV tables. Once the data has been read then the record should automatically updated as “Completed “ in External table. This Code unit has to be recurred every 30 minutes using NAS. We have used two dedicated SQL Queries : INSERT, UPDATE.
In NAV we have used DOT NET variables (SQLDATAREADER) to read the data from SQL Table. To update the data I have used SQL DATA ADAPTER concept in dot Net variable (System. Data. Common. DB Data Adapter. 'System. Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089').
( NOTE: We have not used Automation variable (ADO) , since the NAS is performing at backend. )
Issue faced: While running this Query I am Getting error “ Data Adapter not Initialized “ .
Please let me know any solution which is possible as this has become critical for the project.
Thanks
*This post is locked for comments