When your application has finished accessing the site database, use the SmsDataSourceDisconnect function to disconnect from the site database.