You've to define the Parameters i.e.:SQLQuery1.SQL.Parambyname('Param1').asstring:= .....SQLQuery1.SQL.Parambyname('Param2').asstring:= .....