Çë½ÌsqlserverÖÐÄÜ·ñÔÚÒ»¸öÊÂÎïÀïÃ濪ÊÂÎï
±ÈÈ磺
ÊÂÎï1 START
¡£¡£¡£¡£¡£¡£
ÊÂÎï2 START
²åÈëÒ»Õűí
ÊÂÎï2 END
¡£¡£¡£¡£¡£¡£
È»ºó³ÌÐò±Àµô£¬ÊÂÎï1»Ø¹ö£¬²»¹ýÓÖÏëÌá½»ÊÂÎï2µÄÊý¾Ý¡£
ÊÂÎï1 END
Óа취ʵÏÖÂð
d
Ó¦¸ÃÊDz»ÐеÄÁË£¬ÕâÑù¾ÍÎ¥±³ÁËÊÂÎïµÄÒâÒåÁË¡£
¿ÉÒÔÔÚÒ»¸öÏÔʽÊÂÎñÖаüº¬ÁíÒ»¸öÏÔʽÊÂÎñ£¨ÊÂÎñǶÌ×£©¡£ÔÚÏÔʾÊÂÎñÖУ¬Ã¿Ö´ÐÐÒ»¸ö BEGIN TRAN Óï¾ä¶¼»á¿ªÊ¼Ò»¸öеÄÊÂÎñ£¬ÊÂÎñÊý¶¼»á¼Ó 1£»Ã¿Ö´ÐÐÒ»¸ö COMMIT TRAN Óï¾äÊÂÎñÊý¶¼»á¼õ 1£¬µ«ÊÇÖ»ÓÐ×îÍâ²ãǶÌ×µÄ COMMIT TRAN Óï¾ä²Å»áÕæÕýÌá½»ÔÚËü֮ǰµÄËùÓÐÊÂÎñ£¬¶øÔÚÆäËû¸÷²ãǶÌ×É쵀 COMMIT TRAN Óï¾ä²¢²»ÕæÕýÌá½»±¾Ç¶Ì×µÄÊÂÎñ£»ÎÞÂÛÔÚÄÄÒ»²ãÊÂÎñÉÏÖ´ÐÐÒ»¸ö ROLLBACK TRAN Óï¾ä¶¼»á»Ø¹öÔÚËü֮ǰµÄËùÓÐÊÂÎñ£¬ÊÂÎñÊýΪ 0¡£
¿ÉÒÔÔÚÊÂÎñÖÐʹÓà SAVE TRAN Óï¾ä£¬ÊµÏÖ²¿·Ö»Ø¹öÊÂÎñ——ÔÚÏÔʾÊÂÎñÖеÄÌض¨Î»ÖÃÌí¼Ó SAVE TRAN savepoint Óï¾ä£¬ÔÚÐèҪʱ¿ÉÒÔʹÓà ROLLBACK TRAN savepoint Óï¾ä½«ÊÂÎñ»Ø¹öµ½ savepoint λÖá£
ÊÂÎñÊÇ¿ÉÒÔǶÌ×µÄ
begin tran
begin tran
select * from sysobjects
commit tran
select 1/0
commit tran
up
¿ÉÒÔÓÃÊÂÎñ±êÖ¾°É
Õâ¸öÎÊÌâ¼ÌÐø°ïUP
ÊÂÎï1»Ø¹ö£¬ÊÂÎï2¿Ï¶¨»á»Ø¹ö.
KGÐÖ
¿É²»¿ÉÒÔÔÙÊÂÎñ2 µÄ
Ïà¹ØÎÊ´ð£º
Êý¾ÝÒÔ´óÎļþµÄ·½Ê½£¬´æÔÚÊý¾Ý¿âÖС£Îļþ´óС²»Ò»Ö£¬Óм¸°ÙKµÄ£¬Ò²ÓÐ1G¶àµÄ¡£Îļþ¸ñʽ²»Í³Ò»£¬ÓÐZIP£¬RAR£¬DWG£¬WPSµÈµÈ¡£
ÏÖÔÚÏë°Ñ´óÎļþµ¼³öµ½¾ÖÓòÍøÄÚµÄһ̨µçÄԵĹ²ÏíÎļþ¼ÐÄÚ£¨ÎÞSQL SERVER£¬ÓÐÓû§Ãû¼ ......
ÎÒÒ»¸öÏîÄ¿ÀïÒªÁ¬½ÓSQLserverºÍORACLEÁ½¸öÊý¾Ý¿â£¬
·â×°ÀàÀïÃæÓõÄÊÇusing System.Data.OleDb; £¨±¾ÈËÓõÄÊÇC#£©
ÏëÄDzÙ×÷ÕâÁ½¸öÊý¾Ý¿âµÄÀà·â×°ÔÚÒ»Æ𣬠ÈçºÎ×öÄØ£¿ ÓÐûÄÄλÓÐдºÃÁ˵ģ¿
Óù¤³ ......
sqlserver2005 ½¨Á¢µÄÊý¾Ý¿â£¬ÓëÊÖ³Öpda´«ÊäÊý¾Ý£¬×î½üͻȻ³öÏÖÎÞ·¨´«µÝÊý¾ÝµÄÎÊÌ⣬pda¶ËÌáʾµÄ´íÎóʱoutofmemoryexception£¬µ«ÊÇpdaÉÏÃæµÄÈÝÁ¿Ã»ÓÐÎÊÌ⣬
sqlserverµÄÈÕ×ÓÉϵĴíÎóÈçÏ£º
ÈÕÆÚ 2010-1-25 14:45: ......
ÈçÌâ
Çóµ¼ÈëÊý¾ÝµÄ¸ñʽÉèÖÃ
¸÷λ°ïæ°¡
http://topic.csdn.net/u/20100125/18/4d088b16-5eb4-4359-a901-4854324bae9d.html?seed=344901856&r=62990257#r_62990257
µ¼ÈëµÄʱºò ˵³¤¶È²»¹»°É ¿ÉÊDZ ......