sqlÊý¾Ý±í»º´æ
¡¡1¡¢ÔÚ.net framework 2.0µÄ°²×°Ä¿Â¼ÏÂ
£¨Ä¬ÈÏÊÇWINNT\Microsoft.NET\Framework\v2.0.40607£©£¬Æô¶¯Ò»¸ö½ÐASPnet_regsql.exeµÄÃüÁîÐй¤¾ß£¬±ÈÈ磺
ASPnet_regsql -S localhost –U sa –P 123456 -d Pubs –ed
¡¡¡¡ÉÏÃæµÄÒâ˼ÊÇ£¬Ö¸¶¨Á˱¾µØµÄÊý¾Ý¿â·þÎñÆ÷localhost,²¢Ö¸¶¨Á˵ǽµÄÓû§ÃûºÍÃÜÂ룬²¢ÓòÎÊý-dÖ¸¶¨ÁËÒª²ÉÓÃÄÄÒ»¸öÊý¾Ý¿â£¨ÕâÀïÊÇÖ¸¶¨ÁËpubs£©Êý¾Ý¿â£¬-ed²ÎÊý±íʾÊÇÔÊÐí¸ÃÊý¾Ý¿âʹÓÃsqlcachedependency¹¦ÄÜ¡£
¡¡¡¡½Ó×Å£¬ÎÒÃÇÐèÒªÖ¸¶¨¶ÔÄÄÒ»¸ö±íʹÓÃÊý¾Ýsqlcachedependency¹¦ÄÜ£¬È磺
ASPnet_regsql -S localhost –U sa -P 123456 -ed -d pubs -et -t authors
¡¡¡¡ÉÏÃæÓï¾äµÄÒâ˼ÊÇ£¬Ö¸¶¨¶ÔpubsÊý¾Ý¿âÖеÄauthors±íʹÓÃsqlcachedependency¹¦ÄÜ£¬-t²ÎÊýºóÊDZíµÄÃû³Æ£¬-etÊÇÔÊÐí¸Ã±íʹÓÃsqlcachedependency¹¦ÄÜ¡£ÆäËûµÄÓйزÎÊý¼òµ¥½éÉÜÈçÏ£º
²ÎÊý
²ÎÊýÒâÒå
-?
ÏÔʾ¸Ã¹¤¾ßµÄ°ïÖú¹¦ÄÜ.
-S
ºó½ÓµÄ²ÎÊýΪÊý¾Ý¿â·þÎñÆ÷µÄÃû³Æ»òÕßIPµØÖ·
-U
ºó½ÓµÄ²ÎÊýΪÊý¾Ý¿âµÄµÇ½Óû§Ãû.
-P
ºó½ÓµÄ²ÎÊýΪÊý¾Ý¿âµÄµÇ½ÃÜÂë
-E
µ±Ê¹ÓÃwindows¼¯³ÉÑé֤ʱ£¬Ê¹Óøù¦ÄÜ
-t
ºó½Ó²ÎÊýΪ¶ÔÄÄÒ»¸ö±í²ÉÓÃsqlcachedependency¹¦ÄÜ¡£
-d
ºó½Ó²ÎÊýΪ¶ÔÄÄÒ»¸öÊý¾Ý¿â²ÉÓÃsqlcachedependency¹¦ÄÜ
-ed
ÔÊÐí¶ÔÊý¾Ý¿âʹÓÃsqlcachedependency¹¦ÄÜ
-dd
½ûÖ¹¶ÔÊý¾Ý¿â²ÉÓÃsqlcachedependency¹¦ÄÜ
-et
ÔÊÐí¶ÔÊý¾Ý±í²ÉÓÃsqlcachedependency¹¦ÄÜ
-dt
½ûÖ¹¶ÔÊý¾Ý±í²ÉÓÃsqlcachedependency¹¦ÄÜ
-lt
Áгöµ±Ç°Êý¾Ý¿âÖÐÓÐÄÄЩ±íÒѾ²ÉÓÃsqlcachedependency¹¦ÄÜ
¡¡¡¡SqlcachedependencyµÄµÄÔÀí¼òµ¥À´Ëµ£¬ÊDzÉÓÃASPnet_regsqlÕâ¸öרÃŹ¤¾ß£¬Ô¤ÏÈÉ趨Ҫ¼àÊÓµÄÊý¾Ý¿âºÍ±í£¬²¢ÔÚÊý¾Ý¿âÖÐÔö¼ÓÒ»¸öרÃÅµÄ±í£¬´ò¿ªÊý¾Ý¿â£¬»á·¢ÏÖ¶àÁËÒ»¸öÊý¾Ý±íASPnet_sqlcachetablesforchangenotification£¬ÈçÏÂͼ£º
¡¡¡¡Õâ¸ö±íÓÐÈý¸ö×ֶΣ¬“tableName”¼Ç¼Ҫ׷×ÙµÄÊý¾Ý±íµÄÃû³Æ£¬“notificationCreated”¼Ç¼¿ªÊ¼×·×ÙµÄʱ¼ä£¬“changeId”ÊÇÒ»¸öintÀàÐ͵Ä×ֶΣ¬Ã¿µ±×·×ÙµÄÊý¾Ý±íµÄÊý¾Ý·¢Éú±ä»¯Ê±£¬Õâ¸ö×ֶεÄÖµ¾Í¼Ó1¡£ ´ËÍ⻹»áÔÚÖ¸¶¨µÄÊý¾Ý¿âÖÐÔö¼Ó¼¸¸ö´æ´¢¹ý³Ì£¬ÓÃÀ´ÈÃASP.NETÒýÇæ²éѯ׷×ÙµÄÊý¾Ý±íµÄÇé¿ö£¬²¢¸øҪʹÓà Sqlcachedependency µÄ±í¼ÓÉÏÈô¸É´¥·¢Æ÷£¬·Ö±ð¶ÔÓ¦µ½Insert¡¢Update¡¢Delete²Ù×÷¡£ASP.NETÒýÇæͨ¹ýÖ´ÐÐËü¼ÓÉϵĴ洢¹ý³Ì“ASPNet_SqlCachePollingStoredProcedure”£¬Õâ¸ö´æ´¢¹ý³
Ïà¹ØÎĵµ£º
ϵͳ»·¾³£ºWindows 7
Èí¼þ»·¾³£ºVisual C++ 2008 SP1 +SQL Server 2005
±¾´ÎÄ¿µÄ£º±àдһ¸öº½¿Õ¹ÜÀíϵͳ
ÕâÊÇÊý¾Ý¿â¿Î³ÌÉè¼ÆµÄ³É¹û£¬ËäÈ»³É¼¨²»¼Ñ£¬µ«ÊÇ×÷ΪÎÒÓÃVC++ ÒÔÀ´±àдµÄ×î´ó³ÌÐò»¹ÊÇ´«µ½ÍøÉÏ£¬ÒÔ¹©²Î¿¼¡£ÓÃVC++ ×öÊý¾Ý¿âÉè¼Æ²¢²»ÈÝÒ×£¬µ«Ò²²»ÊDz»¿ÉÄÜ¡£ÒÔÏÂÊÇÎҵijÌÐò½çÃ棬ºóÃæ ......
ѧ»áÊý¾Ý¿âÊǺÜʵÓÃD~~¼Ç¼һЩ³£ÓõÄsqlÓï¾ä...ÓÐÈëÃÅÓÐÌá¸ßÓмû¶¼Ã»¼û¹ýµÄ...ºÃÈ«...ÊÕ²ØÏÂ...
Æäʵһ°ãÓõľÍÊDzéѯ,²åÈë,ɾ³ýµÈÓï¾ä¶øÒÑ....µ«Ñ§Ñ§´æ´¢¹ý³ÌÊǺÃÊÂ...ÒÔºóÊý¾Ý·½ÃæµÄ¶«Î÷¾Í²»ÓÃÔÚ³ÌÐòÀï¸ãà¶..¶øÇÒ³ÌÐòÓëÊý¾Ý¿âÖ»ÒªÒ»¸öÀ´»ØͨѶ¾Í¿ÉÒԸ㶨ËùÓÐÊý¾ÝµÄ²Ù×÷....
Ò»¡¢»ù´¡
1¡¢ËµÃ÷£º´´½¨Êý¾Ý¿â
Create DAT ......
1. GROUP BY ÊÇ·Ö×é²éѯ, Ò»°ã GROUP BY ÊǺ;ۺϺ¯ÊýÅäºÏʹÓÃ
group by ÓÐÒ»¸öÔÔò,¾ÍÊÇ select ºóÃæµÄËùÓÐÁÐÖÐ,ûÓÐʹÓþۺϺ¯ÊýµÄÁÐ,±ØÐë³öÏÖÔÚ group by ºóÃ棨ÖØÒª£©
ÀýÈç,ÓÐÈçÏÂÊý¾Ý¿â±í£º
A B
1 abc
1 bcd
1 asdfg
Èç¹ûÓÐÈ ......
LINQ to SQL ÐÔÄÜ 10 Tips
http://www.cnblogs.com/worksguo/archive/2008/06/04/1213075.html
Ç°Ò»ÖÜ£¬ÎÒµÄÓ²ÅÌÓÐÁ½·ÖÇø»µÁË£¬ÎÒ×¼±¸µÄÎÄÕÂÓë×ÊÁ϶¼ÔÚÀïÃ棬ËùÒÔLINQµÄÎÄÕÂÍ£ÁËÒ»¶Îʱ¼ä£¬ÕæµÄÌ«²»ºÃÀ£¬ÎªÀ´ÃÖ²¹Ò»Ï¾ÍÏÈ·¢ÕâƪÎÄÕÂÉÏÀ£¬Ã÷ÌìÔÙһƪ¹ØÓÚDisconnection DataµÄÎÄÕ¡£
Ö»²»¹ýÐҺã¬ÔÚÕ⼸ÌìÖÐÎҽ߾¡È«Á¦ ......
Éè¼ÆÔÔò
·ûºÅÈý´ó·¶Ê½£¨Ã¿Ò»Áбí´ïÒ»¸öÒâ˼£¬Ã¿Ò»Ðдú±íÒ»¸öʵÀý/ÿһÐÐÓÐΨһ¼ü/±íÄÚûÓÐÆäËü±íµÄ·ÇÖ÷¼üÐÅÏ¢£©
ÿ¸ö±íÓ¦¸ÃÓеÄ3¸öÓÐÓÃ×ֶΣ¨¼Ç¼´´½¨»ò¸üÐÂʱ¼ä/¼Ç¼´´½¨Õß/¼Ç¼°æ±¾£©
±ÜÃâ±£Áô×Ö
±íÓ¦±ÜÃâ¿ÉΪ¿ÕµÄÁÐ
ÃüÃû¹æ·¶
±í
±íÃûÈçOr ......