IF NOT EXISTS (SELECT * FROM HotelSetup WITH (NOLOCK) WHERE SearchKey = 'DatabaseVersionNumber')
  INSERT INTO HotelSetup (SearchKey, LabelName, UserGroup, KeyValue, TextValue) VALUES
  ('DatabaseVersionNumber', 'DatabaseVersionNumber', NULL, '11.0.12.22, 62605', '11.0.12.22, 62605')
ELSE
  UPDATE HotelSetup SET KeyValue = '11.0.12.22, 62605', TextValue = '11.0.12.22, 62605' WHERE SearchKey = 'DatabaseVersionNumber'
