web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

SQL Server Data Import Wizard

(0) ShareShare
ReportReport
Posted on by 115

Hi,

I want to import data from specific tables from an AX test environment to my AX local environment. The reason I want to do this is to debug on my local machine using the data QA is using for testing. The easiest solution would be to use SQL Server and select the tables I want to import. But then I was thinking about the RecId. Using SQL Server import I assume that I also import the RecId from the testing environment, will that mess up my local database? What if those RecId already exist somewhere else? Is that even possible? What would you recommend here?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    Importing data directly from SQL server is not a healthy idea. One major reason you mentioned yourself. Other major reasons are e.g. relationships using ReCId(s).

    There can be two feasible ways here.

    1. Use DIIXF

      Using DIXF you can create queries inside AX and if both Server1 and Server2 are both on same domain you can create a direct communication between those by ODBC Connection, using DIXF.

      You can also connect DIXF with an SQL box directly.

       

    2. Proceeding same way as you are thinking now.

      Think of if number are tables are very limited and there are no relationships based on RecId(s).

      Bring data from source system and import in on destination SQL Box, by creating a new table outside AX DB. Now go inside AX. Write ODBC connection and connect to table which has your data. Write code to read data using ODBC and create records in AX .create()

       

      If I were in your shoes, I will prefer #1, i.e. Using DIXF

       

  • Suggested answer
    Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    Do you have any reason not to use Test Data Transfer Tool?

    You definitely shouldn't manipulate database directly; I can think of several more problems with it...

  • dhamacher Profile Picture
    115 on at

    Awesome response Sohaib. Only catch is that we are on CU6 which does not include the export/import framework so I guess that option 2 is the only one for now. I tested the ODBC solution and it worked, I love it!

  • dhamacher Profile Picture
    115 on at

    The reason I am not using it is because I didn't know that it exists. Now I do! Thank you Martin.

  • Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    Note that you can install DIXF to any version of AX 2012 (although upgrading to a version that isn't three years old may be a better approach).

  • dhamacher Profile Picture
    115 on at

    You're right, but my hands are tied by management in terms of installing new tools. I have discussed the advantages towards an upgrade (which is desperately needed) but it seems that it will take couple more years maybe!?

  • Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    I feel your pain, bro. :-)

  • dhamacher Profile Picture
    115 on at

    I assumed you would ;)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans