Closed jackliusr closed 6 months ago
Hi @jackliusr - can you share an example of the command you're trying to run with SqlPackage?
There's 2 pairs of commands:
If you have a dacpac file - you want to use publish to apply that dacpac to a new or existing database.
I use "publish" command now. however, I got the following error: I use " /TargetConnectionString:"Server=:::,1433;....". I tried "Server=localhost,1433;" ,"Server=localhost,1433;" etc. All the connection strings work in azure data studio in wsl.
*** 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: TCP Provider, error: 35 - An internal exception was caught) *** 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: TCP Provider, error: 35 - An internal exception was caught)
@jackliusr the error above happens when commenting to the server fails. You can verify you connection string using SSMS before calling a publish command. The error "The SourceFile argument must refer to a file with a '.bacpac' extension" only happens if calling sqlpackag with /a:import parameter.
@llali , you are right. I used publish command after @dzsquared replied. However, I got connection string issue. The connection string is definitely right, as I used it for as connection string in another parts which work.
For the connection issue, it might not be relevant to this issue considering the issue about file name.
Should I close this issue?
Steps to Reproduce:
Did this occur in prior versions? If not - which version(s) did it work in? It is my first time to use it in this environment.