Solved

SSIS Package : Execute Sql task with a parameter from row count

Posted on 2012-04-13
5
597 Views
Last Modified: 2013-11-18
Dear All,

I have developed SSIS package whith the following components

1. Data Flow Task -  With OLE DB Source Then Row Count  with variable vrbRowCount(int32) then a Destination.

2. Execute SQL TASK  with the follwing Sql and Result set as Single row
    Update wf_cntl
Set src_rowcount = ?
Where tbl_name = 'Invoice_Header'
 
And Parameter mapping
Variable name : vrbRowCount
Direction Input
Dataa Type Long
Parameter: new parameter
Parameter value : 50

It results in an error please help what is the correct settings
0
Comment
Question by:bestway_it
  • 3
5 Comments
 
LVL 28

Expert Comment

by:Ryan McCauley
ID: 37845720
Any chance we can get the text of the error? What you're trying to do seems reasonable, so nothing obvious jumps out, but it's hard to troubleshoot further without the specific error message being given.
0
 
LVL 21

Expert Comment

by:huslayer
ID: 37845879
Alright, 2 issues here, you're expecting a resultset from updating one record, and you would get nothing!!

and the second is setting the resultset to single row and configured nothing in the resultset property

Have you tried to set the ResultSet to NONE ?
0
 

Accepted Solution

by:
bestway_it earned 0 total points
ID: 37850607
Thanks guys for your input, the proble was with the Parameter Name,

http://technet.microsoft.com/en-us/library/ms140355(v=sql.105).aspx
0
 

Author Comment

by:bestway_it
ID: 38844354
Please close this question as answer was found on the TechNet website. Thank you.
0
 

Author Closing Comment

by:bestway_it
ID: 38858714
Found the answer.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now