Do you need to change your IM & P domain ? How will you ensure that Jabber contacts work seamlessly following the change?
UPDATE rosters
SET contact_jid = REPLACE(contact_jid,"@olddomain.com", "@newdomain.com")
WHERE contact_jid LIKE "%@olddomain.com"