SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


OLE_SRC doesn't bring back record


OLE_SRC doesn't bring back record

Author
Message
robert.gerald.taylor
robert.gerald.taylor
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1832 Visits: 1493
Using SSIS 2008 R2, I've got a query in an OLE DB Source task that works fine in SSMS and about 2/3 of the time it works okay in SSIS, but about 1/3 of the time it doesn't bring back a record (it should bring back 1 record, and in SSMS it does bring back one record).

Any ideas on how to debug this?

Thanks,
Rob
Lempster
Lempster
Hall of Fame
Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)

Group: General Forum Members
Points: 3259 Visits: 1657
Sounds very strange!

Is your source query just a 'standard' SQL command or is it derived from a variable and/or expression? Is the SSIS package running as a SQL Agent job or are you manually executing the package either in Design or Run mode? Is the data time-dependent in any way?
Have you tried running a Profiler trace to check that the target database is being accessed by the query?

Regards
Liam
robert.gerald.taylor
robert.gerald.taylor
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1832 Visits: 1493
Lempster (12/18/2013)
Sounds very strange!

Is your source query just a 'standard' SQL command or is it derived from a variable and/or expression? Is the SSIS package running as a SQL Agent job or are you manually executing the package either in Design or Run mode? Is the data time-dependent in any way?
Have you tried running a Profiler trace to check that the target database is being accessed by the query?

I had to set this issue off to the side, but I'll have to solve this one soon.

It's a straight-forward SQL query, but I do build it into a SSIS variable. I could put a message box in a script task to display the query string -- that's a good thought.

I am manually running the package through BIDs.

Not time dependent.

The profiler suggestion is a good one as well.

Thanks for the suggestions, I'll post back what I find.

Rob
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search