dbTalk Databases Forums  

ADO Enumerator Problem

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss ADO Enumerator Problem in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mike Coffey
 
Posts: n/a

Default ADO Enumerator Problem - 05-23-2006 , 08:09 PM






Exec SQL step retrieves field from table. Output is full result set, goes to
global variable of object type.

ForEach loop set for ForEach ADO Enumerator. ADO object source is the
global object variable from above, "Rows in first table" selected. Variable
at index 0 (the only field in the rowset) is mapped to a string-type variable.

I keep getting an error message saying the type of value I'm currently
assigning differs from the current variable type, but everything I've read in
the books and on the web says this should work.

Reply With Quote
  #2  
Old   
Mike Coffey
 
Posts: n/a

Default RE: ADO Enumerator Problem - 05-24-2006 , 12:54 PM






Once again, answering my own question, but I found the solution.

The field I was extracting was numeric. I had to cast it as a varchar in
the select statement, then use a STRING variable for the mapping.

"Mike Coffey" wrote:

Quote:
Exec SQL step retrieves field from table. Output is full result set, goes to
global variable of object type.

ForEach loop set for ForEach ADO Enumerator. ADO object source is the
global object variable from above, "Rows in first table" selected. Variable
at index 0 (the only field in the rowset) is mapped to a string-type variable.

I keep getting an error message saying the type of value I'm currently
assigning differs from the current variable type, but everything I've read in
the books and on the web says this should work.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.