if (not exists(select Driver from Printers where Driver='XML')) then
  insert into Printers(Name,Driver,Port,"File")
    values('XmlPrint','XML',0,'C:\Temp');
end if

GO

if (not exists(select N from PrintersPayCommands where Printer='XML')) then
  insert into PrintersPayCommands(Printer,PayType,Command)
    values('XML',1,'cash');
  insert into PrintersPayCommands(Printer,PayType,Command)
    values('XML',4,'bank');
  insert into PrintersPayCommands(Printer,PayType,Command)
    values('XML',5,'voucher');
end if

GO