Excelµ¼ÈëSQLÊý¾Ý¿â³öÏÖµÄÎÊÌ⡾½â¾ö¡¿
¡¾ÎÊÌâÒ»
¡¿£ºÒѾܾø¶Ô OLE DB Ìṩ³ÌÐò 'MICROSOFT.JET.OLEDB.4.0' µÄÌØÊâ·ÃÎÊ¡£±ØÐëͨ¹ýÁ´½Ó·þÎñÆ÷À´·ÃÎÊ´ËÌṩ³ÌÐò¡£
¡¾·ÖÎö
¡¿£ºÕâÊÇÒòΪÄúµ±Ç°ÓÃÀ´·ÃÎÊÊý¾Ý¿âµÄµÇ¼µÄȨÏÞ²»¹»£¨È¨ÏÞÌ«µÍ£©¡£
¡¾½â¾ö
¡¿£ºÒªÃ´Äú»¹ÓÃsaµÇ¼£¬ÒªÃ´Ð޸ĵ±Ç°µÇ¼µÄȨÏÞ£¬²½ÖèÈçÏ£ºÆóÒµ¹ÜÀíÆ÷→°²È«ÐÔ→µÇ¼→ÕÒµ½ÄãËùÓõĵǼÃû→ÓÒ»÷"ÊôÐÔ"→·þÎñÆ÷½ÇÉ«→½«System AdministratorÑ¡Ïî´ò¹³→È·¶¨¼´¿É¡£
¡¾ÎÊÌâ¶þ
¡¿£ºOLE
DB Ìṩ³ÌÐò 'MICROSOFT.JET.OLEDB.4.0' ±¨´í¡£Ìṩ³ÌÐòδ¸ø³öÓйشíÎóµÄÈκÎÐÅÏ¢¡£ OLE DB
´íÎó¸ú×Ù£ÛOLE/DB Provider 'MICROSOFT.JET.OLEDB.4.0'
IDBInitialize::Initialize returned 0x80004005: Ìṩ³ÌÐòδ¸ø³öÓйشíÎóµÄÈκÎÐÅÏ¢¡££Ý¡£
¡¾·ÖÎö
¡¿£º
Ê×ÏÈÏȼì²éÒ»ÏÂÄãÓÃÀ´µ¼ÈëµÄExcel±íÊÇ·ñÒѾ´ò¿ª£¬Èç¹û´ò¿ªÁË£¬Çë¹Ø±ÕºóÖØÊÔһϡ£
»¹
ÊDz»ÐеĻ°£¬¼ÌÐøÍùÏ¿´¡£Èç¹ûÄãÓÃÀ´Êý¾Ý¿â²Ù×÷µÄsqlÓï¾äÊÇÓÃstriing×Ö·û´®±£´æµÄ£¬ÇÒÆäÖаüº¬×Å.xslÎļþµÄ´æ·Å·¾¶¡£ÄÇôÎÊÌâ¿ÉÄܾͳöÔÚÕâ
¸ö·¾¶ÉÏ¡£ÄúÊÇ·ñÖµÓÃÁËÒ»¸öб¸Ü"\"¡£Èç¹ûÖ»ÓÐÒ»¸öб¸ÜµÄ»°£¬ÔÚÔËÐÐÇ°£¬´íÎóÁбíÖлáÌáʾ"ÎÞ·¨Ê¶±ðתÒåÐòÁÐ"¡£Ò»µ©ÔËÐУ¬¸ÃÌáʾ¾Í»áÏûʧ£¬¿ÉÄÜÄú¾ÍÊÇ
ÒòΪÕâÑù¶øûÓÐ×¢Òâµ½Õâ´íÎó¡£
¡¾½â¾ö
¡¿£º°Ñµ¥Ð±¸Ü£¨"\"£© ¸Ä³É ˫б¸Ü£¨"\\"£© È磺e:\\aillo\\tt.xsl
Ïà¹ØÎĵµ£º
Ò»¡¢°´Ö¸¶¨·ûºÅ·Ö¸î×Ö·û´®£¬·µ»Ø·Ö¸îºóµÄÔªËظöÊý£¬·½·¨ºÜ¼òµ¥£¬¾ÍÊÇ¿´×Ö·û´®ÖдæÔÚ¶àÉÙ¸ö·Ö¸ô·ûºÅ£¬È»ºóÔÙ¼ÓÒ»£¬¾ÍÊÇÒªÇóµÄ½á¹û¡£
CREATE function Get_StrArrayLength
(
@str varchar(1024), --Òª·Ö¸îµÄ×Ö·û´®
@split varchar(10) --·Ö¸ô·ûºÅ
)
......
ÏÖÔÚÓÃMSSQLµÄµØ·½Ì«¶àÁË£¬Óкܶà×ö¼¼ÊõµÄ¸öÈ˵çÄÔÉÏÒ²°²×°SQLרҵ°æ£¬ÒòΪËüÓõĶ࣬µ«ÓõÄÈ˶¼ÖªµÀ£¬SQLÓиö³¬¼¶Óû§sa£¬´ËÓû§Ä¬ÈÏÇé¿öÏ£¬ËüÖ¸Åɸø¹Ì¶¨·þÎñÆ÷½ÇÉ« sysadmin£¬²¢²»ÄܽøÐиü¸Ä¡£Ò»°ã¶®µã°²È«ÎÊÌâµÄ¼¼ÊõÈËÔ±¶¼»á°ÑÕâ¸öÃÜÂëÐ޸ĵô£¬µ«ÐÞ¸ÄÔÙ¸´ÔÓµÄÃÜÂ붼²»ÊǾø¶Ô°²È«µÄ£¬Ò»Ð©±©Á¦ÆƽâÈí¼þ£¬²ËÄñ¶¼»áÓá£
ÄÇ ......
Êý¾Ý¿â±¸·Ý ×÷ÒµÖеÄSqlÓï¾ä£º
DECLARE @strPath NVARCHAR(200)
set @strPath = convert(NVARCHAR(19),getdate(),120)
set @strPath = REPLACE(@strPath, ':' , '_')
set @strPath = REPLACE(@strPath, '-' , '_')
set @strPath = REPLACE(@strPath, ' ' , '_')
set @strPath = 'F:\Êý¾Ý¿â±¸·Ý\' + myData_'+@s ......
×ֺţº ´ó´ó ÖÐÖРСС
Ëø¶¨Êý¾Ý¿âµÄÒ»¸ö±í
SELECT * from table WITH (HOLDLOCK)
×¢Òâ: Ëø¶¨Êý¾Ý¿âµÄÒ»¸ö±íµÄÇø±ð
SELECT * from table WITH (HOLDLOCK)
ÆäËûÊÂÎñ¿ÉÒÔ¶ÁÈ¡±í£¬µ«²»ÄܸüÐÂɾ³ý
SELECT * from table WITH (TABLOCKX)
ÆäËûÊÂÎñ²»ÄܶÁÈ¡±í,¸üкÍɾ³ý
SELECT Óï¾äÖГ¼ÓË ......