add mssql check procedures
change sql server part code