Loop
Done
Testing #arguments.fileFormats#
select top 1 batchid from tbl_EAI_InboundBatches with (nolock) where ownerId = and ownerType = and fileFormat in ( ) and status in ( 'RUNNING', 'READY', 'SCHEDULED' )
select savedReportId, reportCenterOptions, parameterString from tbl_SYS_SavedReports where savedReportId in ( ) order by savedReportId