April 15, 2025 at 5:54 pm
Hello,
I've created an SSIS package that collects data from SQL Servers and databases such as CPU, Wait time, database growth, etc. The package runs without any issues in Visual Studio 2019; however, when I run the same package as a job I get this message:
Keyword not supported: 'provider'.
How do I fix it?
Thanks.
April 15, 2025 at 6:32 pm
What type of SQL connection are you using?
OLEDB looks like this:
Data Source=MyDBServer;Initial Catalog=MyDatabase;Provider=SQLNCLI11.1;Integrated Security=SSPI;Auto Translate=False;
ADO looks like this:
Data Source=MyDBServer;Initial Catalog=MyDatabase;Integrated Security=True;
Are you using an ADO source but provided an OLEDB connection string maybe? Do you use environments, did you perhaps configure an ADO connection to use an OLE environment variable?
April 15, 2025 at 6:54 pm
I've tried Native OLE DB, Microsoft OLE DB Provider for SQL Server and Microsoft OLE DB Driver for SQL Server and still was getting the same error.
April 16, 2025 at 10:25 am
Does it run if you execute it in T-SQL?
DECLARE @execution_id BIGINT;
EXEC SSISDB.catalog.create_execution
@package_name = N'package.dtsx'
, @execution_id = @execution_id OUTPUT
, @folder_name = N'folder'
, @project_name = N'project'
, @use32bitruntime = False
, @reference_id = 1
, @runinscaleout = False;
SELECT @execution_id;
DECLARE @var0 SMALLINT = 1;
EXEC SSISDB.catalog.set_execution_parameter_value
@execution_id
, @object_type = 50
, @parameter_name = N'LOGGING_LEVEL'
, @parameter_value = @var0;
EXEC SSISDB.catalog.start_execution @execution_id;
GO
April 16, 2025 at 10:27 am
Take a look in the All Executions report and see whether you get a more detailed error there.
April 16, 2025 at 11:13 am
It returns the value of 176. Not sure what that means
April 17, 2025 at 11:11 am
There are no error messages in the All Execution report. I created a table that gets populated when there are any errors when job gets executed. This is where I found this error.
April 17, 2025 at 11:15 am
There are no error messages in the All Execution report. I created a table that gets populated when there are any errors when job gets executed. This is where I found this error.
Are you saying that the All Executions report says that the package completed successfully?
April 17, 2025 at 11:17 am
Yes that is correct
April 17, 2025 at 11:19 am
OK, that is surprising.
What sort of connection are you using (ADO/OLEDB etc)? Can you supply a (redacted as needed) connection string that is failing?
April 17, 2025 at 12:01 pm
Check connection string:
Sql Connection: Data Source=ServerName;Initial Catalog=DatabaseName;User ID=Username;Password=Password;
VS
OleDbConnection: Provider=SQLOLEDB;Data Source=ServerName;Initial Catalog=DatabaseName;User ID=Username;Password=Password;
If you're using SqlConnection in .NET, the connection string should not include the Provider keyword, as it's specific to OleDbConnection.
Viewing 12 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic. Login to reply