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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Which command is correct to import the .bacpac file - D365FO

(0) ShareShare
ReportReport
Posted on by

Hi All,

We are trying to refresh DEV database with UAT, and exported the UAT database,

Found few links for importing the .bacpac file:

commands:

Cd C:\Program Files (x86)\Microsoft SQL Server\140\DAC\bin

SqlPackage.exe /a:import /sf:C:\Temp\hsauatbackup.bacpac /tsn:localhost /tdn:AxDb_6 /p:CommandTimeout=1200

but in our dev machine we didn't find the path "C:\Program Files (x86)\Microsoft SQL Server\140\DAC\bin" in C drive,

we are using below command:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\150

Is it correct way to import or do we need to use the first command which does not exists in our dev machine.

Please advise us.

Regards,

Akbar

I have the same question (0)
  • Suggested answer
    nunomaia Profile Picture
    27 Moderator on at

    You can use the version of sqlpackage that you have in your machine, it is a SQL Server utility.

    You can also download the latest version from Download and install sqlpackage - SQL Server | Microsoft Docs

  • Akbarpasha Profile Picture
    on at

    Hi Nuno,

    Thanks for the quick response,

    can we use the below path to import db file:

    C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\150

  • Suggested answer
    nunomaia Profile Picture
    27 Moderator on at

    The sqlpackage version that you point should be a 18.4. I had some issues with that version and I upgraded to a newer version. You can still use that version, it should be fine.

    It's not mandatory to upgrade only if you have problems while importing.    

  • Suggested answer
    Pranitha Nidumolu Profile Picture
    Microsoft Employee on at

    Hello Akbar,

    I believe, these two MS Docs will be of help for you. If you already have SSMS on your DEV machine, better go with - Import a BACPAC file to create a new user database - SQL Server | Microsoft Docs

    If you would like to use Azure portal to the same you can use - Import a BACPAC file to create a database in Azure SQL Database - Azure SQL Database | Microsoft Docs

    Thanks,

    Pranitha

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 628 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 501 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 437

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans