When your application is done accessing the site database, use the SmsDataSourceDisconnect function to disconnect from the site database.