sqlserver Êý¾Ý¿â»Ö¸´µÄÎÊÌâ
ÏÖÔÚÓÉÓÚÐÂÊÖÎó²Ù×÷£¬ÏÖÔÚֻʣÏÂÈÕÖ¾ÎļþÁË£¬ÇëÎʸßÊÖÄܲ»Äָܻ´£¬Ð»Ð»£¡
SQL code:
ÊDz»ÊÇÍêÕû»Ö¸´Ä£Ê½??
ʹÓÃLog Explorer²é¿´ºÍ»Ö¸´Êý¾Ý
Log Explorer 4.1.¿ÉÓÃÓÚSQL Server2005µÄÈÕÖ¾²é¿´¹¤¾ß
ÏÂÔصØÖ·:
http://download.csdn.net/source/620271
ʹÓ÷½·¨:
´ò¿ªLog Explorer -> Attach Log File -> Ñ¡ÔñSQL Server·þÎñÆ÷ºÍµÇ½·½Ê½ -> Connect ->
ÔÚDatabase NameÖÐÑ¡ÔñÊý¾Ý¿â -> Attach-> ×óÃæ¶Ô»°¿òÖÐBrowse-> View Log-> ¾Í¿ÉÒÔ¿´µ½log¼Ç¼ÁË
Ïë»Ö¸´µÄ»°: ÓÒ¼üLog¼Ç¼ Undo Transation-> Ñ¡Ôñ±£´æÎļþÃûºÍ·¾¶-> È»ºó´ò¿ª¸ÃÎļþµ½²éѯ·ÖÎöÆ÷ÀïÖ´ÐÐ
T-sql´úÂë¾Í¿ÉÒÔÁË
ÀýÈç Èç¹ûLogÊÇdelete table where ...µÄ»°,Éú³ÉµÄÎļþ´úÂë¾ÍÊÇinsert table ....
È»ºó½«´Ëinsert tableµÄ´úÂë·Åµ½²éѯ·ÖÎöÆ÷ÀïÖ´ÐÐ.¾Í¿ÉÒÔ»Ö¸´Êý¾Ý.
----------------------------------------------------------------------
--ÈçºÎ»Ö¸´±»delete/updateµÄÊý¾Ý
----------------------------------------------------------------------
1¡¡Á¬½Óµ½±»É¾³ýÊý¾Ý¿âµÄDb
´ò¿ªlog explorer Ñ¡Ôñ "file"->"attach log file"->Ñ¡Ôñ·þÎñÆ÷ºÍµÇ½·½Ê½->"connect"->Ñ¡Ôñ"Êý¾Ý¿â"->"attach"
2 ²é¿´ÈÕÖ¾
ÔÚ×óÃæ²Ù×÷ÏîÄ¿µÄ¶Ô»°¿òÖÐÑ¡Ôñ"browse"ÏîÄ¿->"view log"->¾Í¿ÉÒÔ¿´µ½µ±Ç°µÄLog¼Ç¼ÁË
3 »Ö¸´Êý¾Ý
ÓÒ¼üijһÌõlog¼Ç¼,Ñ¡Ôñ"undo transation"->"Ñ¡Ôñ±£´æÎļþÃûºÍ·¾¶"->È»ºó´ò¿ª¸ÃÎļþµ½²éѯ·ÖÎ
Ïà¹ØÎÊ´ð£º
ÇëÎÊһϣ¬ÍâÍøÁ½Ì¨SQLSERVERʵÀýÊý¾Ý´«Ê䣬ÓÐûÓвÉÓÃÊý¾ÝѹËõºÍ¼ÓÃÜ¡£Ñ¹Ëõ±ÈÊǶàÉÙ£¬¼ÓÃÜÊÇʲô¼ÓÃÜËã·¨£¿Ïà¹ØÎĵµÄÄÀï¿ÉÒÔÕÒµ½£¿Ð»Ð»
ÎÒÒ²ÏëÖªµÀ£¡¹Ø×¢´ËÌù£¡
¹Ø×¢¡«¡«
Êý¾Ý¿â´óÅ£¶¼ÄÄÈ¥ÁË°¡£¿
......
ÊÇÕâÑùµÄ£¬ÎÒÓÃÊÇODBCÊý¾ÝÔ´Á¬½Ó·þÎñÆ÷µÄÊý¾Ý¿â£¬ÏÖÔÚÎÒ¾õµÃºÜÂé·³£¬ÒòΪҪΪÿÈç»úÌí¼Ó¶ÔÓ¦µÄÊý¾ÝÔ´£¬Ïë°ÑËû¸Ä³ÉADO·½·¨À´·ÃÎÊ·þÎñÆ÷µÄÊý¾Ý¿âÄÜʵÏÖÂð£¿ÒªÔõôд¡£
±ÈÈç·þÎñÆ÷ÀïÓжþ¸öÊý¾Ý¿âdata1 ºÍdata2£¬¿Í»§ ......
Êý¾ÝÒÔ´óÎļþµÄ·½Ê½£¬´æÔÚÊý¾Ý¿âÖС£Îļþ´óС²»Ò»Ö£¬Óм¸°ÙKµÄ£¬Ò²ÓÐ1G¶àµÄ¡£Îļþ¸ñʽ²»Í³Ò»£¬ÓÐZIP£¬RAR£¬DWG£¬WPSµÈµÈ¡£
ÏÖÔÚÏë°Ñ´óÎļþµ¼³öµ½¾ÖÓòÍøÄÚµÄһ̨µçÄԵĹ²ÏíÎļþ¼ÐÄÚ£¨ÎÞSQL SERVER£¬ÓÐÓû§Ãû¼ ......
asp.net²éѯSqlServer2005ÖÐtextÀàÐÍÊý¾Ý³£³£¶ªÊ§£¬Ìí¼ÓÊý¾Ýµ½textÀàÐÍÖп´Ò³ÃæÉÏ¿ÉÒÔ£¬ÓиöÒ»Á½Ì죬¾Í¿ÉÄÜ»á³öÏÖtext
Êý¾Ý´æµÄÊý¾ÝȱÉÙÒ»²¿·Ö£¬ÎªÊ²Ã´°¡£¡Çë´ó¼Ò°ï°ïæ°¡£¡
Óöþ½øÖÆ´æ·ÅËãÁË
²»Ã÷°×£¬ÄÜ×Ðϸ ......
±ÈÈ磺
ÊÂÎï1 START
¡£¡£¡£¡£¡£¡£
ÊÂÎï2 START
²åÈëÒ»Õűí
ÊÂÎï2 END
¡£¡£¡£¡£¡£¡£
&n ......