°²×°SQL 2000¹ÒÆðµÄ½â¾ö°ì·¨
²½ÖèÊÇ£º
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ÔÚ°²×°½ø³ÌÆô¶¯Ê±¾Í·¢ÏÖÕâ¸ö¼üÖµ´æÔÚ£¬Ëü¾ÍÈÏΪÉÏÒ»¸ö°²×°³ÌÐòûÓÐÍê³É£¬´Ó¶ø¾Ü¾ø¼ÌÐø×ÔÉíµÄ°²×°½ø³Ì¡£¶ø°´ÕÕµÀÀí£¬ÈκÎÒ»¸ö¸Äд¹ý´Ë¼üÖµµÄ³ÌÐò¶¼Ó¦µ±ÔÚ½áÊø»òÕßϵͳÖØÐÂÆô¶¯µÄʱºò½«Õâ¸ö¼üֵɾ³ý£¬µ«Èç¹ûÓÉÓÚÖÖÖÖÔÒòÕâ¸ö²Ù×÷ûÓб»½øÐеĻ°£¬ÄÇôSQL Server2000×ÔÈ»»áµÃ³ö´íÎóµÄ½áÂÛ¡£
°ì·¨2£º
Ôڵ㿪ʼ——ÔËÐУ¬ÔÚÔËÐд°¿ÚÊäÈëmsconfigÃüÁÔò
Ïà¹ØÎĵµ£º
ÏÂÃæÊÇSql Server ºÍ Access ²Ù×÷Êý¾Ý¿â½á¹¹µÄ³£ÓÃSql£¬Ï£Íû¶ÔÄãÓÐËù°ïÖú¡£
н¨±í£º
create table [±íÃû]
(
[×Ô¶¯±àºÅ×Ö¶Î] int IDENTITY (1,1) PRIMARY KEY ,
[×Ö¶Î1] nVarChar(50) default \'ĬÈÏÖµ\' null ,
[×Ö¶Î2] ntext null ,
[×Ö¶Î3] datetime,
[×Ö¶Î4] money null ,
[×Ö¶Î5] int default 0,
[×Ö¶Î6] De ......
1.Ò»µÀSQLÓï¾äÃæÊÔÌ⣬¹ØÓÚgroup by
±íÄÚÈÝ£º
2005-05-09 ʤ
2005-05-09 ʤ
2005-05-09 ¸º
2005-05-09 ¸º
2005-05-10 ʤ
2005-05-10 ¸º
2005-05-10 ¸º
Èç¹ûÒªÉú³ÉÏÂÁнá¹û, ¸ÃÈçºÎдsqlÓï¾ä?
ʤ ¸º
2005-05-09 2 2
2005-05-10 1 2
------------------------------- ......
sqlµ¼³öµ½Excel
´ÓExcelÎļþÖÐ,µ¼ÈëÊý¾Ýµ½SQLÊý¾Ý¿âÖÐ,ºÜ¼òµ¥,Ö±½ÓÓÃÏÂÃæµÄÓï¾ä:
/*===================================================================*/
--Èç¹û½ÓÊÜÊý¾Ýµ¼ÈëµÄ±íÒѾ´æÔÚ
insert into ±í select * from
OPENROWSET('MICROSOFT.JET.OLEDB.4.0'
,'Excel 5.0;HDR=YES;DATABASE=c:\test.xls',sheet1 ......
SQL ServerʹÓñê×¼B-Ê÷´æ´¢ÐÅÏ¢¡£
Ë÷ÒýÖмä²ã´ÎÊýÓɱíµÄÐÐÊýºÍË÷ÒýÐеĴóС¾ö¶¨¡£ÈôʹÓÃÒ»¸ö½Ï³¤µÄ¼ü£¨key£©À´´´½¨Ë÷Òý£¬Ò»¸ö·ÖÒ³ÉϾÍÖ»ÄÜÈÝÄɽÏÉÙµÄÌõÄ¿£¬¼´Ê÷µÄ²ã´Î¿ÉÄÜ»áÔö¶à¡£
¶ÔÓÚÈκÎË÷Òý£¨ÎÞÂÛÊǾۼ¯»ò·Ç¾Û¼¯Ë÷Òý£©£¬Ë÷ÒýB-Ê÷µÄÒ¶¼¶½Úµã°üº¬Ë÷ÒýµÄ¼üÖµ£¬²¢¶¼°´ÕÕ¼üµÄ˳ÐòÅÅÁС£¾Û¼¯ºÍ·Ç¾Û¼¯Ë÷ÒýµÄÇø±ðÔÚÓÚÒ¶¼¶½Úµ ......