°²×°SQL 2000¹ÒÆðµÄ½â¾ö°ì·¨
½ñÌì°²×°sql2000£¬ÀÏÊdzö¹ÒÆðµÄ´íÎó¡£ËùÒÔÕÒÁËÕÒ¿´¼ûÁËÕâ¸ö·½·¨¡£
ÔÌûµØÖ·£ºhttp://hi.baidu.com/xpyi/blog/item/fa1fd3af254d32f2fbed500d.html
²½ÖèÊÇ£º
1£©Ìí¼Ó/ɾ³ý³ÌÐòÖг¹µ×ɾ³ýsql server¡£
2£©½«Ã»ÓÐɾ³ýµÄsql serverĿ¼Ҳɾ³ýµô¡£
3£©´ò¿ª×¢²á±í±à¼Æ÷£¬ÔÚHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session ManagerÖÐÕÒµ½PendingFileRenameOperationsÏîÄ¿£¬²¢É¾³ýËü¡£ÕâÑù¾Í¿ÉÒÔÇå³ý°²×°ÔݹÒÏîÄ¿¡£
4£©É¾³ý×¢²á±íÖиúsql serverÏà¹ØµÄ¼ü¡£
Æäʵ¹À¼ÆÖ»Òª×öµÚ3²½¾Í¿ÉÒԸ㶨£¬ÕâÑù¾Í¿ÉÒÔÇå³ý°²×°ÔݹÒÏîÄ¿¡£×Ô¼ºÊÇÏÈ×ßÁË1£¬2£¬4£¬×îºó×öÁË3²Å¸ã¶¨¡£ËùÒÔ¹À¼Æ3²ÅÊÇ×î¹Ø¼üµÄ¡£
Èç¹ûÉÏÃ滹ÊDz»Äܵõ½½â¾ö
ÄÇôÔÙÊÔÏÂÏÂÃæµÄ:
½«ÒÔÏÂÁ½¸ö´Ó×¢²á±íÖÐɾ³ý£¬Ò»¶¨¿ÉÒÔ½â¾öSQL¹ÒÆðÎÊÌ⣺
Ò»¡¢¿ªÊ¼\ÔËÐÐ\ÊäÈëregedit»Ø³µ
+HKEY_LOCAL_MACHINE
+SYSTEM
+CurrentControlSet
+Control
+Session ManagerϵÄFileRenameOperationsɾµô
¶þ¡¢+HKEY_LOCAL_MACHINE
+SOFTWARE
+Microsoft
+Windows
+CurrentVersion
+Setup
+ExceptionComponentsϵĶ«Î÷È«²¿É¾µôÈ磺
{077ACEC7-979C-40AB-9835-435BA1511E0D}
{30C7234B-6482-4A55-A11D-ECD9030313F2}
{3FDF25EE-E592-4495-8391-6E9C504DAC2B}
{60204BB3-7078-4F70-8F69-68297621941C}......
×ÜÖ®Óм¸Ïî,¾Íɾ¼¸Ïî,ɾµôºóÖØÆô,ÔÙ×°SQL Server,¾Í²»»áÌáʾÓйÒÆðÁË¡£
°²×°SQL Server2000µÄʱºò£¬°²×°³ÌÐòÌáʾ°²×°³ÌÐò±»¹ÒÆð£¬ÈÃÖØÐÂÆô¶¯µçÄÔ£¬µ«¼´±ãÊÇÖØÐÂÆô¶¯ÁËÔٴΰ²×°£¬SQL Server2000µÄ°²×°³ÌÐòÒÀ¾ÉÌáʾÕâ¸ö´íÎ󡣿´À´ÖØÆð²¢²»Äܽâ³ý±»¹ÒÆðµÄ°²×°³ÌÐò¡£²éÔÄÁË×ÊÁÏ£¬µÃÖªÒª½â¾öÕâ¸öÎÊÌâÐèҪɾ³ý×¢²á±íHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session ManagerϵÄPendingFileRenameOperations×Ó¼ü¡£
°´ÕÕÃû³ÆÀ´Àí½â£¬HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session ManagerÓ¦¸Ã´æ·ÅµÄÊǵ±Ç°ÏµÍ³»á»°µÄ¿ìÕÕ£¬¶øPendingFileRenameOperations¼Ç¼µÄÊÇÒ»¸öδ³É¹¦½øÐеÄÎļþ¸üÃû²Ù×÷£¬SQL Server2000ÔÚ°²×°Ê±¿ÉÄÜ»áʹÓÃÕâ¸ö¼üÖµ£¬¼Ç¼ÔÚ°²×°¹ý³ÌÖжÔÁÙʱÎļþµÄ²Ù×÷£¬Èç¹ûSQL Server2000ÔÚ°²×°½ø³ÌÆô¶¯Ê±¾Í·¢ÏÖÕâ¸ö¼üÖµ´æÔÚ£¬Ëü¾ÍÈÏΪÉÏÒ»¸ö°²×°³ÌÐòûÓÐÍê³É£¬´Ó¶ø¾Ü¾ø¼ÌÐø×ÔÉíµÄ°²×°½ø³Ì¡£¶ø°´ÕÕµÀÀí£¬ÈκÎÒ»¸ö¸Äд¹ý´Ë¼üÖµµÄ³ÌÐò¶¼Ó¦µ±ÔÚ½áÊø»òÕßϵͳÖØÐÂÆô¶¯µÄʱºò½«Õâ¸ö¼üֵɾ³ý£¬µ«Èç¹ûÓÉÓÚÖÖÖÖÔÒòÕâ¸ö²Ù×
Ïà¹ØÎĵµ£º
ϵͳ»·¾³£ºWindows 7
Èí¼þ»·¾³£ºVisual C++ 2008 SP1 +SQL Server 2005
±¾´ÎÄ¿µÄ£º±àдһ¸öº½¿Õ¹ÜÀíϵͳ
ÕâÊÇÊý¾Ý¿â¿Î³ÌÉè¼ÆµÄ³É¹û£¬ËäÈ»³É¼¨²»¼Ñ£¬µ«ÊÇ×÷ΪÎÒÓÃVC++ ÒÔÀ´±àдµÄ×î´ó³ÌÐò»¹ÊÇ´«µ½ÍøÉÏ£¬ÒÔ¹©²Î¿¼¡£ÓÃVC++ ×öÊý¾Ý¿âÉè¼Æ²¢²»ÈÝÒ×£¬µ«Ò²²»ÊDz»¿ÉÄÜ¡£ÒÔÏÂÊÇÎҵijÌÐò½çÃ棬ºóÃæ ......
SELECT EMP_ID,EMP_NO,LOGIN_NAME,EMP_NAME,SITE_CODE,DEPT_CODE,
JOB_DESC,HRMS_DEPT_CODE,MAIL_ACCOUNT,EXT_NO ,
(case when SITE_CODE='QCS' then 1 else 2 end) site
from dbo.AM_EMPLOYEE
WHERE ACTIVE = 'Y' AND EXT_NO = '6006'
order by site
ÏëÒªÔÚÔ±¹¤±íÖвé³öµç»°ºÅΪ6006µÄÔ±¹¤µÄÓ¢ÎÄÃûÀ´×÷ΪϵͳҳÃæÉ ......
create PROC [dbo].[P_viewPage_A]
/*
¸ßЧͨÓ÷ÖÒ³´æ´¢¹ý³Ì(Ë«Ïò¼ìË÷)
¾´¸æ£ºÊÊÓÃÓÚµ¥Ò»Ö÷¼ü»ò´æÔÚΨһֵÁеıí»òÊÓͼ
ps:SqlÓï¾äΪ8000×Ö½Ú,µ÷ÓÃʱÇë×¢Òâ´«Èë²ÎÊý¼°sql×ܳ¤¶È²»Òª³¬¹ýÖ¸¶¨·¶Î§
*/
@TableName VARCHAR(200), --±íÃû
@FieldList VARCHAR(2000), --ÏÔʾÁÐà ......
´æ´¢½ø³Ì¾ÍÊÇ×÷Ϊ¿ÉÖ´ÐжÔÏó´æ·ÅÔÚÊý¾Ý¿âÖеÄÒ»¸ö»ò¶à¸öSQLÃüÁî¡£
¶¨Òå×ÜÊǺܳéÏó¡£´æ´¢½ø³ÌÆäʵ¾ÍÊÇÄÜÍê³ÉÒ»¶¨²Ù×÷µÄÒ»×éSQLÓï¾ä£¬Ö»²»¹ýÕâ×éÓï¾äÊÇ·ÅÔÚÊý¾Ý¿âÖеÄ(ÕâÀïÎÒÃÇ̸ֻSQL SERVER)¡£Èç¹ûÎÒÃÇͨ¹ý´´½¨´æ´¢½ø³ÌÒÔ¼°ÔÚASPÖе÷Óô洢½ø³Ì£¬¾Í¿ÉÒÔ±ÜÃ⽫SQLÓï¾äͬASP´úÂë»ìÔÓÔÚÒ»Æð¡£ÕâÑù×öµÄºÃ´¦ÖÁÉÙÓÐÈý¸ö£º
µÚÒ»¡ ......