AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 09.07.2024, 18:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,538 / 848 (80) +++++++
Регистрация: 28.10.2006
a33ik: Simple restore Bacpac file to AxDB using PowerShell commands
Источник: http://daxonline.org/1955-simple-res...-commands.html
==============

Vasily already described different types of moving DBs (SQL baks and Bacpac files) for tier1 and tier2 in his earlier article here Restore/move D365 database

Here you can find a specific case for BACPAC files within tier1 using Powershell commands below (in Bold):

  1. Open PowerShell as Administrator:
    If you do not have d356.fo tools installed, first run:
    Install-Module -Name d365fo.tools
    Invoke-D365InstallSqlPackage

  2. Restore BackPack file:
    Import-D365Bacpac -ImportModeTier1 -BacPacFile "C:/Temp/NewAxDB.bacpac" -NewDatabaseName "AxDB_new" -showOriginalProgress

    This process can take up to 2 hours so be patient.
  3. Stop your D365FO services so no active connections are locking your current AxDB:

    Stop-D365Environment

    Open IIS manager / Application Pools / AOSService / Stop.
    If you have open Visual Studio, also quit IISExpress - right click its icon in the tray (screen bottom left corner, usually inside ^ group) and click Exit.

  4. Switch databases:
    Switch-D365ActiveDatabase -SourceDatabaseName "AxDB_new" -DestinationSuffix "_old"
    Where "_old" is postfix for previously used AxDB so it will be renamed to AxDB_old. AxDBis now new active database.


  5. Start your D365FO services:
    Start-D365Environment

    Open IIS manager / Application Pools / AOSService / start
    Close all Visual Studio instances. Re-open Visual Studio.
    In VS go to Extensions > Dynamics 365 > Synchronize database


Источник: http://daxonline.org/1955-simple-res...-commands.html
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
german_nav_developer: Buildnummern-Übersicht Microsoft Dynamics NAV 2013 Blog bot NAV: Blogs 0 15.05.2016 18:12
DynamicsAxSCM: Change license plate, split quantity, skip and override location during inbound put away Blog bot DAX Blogs 0 27.11.2015 16:11
NAV Team: Coffee Break 13 - Checking file properties and copying files with Windows PowerShell Blog bot Dynamics CRM: Blogs 0 09.06.2015 13:00
NAV Team: Coffee Break - Search in a Dynamics NAV object file using Windows PowerShell Blog bot Dynamics CRM: Blogs 0 27.02.2015 14:00
Microsoft Dynamics CRM Team Blog: Importing two or more entities from a Single File Blog bot Dynamics CRM: Blogs 0 09.11.2010 19:05

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 20:27.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.