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