Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSIS - Execute SQL Task not returning values if run in Schedule

Status
Not open for further replies.

Bahrahsimo

Programmer
Aug 24, 2010
1
Hi there

I've got an interesting issue when running a SSIS package.

I'm making used of an "Execute SQL Task" to retrieve a list, which will be used to build SQL scripts in a "Foreach Loop Container"

When running the SSIS package through the BIDS it works 100%. Also if it's run locally as a job on the database server, it words 100%.

The problem comes in when the job is scheduled.
No records are returned when the SQL Task is executed.

Any Ideas?

Background on the SQL Task:
Cnnection Type is OLE DB (Also tried ADO.Net)
The SQL query is very simple:
"SELECT distinct FileRef
FROM [CCReleasedFiles]
where [ReleaseDate] = convert(nchar,getdate(),112)"

Result Set is Full Result Set
Result Name: 0
Result Variable: User::eek:RecList (which is an object)

Hope someone will be able to help me with this one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top