数据缓存:一定周期内经常使用的数据(不经常变化)缓存在程序服务器内存,当数据源数据发生改变时才从内存中清楚除,以最大化获取缓存带来性能上的优势。
SQL 提供了两种方式来判断数据库中的数据在什么时候修改过。
A、 Notification (Sql 主动通知)
B、 Polling (一定时间间隔查询数据库获取通知)
Service Broker:
SELECT name, is_broker_enabled FROM sys.databases
ALTER DATABASE databaseName SET ENABLE_BROKER
For SQL Server Authentication:
Aspnet_regsql.exe -S server -U user -P password -d database -ed
For Windows Authentication:
Aspnet_regsql.exe -S server -E -d database -ed
![](https://images.cnblogs.com/cnblogs_com/litsword/633888360266998759_articlesmaint_newstored.jpg)
For SQL Server Authentication:
Aspnet_regsql.exe -S server -U user -P password -d database -t tableName -et
For Windows Authentication:
Aspnet_regsql.exe -S -E -d database -t tableName -et
SQL Service Broker: http://www.51cto.com/html/2005/1115/11401.htm
SQL Server 2005查询通知之基础:
http://tech.ddvip.com/2006-11/116378269210722.html
为通知创建查询