SAP Business One´Ó2007Éý¼¶µ½8.82£¬ÏÖÔÚÓÖÒªÉý¼¶µ½9.3£¬ÒÔÊÊÓ¦·þÎñÆ÷ϵͳÉý¼¶ºÍMSSQLÉý¼¶ÒªÇó£»
°´ÕÕ˵Ã÷£¬±ØÐëÏÈÉý¼¶µ½9.1£¬ÔÙÉý¼¶µ½9.3
Éý¼¶9.1²½Ö裬
1¡¢¸½¼ÓÊý¾Ý¿â£¬
2¡¢ÔËÐÐÉý¼¶°üÖÐupgrade.exe
3¡¢Ñ¡ÔñÓïÑÔµ¯´°£¬Ä¬ÈϼòÌåÖÐÎÄ£¬Ö±½Óµã»÷ÏÂÒ»²½£»
4¡¢Ñ¡ÔñÉý¼¶Ç°µÄ²âÊÔºÍÉý¼¶£¬µã»÷ÏÂÒ»²½
5¡¢¹´Ñ¡Ê¹ÓÃÉÏ´ÎÏòµ¼ÔËÐеÄÉèÖ㬵ã»÷ÏÂÒ»²½£»£¨·þÎñÆ÷Ãû³Æ£ºlocalhost£»¶Ë¿Ú£º30000£»Óû§£ºB1SiteUser£»ÃÜÂ룺×Ô¼ºµÚÒ»´Î°²×°Ê±É趨£©
6¡¢ÒÑ´ÓÏÈÇ°µÄÅäÖÃÎļþ¶ÁÈ¡£¬Ö±½Óµã»÷ÏÂÒ»²½£»
7¡¢ÊäÈëÓû§B1SiteUserµÄÃÜÂ룬ÏÂÒ»²½£»
8¡¢Ðí¿ÉÖ¤·þÎñÆ÷Ãû³Ælocalhost£¬Êý¾Ý¿â·þÎñÆ÷ÀàÐÍMSSQL_20XX£»·þÎñÆ÷Ãû³Æ£ºÄ¬Èϱ¾»ú¼ÆËã»úÃû³Æ£»¿ÉÒÔÖ±½Óµã»÷ÏÂÒ»²½£»
9¡¢Ñ¡Ôñ·þÎñÆ÷×é¼þ£¬Databases£¬ÓÒ²àÏÔʾÕÒµ½×îÔç°æ±¾¡£ÇÒĬÈϹ´Ñ¡£»ÆäËü¹´Ñ¡¿ÉÒÔÈ¥³ý£»ÏÂÒ»²½
10¡¢¾ÍÐ÷£¬Ñ¡ÔñÉý¼¶µÄÊý¾Ý¿â£¬ÏÂÒ»²½£»
¿ªÊ¼²âÊÔ£¬²âÊÔÍêÊý¾Ý¿âÅԱ߻á³öÏÖ±¨¸æ£¬ÈôÓдíÎ󣬲鿴ÈÕÖ¾£¬¸ù¾ÝÈÕÖ¾µ½ÆóÒµ¹ÜÀíÆ÷ÀïÐ޸ģ»Ã»ÓдíÎ󣬴ò¿ªÏêÇéÐÅÏ¢£¬¹´Ñ¡¾¯¸æÏ·µ»Øºó£¬µã»÷¡°Éý¼¶¡±£¬¿ªÊ¼Éý¼¶£»
**********
OCFW³öÏÖÖظ´ÎÊÌ⣻OMRCÖظ´ÎÊÌ⣬POR1¡¢RDR1³öÏÖ2491ÎÊÌ⣬ÆäÖкóÈý¸ö¶¼ÊÇ×ֶμǼ³¤¶È²»ºÏÒªÇó¡£½Øȡʱ»á²úÉúÖظ´¡£Éý¼¶Ç°ºó²é¿´Éè¼Æ±í½á¹¹ËµÃ÷ȷʵÈç´Ë£¬Éý¼¶Ç°ºó¸ö±ð×Ö¶ÎÉè¼Æ³¤¶È²»Ò»Ñù¡£
һЩ³£Óò鿴ÃüÁ н¨²éѯºó
1¡¢Áгö±íOMRCÖÐËùÓг§ÉÌÃû×Ö£¨FirmName£©³¤¶È´óÓÚ30×Ö·ûµÄ£¬È»ºó±£´æΪÎļþ£¬ÒÔ±¸ÐÞ¸ÄÇ°ºó²Î¿¼ÒÔ¼°Éý¼¶ºó»¹Ô SELECT *  FROM omrc WHERE  LEN(FirmName)>30
2¡¢ÏÔʾpor1±íÖÐu_cgtk×ֶμǼ³¤¶È³¬¹ý10µÄ¼Ç¼£¬ÒÔnum,DOCENTRY,LineNum,u_cgtjÁÐ±í£¬È»ºó±£´æΪÎļþ SELECT ROW_NUMBER() OVER(PARTITION BY DOCENTRY ORDER BY  LineNum) as num,DOCENTRY,LineNum,u_cgtk FROM por1  WHERE  LEN(u_cgtk)>10 
ÏÔʾpor1±íÖÐu_zzyh×ֶμǼ³¤¶È³¬¹ý50µÄ¼Ç¼£¬ÒÔnum,DOCENTRY,LineNum,u_zzyhÁÐ±í£¬È»ºó±£´æΪÎļþ SELECT ROW_NUMBER() OVER(PARTITION BY DOCENTRY ORDER BY  LineNum) as num,DOCENTRY,LineNum,u_zzyh FROM por1  WHERE  LEN(u_zzyh)>50 
RDR1ͬÑù²Ù×÷£»
3¡¢ Áгöu_cgtk×Ö¶ÎËùÓмǼ³¤¶È´óÓÚ10µÄ£¬²¢ÅÅÐò£¬±êºÅ£¬È»ºó±£´æΪÎļþ SELECT ROW_NUMBER() OVER(PARTITION BY DOCENTRY ORDER BY  LineNum) as num,DOCENTRY,LineNum,u_cgtk FROM rdr1  WHERE  LEN(u_cgtk)>10
4¡¢ºóÃæÓëÇ°Ã泧ÉÌÃû³ÆÓÐÖظ´µÄ£¬ÔÚÇ°Ãæ¼Ó×Ö·û1 update  omrc  set  FirmName=¡¯1¡¯+FirmName where FirmName  in (select  FirmName  from omrc  group  by  FirmName   having  count(FirmName) > 1) and FirmCode not in (select min(FirmCode) from  omrc  group by FirmName  having count(FirmName )>1)
Èç¹ûÒª¾¡Á¿±£³ÖÓëÔ¶À´ÄÚÈÝ»ù±¾Ò»Ö£¬ÐÞ¸Ä×¢ÒâÏîÄ¿ÈçÏ£º
a¡¢ÄÚÈÝΪ¿Õ£¨³¤¶ÈΪ0£©µÄ²»ºÏ¸ñ£¬ÒªÐÞ¸Ä
b¡¢³¤¶È³¬¹ý30×Ö·ûµÄ²»ºÏ¸ñ£¬SQLÊý¾Ý¿âÖÐÖÐÎĹæÔòÏ£¬°ë½ÇÈ«½Ç×Ö·ûÒ»ÊÓͬÈÊ£»
c¡¢Ãû³ÆÖظ´²»ºÏ¸ñ£»Öظ´³¬¹ý2´ÎÒÔÉϵÄÔõô°ì£¬ÒÔ²éѯ×î¶àµÄ10´ÎΪÀý£¬ÒÀ´Î·Ö±ð×·¼ÓÐòÊý¸ÄÃû£¬ÈçÏÂ
update  omrc  set  FirmName=FirmName+''10'' where FirmName  in (select  FirmName  from omrc  group  by  FirmName   having  count(FirmName) =10) and FirmCode  in (select max(FirmCode) from  omrc  group by FirmName  having count(FirmName )=10) update  omrc  set  FirmName=FirmName+''9'' where FirmName  in (select  FirmName  from omrc  group  by  FirmName   having  count(FirmName) =9) and FirmCode  in (select max(FirmCode) from  omrc  group by FirmName  having count(FirmName )=9) update  omrc  set  FirmName=FirmName+''8'' where FirmName  in (select  FirmName  from omrc  group  by  FirmName   having  count(FirmName) =8) and FirmCode  in (select max(FirmCode) from  omrc  group by FirmName  having count(FirmName )=8) update  omrc  set  FirmName=FirmName+''7'' where FirmName  in (select  FirmName  from omrc  group  by  FirmName   having  count(FirmName) =7) and FirmCode  in (select max(FirmCode) from  omrc  group by FirmName  having count(FirmName )=7) update  omrc  set  FirmName=FirmName+''6'' where FirmName  in (select  FirmName  from omrc  group  by  FirmName   having  count(FirmName) =6) and FirmCode  in (select max(FirmCode) from  omrc  group by FirmName  having count(FirmName )=6) update  omrc  set  FirmName=FirmName+''5'' where FirmName  in (select  FirmName  from omrc  group  by  FirmName   having  count(FirmName) =5) and FirmCode  in (select max(FirmCode) from  omrc  group by FirmName  having count(FirmName )=5) update  omrc  set  FirmName=FirmName+''4'' where FirmName  in (select  FirmName  from omrc  group  by  FirmName   having  count(FirmName) =4) and FirmCode  in (select max(FirmCode) from  omrc  group by FirmName  having count(FirmName )=4) update  omrc  set  FirmName=FirmName+''3'' where FirmName  in (select  FirmName  from omrc  group  by  FirmName   having  count(FirmName) =3) and FirmCode  in (select max(FirmCode) from  omrc  group by FirmName  having count(FirmName )=3) update  omrc  set  FirmName=FirmName+''2'' where FirmName  in (select  FirmName  from omrc  group  by  FirmName   having  count(FirmName) =2) and FirmCode  in (select max(FirmCode) from  omrc  group by FirmName  having count(FirmName )=2)
µÚ10¸öÃû³Æºó×·¼Ó10£¬µÚ9¸öÃû³Æºó×·¼Ó9£¬ÒÀ´Î×·¼Ó£¬Ö±µ½Ã»ÓÐÖظ´
5¡¢
por1±íÖÐËùÓÐu_cgtk×ֶγ¤¶È´óÓÚ10µÄ¼Ç¼£¬¿ÉÒÔ·Ö±ð½ØÈ¡£¬»òÕß·Ö±ðÐ޸ģ¬»òÕßÒ»Ö¸ÄΪ¡®Ä³×Ö·û´®¡¯£»
rdr1±íÖÐËùÓÐu_cgtk×ֶγ¤¶È´óÓÚ10µÄ¼Ç¼£¬¿ÉÒÔ·Ö±ð½ØÈ¡£¬»òÕß·Ö±ðÐ޸ģ¬»òÕßÒ»Ö¸ÄΪ¡®Ä³×Ö·û´®¡¯£»
Èç
update  por1  set  u_cgtk=''ÉÐÇ·9Íò1'' WHERE  LEN(u_cgtk)>10 update  rdr1  set  u_cgtk=''ÈÕ·¢´ó²Æ'' WHERE  LEN(u_cgtk)>10
rdr1±íÖÐËùÓÐu_cgtkÄÚÈÝΪ¡°2020Äê12ÔÂ25ÈÕ¡±¼Ç¼£¬Í³Í³¸ÄΪ''2020.12.25''£¨»òÕß''2020Äê12ÔÂ25''£© update  rdr1  set  u_cgtk=''2020.12.25''  WHERE  u_cgtk=''2020Äê12ÔÂ25ÈÕ''
¶þ¡¢9.1Éý¼¶9.3£»
¸½¼ÓÉý¼¶ºóµÄ9.1Êý¾Ý¿â£¬ÔËÐÐsetup£¬Õâ¸ö±È½Ï¼òµ¥ |