ÈçÌâ
Çóµ¼ÈëÊý¾ÝµÄ¸ñʽÉèÖÃ
¸÷λ°ïæ°¡
http://topic.csdn.net/u/20100125/18/4d088b16-5eb4-4359-a901-4854324bae9d.html?seed=344901856&r=62990257#r_62990257
µ¼ÈëµÄʱºò ˵³¤¶È²»¹»°É ¿ÉÊDZíµÄ½á¹¹Ê½Ò»ÑùµÄ Ôõô¾Í²»¹»ÁËÄØ
·¢µ½ÁíÍâÒ»¸öÌû×ÓÁË ÓбíµÄ½á¹¹ ºÍ һЩÊý¾Ý
µÈ´ý·· ......
ÔÚmysqlÀïÓжÁËø дËø
ÊÇÕâÑùÉèÖõÄ
lock tables a write££££££Ð´Ëø
------ÄãµÄsqlÓï¾ä
unlock tables
ÏëÖªµÀ ÔÚsqlserver2005ÀïÓÐûÓжÔÓ¦µÄÓï¾äд£¿ £¨Ò²¾ÍÊÇ ÈçºÎÔÚsqlserverÀïʵÏÖÕâ¸ö
дËø »òÕ߶ÁËø ÈçºÎ½â¿ªËøunlock tables£©
SQL ......
±ÈÈ磺
ÊÂÎï1 START
¡£¡£¡£¡£¡£¡£
ÊÂÎï2 START
²åÈëÒ»Õűí
ÊÂÎï2 END
¡£¡£¡£¡£¡£¡£
È»ºó³ÌÐò±Àµô£¬ÊÂÎï1»Ø¹ö£¬²»¹ýÓÖÏëÌá½»ÊÂÎï2µÄÊý¾Ý¡£
ÊÂÎï1 END
Óа취ʵ ......
ÎÒ°²×°µÄ08°æ±¾ÊÇEnterprise£¬µ±ÎÒÔ¶³ÌÁ¬½Óʱ¿ÉÒÔ½øÈëµÇ½Óû§£¬µ«¾ÍÊDZéÀú²»ÁËÊý¾Ý¿â£¨Ìáʾ¸ÃÓû§ÔÚµ±Ç°°²È«ÉèÖÃϲ»¿ÉÒÔ·ÃÎÊÄ¿µÄÊý¾Ý¿â£©£¡
È»¶øÎÒÈ¥ÆäËüµçÄÔÉÏÓøÃÓû§ÊÇ¿ÉÒԵǼºÍ±éÀúµÄ£¬ËµÃ÷¸ÃÓû§µÄȨÏÞÊÇÓеġ£ÎÒfirewallÒ²¿ªÁË1433µÄ¶Ë¿Ú tcp/ipÒ²ÉèÖÃÁË£¬½á¹û»¹ÊDz»ÐУ¡
  ......
ÓÐһ̨Êý¾Ý¿â·þÎñÆ÷£¬¿Í»§¶ËʹÓÃADO.NETÁ¬½Ósql£¬Ê¹ÓÃExecuteScalarÖ´ÐÐSQL INSERTÓï¾ä£¬È»ºó¿Í»§¶Ëˢв»Äܲéѯµ½ÐÂINSERTµÄÊý¾Ý£¬¹ý10Ãë×óÓÒ²ÅÄܲ鵽ÐÂÊý¾Ý
ʲôÔÒò
Äã×öÁË»º´æÂð£¿
û×ö»º´æ
Ôõô»áÄØ£¡ ¿´¿´ÊÇÍøËÙµÄÎÊÌâÁË
¾ÖÓòÍø ÍøÂçÕý³£
»º´æ »òÕß¾ÍÊÇÄãÓÐÒµÎñÂß¼¿ØÖƵģ¨ÀýÈç²åÈëºóÑé֤ϡ£¡£¡££©
......
һ̨SqlServer·þÎñÆ÷ winxp
һ̨oracle·þÎñÆ÷ windows 2003
ÏëÔÚoracle·þÎñÆ÷ÀûÓÃ͸Ã÷Íø¹ØÁ¬½Óµ½SqlServer¡£
ÅäÖÃ͸Ã÷Íø¹ØµÄ²ÎÊýÎļþinitXXXXX.oraµÄʱºò£¬
1¡¢ÉèÖà HS_FDS_TRANSACTION_MODEL = TWO_PHASE_COMMIT
SQL>select * from tt@msql;
Ö´ÐÐselectÓï¾äʱ± ......