Skip to main content

MSDYN35BC 2019 Wave 2 - How Do I Create a New Database?

Hi Readers,

In previous articles, we have setup a demo environment for Microsoft Dynamics 365 Business Central 2019 Wave 2 Release.


In this article, we will discuss how to create a new database in 2019 Wave 2.

With Business Central 2019 Wave 2, as there is no development environment then how we cannot create a new database?


Here comes Powershell our old friend that will help us with all this. Let's see step by step process.

1. Search & start Powershell ISE as administrator (Not Powershell ISE x86) as everything is 64 bit.



2. Import-Module for Business Central Wave 2 and refresh command panel on the right.

Import-Module 'C:\Program Files\Microsoft Dynamics 365 Business Central\150\Service\NavAdminTool.ps1'



3. Search and use cmdlet New-NAVApplicationDatabase to create a new database for Business Central.

New-NAVApplicationDatabase -DatabaseName <Database Name> -DatabaseLocation <Folder for file path> -DatabaseServer <SQL Server Name>

** Change <Database Name> with the actual database name.
** Change <Folder for file path> with the Folder path where you want to save database files.
** Change <SQL Server Name> with the SQL Server Name.

Additionally, you can set Collation to the database.


4. This command will create Data and Log files in the path specified in the PowerShell cmdlet.


In the next articles, we will discuss more missing options that were available with the Development Environment.

Hope you find the information useful.

Let me know your views as a comment on this article.

Stay tuned for more.

Regards,
Saurav Dhyani
www.sauravdhyani.com

Comments

  1. Hi,

    I try to follow what you say in the post but I get this error, can I help me?

    PS C:\Windows\system32> New-NAVApplicationDatabase -DatabaseServer . -DatabaseName MyDBforupgrade -DatabaseLocation C:\Varios\Trainingym\BC150\Datos
    New-NAVApplicationDatabase : The database create operation failed due to the following error returned by SQL Server:
    No se puede quitar la base de datos 'MyDBforupgrade'; está en uso.
    En línea: 1 Carácter: 1
    + New-NAVApplicationDatabase -DatabaseServer . -DatabaseName MyDBforupg ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (0:Int32) [New-NAVApplicationDatabase], NavCommandException
    + FullyQualifiedErrorId : .,Microsoft.Dynamics.Nav.Management.Cmdlets.CreateNavDatabase

    Best regards!

    ReplyDelete
    Replies
    1. Hi,
      It seems that database MyDBforupgrade already exist in the Server and I dont see a value for parameter Database Server (Server Name)

      Delete

Post a Comment

Popular posts from this blog

VIEW SERVER STATE permission on SQL Server?

Hi all, Sometime While trying to Login into a database we face an error message as shown below. --------------------------- Microsoft Dynamics NAV Classic --------------------------- You cannot start Microsoft Dynamics NAV Classic because you do not have the VIEW SERVER STATE permission on SQL Server. Contact your system administrator. --------------------------- OK    ---------------------------

RTC Report It is not possible to instantiate the Visual Studio bridge.

Hi all, As a Navision developers I have Multiple Versions of Navision running in single Machine. As discussed Earlier in the post how to run multiple Version of RTC in single machine. So my machine have following details for RTC Versions - NAV 2009 R2    - is installed. NAV 2009 SP1  - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 SP1 IN\ NAV 2009         - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 IN\ This approach has been working great for execution of Classic and RTC Clients. However, after installing Dynamics NAV 2009 R2, if i tried to view the Layout for an NAV 2009 SP1 Report i was getting the following error: ---------------------------  Microsoft Dynamics NAV Classic  ---------------------------  It is not possible to instantiate  the Visual Studio bridge.  ---------------------------  OK    --------------------------- After searchi...

NAV 2013 R2 - Cumulative update 12 Released.

Hi all, Please find below the details of  Cumulative Update 12 released for Microsoft Dynamics NAV 2013 R2. Title - Cumulative Update 12 for Microsoft Dynamics NAV 2013 R2 Build No. - 38053 Release Date - October, 2014 Local Version Included - AU, AT, BE, CH, DE, DK, ES, FI, FR, IS, IT, NA, NL, NO, NZ, SE, UK, RU Download Link Note: Implementing this cumulative update will require a database conversion unless you have already implemented update rollup 5.