Hi,
I'm new to SSIS and SQL Server 2005 and this is now driving me very mad!!
I have an OLE DB Command in my data flow task that I want to update a table with. I have looked round this forum and on Google and just can not find a solution or what I am doing wrong. So any help would be great!
The ole db command calls a stored procedure with two input variables:
exec stp_updedgrsholds status, temp_cr_num
from debugging the ssis it says it has updated 4 rows and also from doing a data view, the data it is updating seems all correct.
but nothing gets updated in the database.
If I call the stored procedure the following way
exec stp_updedgrsholds 'C', 87
It updates fine! I have tried a number of different way with @. symbols and assignment p_status = @.status
but nothing seems to work.
Any ideas are much appreciated.
Ninder Bassi
If you call the stored proedure and it succeeds, but then data is not updated, have you confused the target of your connections?
What is a data view?
How is the stored procedure being called, what task or component?
What are status and tep_cr_num, that syntax does not make sense. When passing in parameters with OLE-DB, it is usual to use ? as the placeholder, then in the task or component UI, use the "Parameters" screen to map a SSIS variable to the placeholder.
|||told you i was new to it all!!
the stored procedure is being called from the ole-db command
i have tried the ?'s now and get the following error after mapping them in the "column mappings" tab.
[OLE DB Commmand [3310]]: Columns cannot convert between unicode and non-unicode string data types.
many thanks for the help.
|||ot it. did a data conversion and the parameters mapped fine. and all worked fine.
many thanks DarrenSQLIS i just needed that nudge in the right direction.
No comments:
Post a Comment