Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¹ØÓÚSQL Server·þÎñ¹ÜÀíÆ÷µÄÎÊÌâ

ÎÊÌâ: һ̨·þÎñÆ÷ÉÏÔËÐÐÁËSQL Server,SQL Server Agent,Distributed Transaction,CoordinatorÕâÈý¸ö·þÎñ£¬ÇëÎÊÕą̂·þÎñÆ÷ÊÇһ̨ʲôÑùµÄ·þÎñÆ÷£¿ÕâÈý¸ö·þÎñ¾ßÌåÓÐʲô×÷Óã¿
ÕâÊÇһ̨Êý¾Ý¿â·þÎñÆ÷.
SQL Server ÕâÊÇÖ÷Êý¾Ý¿â·þÎñ£¬¶øÇÒÐγÉÁËSQL ServerµÄÖ§Öù¡£ËüÓÃÓÚ´æ´¢ºÍÌáÈ¡Êý¾Ý¡£
SQL Server Agent Ò²½ÐSQL Server´úÀí£¬ÒÔǰ³ÆÎªSQLÖ´ÐÐÕߣ¬ÕâÊÇSQL ServerµÄÈÎÎñÈÕ³Ì±í¡£ÕâÖÖ·þÎñÖ÷ÒªÊÇÓÃÓÚÔÚÉ趨µÄʱ¼ä±¸·Ý¡¢¸´ÖÆÊý¾Ý£¬ÒÔ¼°ÔÚ×Ô¶¯Ö´Ðе÷¶È±íÉÏÉèÖÃµÄÆäËûÏîÄ¿¡£Æô¶¯Õâ¸ö·þÎñºó£¬É趨ºÃÔÚʲôʱºò×öʲôÊ£¬Õâ¸ö·þÎñ»áÈÃËü×Ô¶¯ÔËÐУ¬²»ÐèÒªÈ˹¤¸ÉÔ¤(¸Õ²ÅÍüÁËÆô¶¯Õâ¸ö·þÎñ,¶ø½øÐб¸·Ý,¾ÍÓе¯³ö´íÎó)¡£
Distributed Transaction,CoordinatorMSDTC£¨·Ö²¼Ê½½»Ò×Эµ÷Æ÷£©µÄ½ø³ÌÃûÊÇMsdtc.exe£¬WinXP Home/ProĬÈϰ²×°µÄÆô¶¯ÀàÐÍÊÇÊÖ¶¯£¬ÒÀÀµRemote Procedure CallºÍSecurity Accounts Manager·þÎñ¡£MSDTCÖ÷ÒªÓÃÀ´´¦Àí·Ö²¼Ê½½»Ò×£¬Ëùν·Ö²¼Ê½½»Ò×£¬¾ÍÊÇ¿çÔ½Á½¸ö»ò¶à¸öÊý¾Ý¿âµÄµ¥Ò»SQL ServerÄÚ²¿µÄ½»Òס£Í¬Ò»Êý¾Ý¿âÄÚ²»Í¬Êý¾Ý±í¼äµÄ½»Ò×£¬Ôò²»ÄܳÆ×÷·Ö²¼Ê½½»Òס£ÏÔÈ»¶ÔÓÚÐèҪͬʱ´¦Àí¶à¸öÊý¾Ý¿â»òÎļþϵͳµÄÓû§À´Ëµ£¬Õâ¸ö·þÎñÒâÒåÖØ´ó£¬µ«ËüÒ²ÊÇͨ³£ÒâÒåÉÏÒ»°ãÓû§²»»áʹÓõ½µÄ·þÎñ£¬Í¨³£À´Ä¬ÈÏÊÖ¶¯Æô¶¯¾ÍºÃÁË£¬ÆäʵÕâ¸ö·þÎñÒ²ÈÝÒ×Êܵ½Ô¶³Ì¾Ü¾ø·þÎñ¹¥»÷£¬½ûÓÃËüҲûÓÐÎÊÌ⣬¶øÇÒ¸ü°²È«¡£
С³£Ê¶£ºËùÓпª»úÆô¶¯µÄ·þÎñ»òÕß³ÌÐò£¬¶¼ÄÜÔÚmsconfigÀïÃæ¿´µ½£¬ÔËÐÐÓë·ñ¿ÉÒÔÔÚservices.mscÀï¿´µ½¡£


Ïà¹ØÎĵµ£º

SQL Server 2008ÖеıíÖµÐͲÎÊý

SQL Server 2008ÖеıíÖµÐͲÎÊý
×÷ÕߣºAl Tenhundfeld   ÒëÕß Õź£Áú¡¡
    ±íÖµÐͲÎÊý£¨Table-valued parameters£©ÊÇSQL Server 2008ÖÐÒýÈëµÄÒ»ÖÖÐÂÌØÐÔ£¬ËüÌṩÁËÒ»ÖÖÄÚÖõķ½Ê½£¬Èÿͻ§¶ËÓ¦ÓÿÉÒÔֻͨ¹ýµ¥¶ÀµÄÒ»Ìõ²Î»¯ÊýSQLÓï¾ä£¬¾Í¿ÉÒÔÏòSQL Server·¢ËͶàÐÐÊý¾Ý¡£
    ±íÖ ......

SQL Server 2005 ÖеÄRow_Number()º¯Êý

±¾ÎÄÀ´×Ô£ºhttp://www.cnblogs.com/digjim/archive/2006/09/20/509344.html
 ÎÒÃÇÖªµÀ£¬SQL Server 2005ºÍSQL Server 2000 Ïà±È½Ï£¬SQL Server 2005ÓкܶàÐÂÌØÐÔ¡£ÕâÆªÎÄÕÂÎÒÃÇÒªÌÖÂÛÆäÖеÄÒ»¸öк¯ÊýRow_Number()¡£Êý¾Ý¿â¹ÜÀíÔ±ºÍ¿ª·¢ÕßÒѾ­ÆÚ´ýÕâ¸öº¯ÊýºÜ¾ÃÁË£¬ÏÖÔÚÖÕÓڵȵ½ÁË£¡
 Í¨³££¬¿ª·¢Õߺ͹ÜÀíÔ±ÔÚÒ»¸ö ......

SQL SERVER2008°²È«ÐÔ


¸ÅÊö
Microsoft SQL Server 2008 ÌṩÁËÓÐÖúÓÚÓÐЧ¹ÜÀí°²È«ÐÔ¹¦ÄÜÅäÖá¢Ç¿Éí·ÝÑéÖ¤ºÍ·ÃÎÊ¿ØÖƵݲȫÐÔÔöÇ¿¹¦ÄÜ¡¢¹¦ÄÜÇ¿´óµÄ¼ÓÃܺÍÃÜÔ¿¹ÜÀí¹¦ÄÜ£¬ÒÔ¼°ÔöÇ¿ÐÍÉóºË¹¦ÄÜ¡£
ÖØ´óµÄй¦ÄÜ
ʹÓûùÓÚ²ßÂԵĹÜÀí£¬Õë¶ÔÆóÒµÄÚµÄÊý¾ÝÀ´¹ÜÀí¼°¼ì²â²»·ûºÏ°²È«²ßÂÔµÄÇé¿ö
²»ÐèÐÞ¸ÄÓ¦ÓóÌÐò¼´¿ÉʹÓÃ͸Ã÷Êý¾Ý¼ÓÃÜÀ´¼ÓÃÜÊý¾Ý
ʹÓÿÉÀ© ......

ÊéдSQLʱҲ»ñµÃÖÇÄÜÌáʾ

дSQLµÄ±Èд.NET³ÌÐòµÄÌåÑéÉϲîÒ»µÈ£¬Ã»ÓÐÖÇÄÜÌáʾ£¬ÐèÒª¼Çס¹Ø¼ü×Ö£¬º¯Êý»òÕß²»¶ÏµØCopy±í×Ö¶ÎÃû£¬×Ô¶¨Ò庯Êý£¬´æ´¢¹ý³ÌÖ®ÀàµÄ¡£²»¹ýÔÚVS2010ÖУ¬ÎÒÃÇ¿ÉÒÔʹÓÃÖÇÄÜÌáʾÁË£¬ÈçÏÂÃæ¼¸·ùͼËùʾ£º Ôڱ༭Æ÷ÖУ¬ ÊäÈë Shift + J £¨Ìáʾ£º VS2010 ¿ª·¢¹¤¾ßÖбêµÄÊÇ Ctrl +J ÆäʵӦ¸ÃÊÇ Shift + J £©¾Í¿ÉÒÔ×Ô¶¯´ò¿ªÕâ¸öÖÇÄÜÌá ......

Ôõô½«ÏÂÃæµÄsql¸Ä³ÉHql£¿

select * from ((select bill.id billId,bach.riskRate risk,bach.assureRate assure from AcptBillInfo bill,AcptBach  bach where bill.acptBatchId=bach.id and bill.rgctId=? )abach left outer join AcptSignMoney sig on abach.billId = sig.billId) ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ