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

 

 

(注:转)

posted on 2008-12-09 09:55  新郎  阅读(457)  评论(0编辑  收藏  举报