aspnet_regsql

aspnet_regsql

使SQL支持会话状态
aspnet_regsql  -S localhost -U sa -P password -ssadd -sstype p
其中:-sstype有三个值:t,p,c(详细说明可使用 aspnet_regsql -? 命令查看)

使数据库支持SQL Server高速缓存禁用功能
aspnet_regsql -S localhost -U sa -P password -d Northwind -ed

使数据库不支持SQL Server高速缓存禁用功能
aspnet_regsql -S localhost -U sa -P password -d Northwind -dd

使表支持SQL Server高速缓存禁用功能
aspnet_regsql -S localhost -U sa -P password -d Northwind -t Customer -et

使表不支持SQL Server高速缓存禁用功能
aspnet_regsql -S localhost -U sa -P password -d Northwind -t Customer -dt

查看支持SQL Server高速缓存禁用功能的表
aspnet_regsql -S localhost -U sa -P password -d Northwind -lt

(注:转)

原文地址:https://www.cnblogs.com/xinlang/p/1350865.html