Inside of an SQL Task (below), I have a call to a stored procedure with 7 parms.
[Audit].[spBatchPackage_OnExtract] , , , , , ,
User:: ParentExecution_Idx Long
User:: Batch_Idx Long
System:: PackageName Nvarchar
System:: PackageID GUID
User:: TargetTable Nvarchar
System:: ContainerStartTime DBTimestamp
User:: DataFilePattern Nvarchar
In my SP I have this:
ALTER
PROCEDURE [Audit].[spBatchPackage_OnExtract]@Execution_Idx
int ,@Batch_Idx int ,@Source nvarchar(1024) ,@SourceId uniqueidentifier ,@Destination nvarchar(1024) ,@StartTime DATETIME ,@FileSpecification nvarchar(2)
When I execute the SQL Task, I get this error:
[Execute SQL Task] Error: Executing the query "[Audit].[spBatchPackage_OnExtract] , , , , , , " failed with the following error: "Invalid character value for cast specification". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
Any help on clearing up this error would be appreciated!