I don't know on the top of my top. My gut reaction is Don't do that!
But if you want to know, add an Execute SQL task with SELECT SYSTEM_USER and see what you get back.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have an SSIS package and in that, I connect to SSISDB using the following connection string.
Data Source=ABC1234;User ID=TST_USR;Initial Catalog=SSISDB;Provider=SQLNCLI11.1;Integrated Security=SSPI;Auto Translate=False;
The provider is Native OLEDB\SQL Server Native Client 11.0.
The UserId and password are passed to the connection. TST_USR is a SQL auth type login.
In a scenario like this, what will be the connection attempt?
I don't know on the top of my top. My gut reaction is Don't do that!
But if you want to know, add an Execute SQL task with SELECT SYSTEM_USER and see what you get back.
If you provide "Integrated Security=SSPI;" to the connection string, it will be using Integrated Security to login to SQL (with the current windows account or service account that you applied to run the application). It will ignore the username and password even if you provide them in the connection string.
Hi @Subash Basnayake,
The Integrated Security property instructs the SQL Client to connect to SQL Server using Windows Authentication through the Security Support Provider Interface (SSPI). Recognized values are true
, false
, yes
, no
, and sspi
, which is equivalent to true
.
When this property value is true or yes, the DRDA Service will connect to SQL Server using Windows Authentication.
When this property value is false or no, the DRDA Service will connect to SQL Server using SQL Server Authentication.
See Configuring SQL Server Connections
Regards,
Zoe Hui
If the answer is helpful, please click "Accept Answer" and upvote it.