Azure Devops SSIS Deploy, cannot connect to on prem server - sql-server

I have an SSIS project that I want to use Azure DevOps' CI/CD.
Using SSIS build for the build pipeline, it works.
I have created an agent, installed and configured in the desired on-prem server.
I create an SSIS Deploy for the release pipeline, using the agent.
But I am getting an error, that it cannot connect to the server.
Log snippet:
2023-01-24T03:18:22.0917377Z ------------------------------ispac to deploy---------------------------------
2023-01-24T03:18:22.0967049Z C:\azagent_work\r1\a[XXXX][XXXX][XXXX].ispac
2023-01-24T03:18:22.0977826Z ------------------------------------------------------------------------------
2023-01-24T03:18:22.1047463Z
2023-01-24T03:18:22.3707323Z ##[error]01/24/2023 03:18:22 Failed to connect to the SQL Server '[XXXX]': Failed to connect to server [XXXX].
2023-01-24T03:18:22.3720991Z ##[error]01/24/2023 03:18:22 Failed to connect to server [XXXX].
2023-01-24T03:18:22.3769044Z -----------------------------------Errors-------------------------------------
2023-01-24T03:18:22.3820946Z ##[error]Failed to connect to the SQL Server '[XXXX]': Failed to connect to server [XXXX].
2023-01-24T03:18:22.3823079Z
2023-01-24T03:18:22.3842653Z ##[error]Failed to connect to server [XXXX].
2023-01-24T03:18:22.3844585Z
2023-01-24T03:18:22.4537552Z ##[section]Finishing: Deploy SSIS
I can see the ispac file in the server & I can run it manually, but it seems it can't when via Azure Devops.
Appreciate any help... please.

Related

Azure Devops SSIS Package Deployment

We are trying to deploy an SSIS package via Azure devops to an on premise SQL server instance. I have done application deployment setups countless times but this is the first SQL on premise deployment we have tried using Azure devops. I have setup the azure agent and deployment groups etc
Is there a way to specify a different port for a SQL instance SSIS package deployment?
we are seeing the below error when trying to deploy a new package to a named SQL server that is running on a different port to the default 1433.
Failed to connect to server DB-DEVMT-01\INST01. A connection was
successfully established with the server, but then an error occurred
during the login process. (provider: SSL Provider, error: 0 - The
certificate chain was issued by an authority that is not trusted.)
In the logs, networks have found that connection is trying to go via 1433 but this obviously will not work so thinking if this can be specified in the agent job?
Or any other help with this error would be appreciated!
Thanks

How to deploy ETL package to a remote SQL Server with SQL authentication?

I'm new to ETL so I have developed a simple ETL package, and now I'm going to deploy it to a remote server.
I connect to server using SQL Server authentication, so I go to solution explorer and open deployment wizard, in there in destination tab entered my server ip and then it shows me a error message saying
Login failed for user 'MYDOMAIN\MYUSERNAME'. (.Net SqlClient Data Provider)
As I said earlier I want to use SQL Server authentication to connect to my server, where can I change this settings in SSIS ?
Take a look at the link below. I think it should solve your problem.
On the Specify Target SQL Server page, specify the instance of SQL Server to install the packages to and select an authentication mode. If you select SQL Server Authentication, you must provide a user name and a password.
https://technet.microsoft.com/en-us/library/ms141693(v=sql.110).aspx

SQL to Access DB connection issues

I have a SSIS package connecting to Access DB via SSIS package. The package runs fine in my local. But in Server it's failing with the error message class not reqistered for the connection manager. I do not have Access DB engine or Microsoft office component installed in the server. Do i need to install any component to acquire connection successfully?

Migrate SQL Server CE to Azure

I have finished my first complete Orchard CMS website, developed locally in SQL Server CE. I want to publish it to Azure, but I am having difficulty with the WebMatrix Migrate function.
I have a SQL Server instance in Azure with an blank Orchard database already there (I want to use the replace option late in the migration to just nuke the existing db). I have added my IP to the server firewall rule.
In WebMatrix 3 I can connect to my Azure database using:
Server: myserver.database.windows.net
Database: orchard-db
Username: admin#myserver
Password: mypassword
I can view the tables in WebMatrix.
When I select my CE sdf file (Orchard.sdf) and click the Migrate button and enter the exact same details I get the following (can provide full stack trace if needed):
We were unable to connect using the connection details provided.
Microsoft.SqlServer.Management.Common.ConnectionFailureException:
Failed to connect to server . ---> System.Data.SqlClient.SqlException:
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)
---> System.ComponentModel.Win32Exception: The network path was not found
I'm really not sure what the issue is. I have tried various configurations of the details but nothing seems to work. If I connect as my database user (i.e. not a server admin) I get a different error:
The server principal "orchard_user" is not able to access the database "master" under the current security context.
I went and had something to eat, and now I can get to the next step of the migration. When I select replace database I get the following error:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.SqlServer.Management.Common.ConnectionFailureException: Failed to connect to server . ---> System.Data.SqlClient.SqlException: Login failed for user 'admin'.
EDIT: I have come to the conclusion WebMatrix is not going to migrate my SQL Server CE database to my Azure SQL Server database. I installed SQL Server Express and migrated it to that, when I get home from work I will use the SQL Server Migration Assistant to move it to Azure.
I ended up installing SQL Server Express, using WebMatrix to migrate the SQL Server CE database to that. I then ran the Deploy Database to Microsoft Azure Database Wizard in SSMS to push my database to Azure.
I can't be certain, but it seems that WebMatrix can't migrate CE to Azure. According to Azure doco:
It is recommended that you always use the latest version of Management Studio to remain synchronized with updates to Microsoft Azure and SQL Database. Update SQL Server Management Studio.
I guess WebMatrix is behind or something. Hopefully this helps someone in my situation.

To check a remote SQL Server instance through inno setup

I am trying to install JBoss server and deploy modules after configuring the SQL Credentials of a remote server (SQL Server name, Instance name and database name) through inno setup. The problem I am facing is, if the TCP/IP protocols is not enabled for the instance name in the remote server, the deployment fails during the Installation.
I need to check if the instance in remote SQL server is accessible from the Server where the JBoss is being installed. Please suggest a way.
P.S- I am using SQL Server Authentication to connect to the database.
Thanks in advance,
DeeJay.

Resources