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