Recently I was involved in migrating a large data set from another database. The standard Excel import/export is a great tool for migrating data. Once you start importing over 500 records - it can get very slow. Here is some code to do an ODBC connection to execute a select statement. server static void main(Args args) { LoginProperty loginProperty; ODBCConnection connection; Statement statement; ResultSet resultSet; SqlSystem sqlSystem; SqlStatementExecutePermission sqlStatementExecutePermission; str sql = 'SELECT * FROM Vendor'; ; sqlSystem = new sqlSystem(); loginProperty = sqlSystem.createLoginProperty(); // Set server - if you dont setServer. It will use current server the AOS is on. loginProperty.setServer('localhost'); loginProperty.setDatabase('OtherDb'); connection =...
All things Microsoft Dynamics 365 Finance and Operations