Installation of Store commerce application - Dynamics 365 Commerce

When you install Store Commerce application with offline option on a test machine using Windows Powershell :

You may face errors similar to:

The default SQL Server instance was not found, please provide a correct SQL Server instance name via the --SqlServerName parameter

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

'An attempt to check DB availability by leveraging the connection string '###;Initial Catalog=master;Integrated Security=True;Persist Security Info=False;Pooling=True;Encrypt=True;TrustServerCertificate=False' failed validating server certificate's chain.

To resolve above errors, check the following:

1-?In the Powershell command, provide full instance name like: Computername\Instancename

example: DESKTOP-LXYXYXY\SQLEXPRESS

2-In the Powershell command, Include the parameter: ??--trustsqlservercertificate

3-In the SQL server configuration manager, Enable the TCP/IP, and Named Pipes as shown:


4-In SQL server management studio, select ‘SQL Server and Windows Authentication mode:


5-In SQL server management studio, make sure the option : Allow remote connection’ is enabled.:


Typical Powershell Install command:



要查看或添加评论,请登录

社区洞察

其他会员也浏览了