Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÖеÄlike


Ö´ÐÐ Êý¾Ý¿â²éѯʱ£¬ÓÐÍêÕû²éѯºÍÄ£ºý²éѯ֮·Ö¡£
Ò»°ãÄ£ºýÓï¾äÈçÏ£º
SELECT ×ֶΠfrom ±í WHERE ij×ֶΠLike Ìõ¼þ
ÆäÖйØÓÚÌõ¼þ£¬SQLÌṩÁËËÄÖÖÆ¥Åäģʽ£º
1£¬%£º±íʾÈÎÒâ0¸ö»ò¶à¸ö×Ö·û¡£¿ÉÆ¥ÅäÈÎÒâÀàÐͺͳ¤¶ÈµÄ×Ö·û£¬ÓÐЩÇé¿öÏÂÈôÊÇÖÐÎÄ£¬ÇëÔËÓÃÁ½¸ö°Ù·ÖºÅ£¨%%£©±íʾ¡£
±ÈÈç SELECT * from [user] WHERE u_na ......

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

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

SQl 2005 For XMl ¼òµ¥²éѯ(Raw£¬Auto£¬Pathģʽ)(2)

ÎÄÕµ¼º½ SQL Server 2005 ѧϰ±Ê¼ÇϵÁÐÎÄÕµ¼º½
     ÔÚSQl 2005 For XMl ¼òµ¥²éѯ(Raw£¬Auto£¬Pathģʽ)(1) ÀïÎÒÃÇ˵Á˹ØÓÚPath£¬RawºÍAutoģʽµÄÓ÷¨£¬ÆäʵÀïÃæ²»½ö½ö ÊÇÕâЩ¼òµ¥µÄ²Ù×÷£¬»¹ÓÐһЩÆäËüµÄÌØÐÔ£¬±ÈÈç˵Type»òOpenXml·½·¨£¬sp_xml_preparedocument´æ´¢¹ý³Ì µÈÕâЩÔö¼ÓµÄ¶«¶«£¬ÎÒÃÇÀ´Ò» ......

SQL ×Ö·û´®º¯ÊýС×ܽá

Á·ÊÖ£¬Ã¿Ìì²é¿´±ðÈ˵Ķ«Î÷£¬²»Èç×Ô¼º×ܽáºÃ
1:replace º¯Êý
µÚÒ»¸ö²ÎÊýÄãµÄ×Ö·û´®£¬µÚ¶þ¸ö²ÎÊýÄãÏëÌæ»»µÄ²¿·Ö£¬µÚÈý¸ö²ÎÊýÄãÒªÌæ»»³Éʲô
select replace('lihan','a','b')
                      &nb ......

SQL²éѯÓï¾ä¾«»ªÊ¹ÓüòÒª


SQL²éѯÓï¾ä¾«»ªÊ¹ÓüòÒª
¡¡¡¡¼òµ¥µÄTransact-SQL²éѯֻ°üÀ¨Ñ¡ÔñÁÐ±í¡¢from×Ó¾äºÍWHERE×Ӿ䡣ËüÃÇ·Ö±ð˵Ã÷Ëù²éѯÁС¢²éѯµÄ±í»òÊÓͼ¡¢ÒÔ¼°ËÑË÷Ìõ¼þµÈ¡£
¡¡¡¡ÀýÈ磬ÏÂÃæµÄÓï¾ä²éѯtesttable±íÖÐÐÕÃûΪ“ÕÅÈý”µÄnickname×ֶκÍemail×ֶΡ£
¡¡¡¡SELECT nickname,email
¡¡¡¡[1] from testtable
¡¡¡¡WHERE nam ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ