some sql server fixed