Intergrate or Connect Openfire with external SQL Server 2012

I want to integrate my embaded database of openfire to sql server, please provide me complete discription so that i could connect it .