fix sql server started by delegate