if you have a stored procedure in your sql ( like sqlserver) and the stored procedure name is " SP_DMTOVERTIME_STAT " so you can select sql and use the sql command "exec stored prosedure name" like this exec SP_DMTOVERTIME_STAT '2010-11-05','2011-03-05' in iReport. please try it,