Skip to main content
Finance forum
Answered

Import the database

editSubscribe (0) ShareShare
ReportReport
Posted on by 445

Hi,

I am trying to import a database, but I am getting this weird erros, that incorrect syntax near type and cannot create an user.

We have recently install the new version on that test environment and this is a backup from over a month ago.

Warning SQL0: The source contains users that rely on an external authentication provider that is not supported by the target. These users will be treated as users without logins.
Error SQL72014: Core Microsoft SqlClient Data Provider: Msg 102, Level 16, State 30, Line 1 Incorrect syntax near 'type'.
Error SQL72045: Script execution error. The executed script:
CREATE USER....

any ideas why?

  • AstridMalanka Profile Picture
    AstridMalanka 445 on at
    RE: Import the database

    Thanks for the replies, I just needed a newer version of sqlpakage.exe

  • Suggested answer
    vinitgoyal2005 Profile Picture
    vinitgoyal2005 6,326 on at
    RE: Import the database

    Hi,

    Are you following docs.microsoft.com/.../dbmovement-scenario-exportuat

    If not please follow it for import. Also the warning about "The source contains users that rely on an external authentication provider that is not supported by the target. These users will be treated as users without logins" is ok. That is correct, you don't have to worry about it. Import will still happen. Make sure you run the script mentioned in the above link after import of the data.

    For error whck link community.dynamics.com/.../import-bacpac-file-exported-from-uat-to-devops---create-user-syntax-error  and

    ramblingsofraju.com/.../

  • Verified answer
    Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,417 on at
    RE: Import the database

    Hi Astrid,

    You need this version of sqlpakage.exe. unzip this file and try running the import command.

    It should work

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Sundar…

Industry experts answer burning questions directly from our amazing Community…

Enabling Copilot Case and Conversation…

Agents can easily recap an ongoing chat, transcribe a voice conversation…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,030 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,562 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans