Advertisement

02.19.2007 at 07:32AM PST, ID: 22398653
[x]
Attachment Details

Execute SQL Task Error: no result rowset associated...

Asked by Soccerman55 in MS SQL DTS, MS SQL Server, SQL Server 2005

Tags: sql, result, execute, rowset, task

I am getting the following error when I execute my sql task:
 An error occurred while assigning a value to variable "NullVar":  " NO result rowset is associated with the execution of this query. "

I am executing a SP that has one input & one output parameter.  The output parameter is returning a single row for debugging if the sp failes.

I tried using Jamie's method:(http://blogs.conchango.com/jamiethomson/archive/2005/12/09/2480.aspx) to get it to work but keep getting the above error.  I have the following variables:
sqlSource (string) := Exec RBCprcsInsertWmsInvTransactionRecords '" + (DT_WSTR,10 ) @[User::SnapShotDate] + "', NULL"
NullVar (string)

In the execute sql task, I set the ResultSet to single row.  I set SQLSourceType = variable & sourcevariable = user::SqlSource.  In the result tab, I added a result set, NewResultName with the variable user::NullVar.  I tried different configurations with the parameter mappings but nothing seemed to work.  I didn't know if i still had to use this if I am using the sqlSource variable to drive the task.
So I am not sure what I am missing here.  Anyone have any suggestions?
Thanks!
JohnStart Free Trial
 
Loading Advertisement...
 
[+][-]02.19.2007 at 08:31AM PST, ID: 18563850

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MS SQL DTS, MS SQL Server, SQL Server 2005
Tags: sql, result, execute, rowset, task
Sign Up Now!
Solution Provided By: Soccerman55
Participating Experts: 1
Solution Grade: A
 
 
[+][-]02.19.2007 at 08:32AM PST, ID: 18563860

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.19.2007 at 09:46PM PST, ID: 18568592

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.26.2007 at 06:03PM PDT, ID: 18797145

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]03.30.2007 at 07:01AM PDT, ID: 18823348

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32