How to select and update record from D365FO to external database using SqlClient