correct unsSqlCmd in function access_sql_server