I used maven,Microsoft SQL server management studio 17.SQL server verion is 14.0.1000.169. When i build my project it gives following error and build failed
'sqlpackage.exe' is not recognized as an internal or external command,
operable program or batch file.
[ERROR] The following errors occured during execution:
[ERROR] 'sqlpackage.exe' is not recognized as an internal or external command,
[ERROR] operable program or batch file.
This is my system environment path variables.
I can't find what's the wrong
6条答案
按热度按时间piv4azn71#
I didn't have the location of
sqlpackage.exe
in thePATH
variable. After adding it toPATH
variable, had resolved the issue for me. (Something like below)rqmkfv5c2#
It's fixed using following steps.
this is because you haven't sqlpackage.exe in your Path variables. to fix this follow below steps.
You need to Install Sql server data tools
For windows,
For Install chocolatey
For Install SSDT components
For Add sqlpackage.exe to classpath
aamkag613#
Looks like you havn't installed Data-tier Application Framework. You can download and install DacFx (17.4.1) from https://www.microsoft.com/en-us/download/details.aspx?id=56508
iih3973s4#
Adding these locations into path variable will fix both maven and gradle error if you already installed mssql server 2019.
C:\Program Files (x86)\Microsoft SQL Server\140\DAC\bin
C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn
8fq7wneg5#
Download Microsoft SQL Server Data-Tier Application Framework from https://www.microsoft.com/en-us/download/details.aspx?id=56508 and open Environment settings and set the PATH variable to C:\Program Files\Microsoft SQL Server\140\DAC\bin
iecba09b6#
try following: