remove lock in fuction access_sql_server