ÈçºÎÉý¼¶sql server 2000ÖÁ2005
´Ósql server 2000Éý¼¶µ½2005ÓÐ5ÖÖ·½·¨:
lÖ±½ÓÉý¼¶
lÀûÓÃdetach/attach¹¦ÄÜÒƶ¯sql server 2000µÄÊý¾Ý¿âµ½2005
lͨ¹ýbackup/restore¹¦ÄÜÀ´Ç¨ÒÆdb
lͨ¹ýsql server 2005µÄdatabase copy wizardÀ´¿½±´Êý¾Ý¿â
lͨ¹ýdtsµÄexport/import¹¤¾ßÀ´Ç¨ÒÆÊý¾Ýµ½sql server 2005
1.µÚÒ»ÖÖ·½·¨(Ö±½ÓÉý¼¶):
ÊʺÏ: Êý¾ÝÁ¿±È½Ï´óµÄÊý¾Ý¿â.
·½·¨: ÔÚsql server 2000Êý¾Ý¿âËùÔڵĻúÆ÷Æô¶¯sql server 2005µÄ°²×°³ÌÐò,setup³ÌÐò»á×Ô¶¯¼ì²âÊÇ·ñÓÐÇ°Ò»°æ±¾µÄsql server instance,²¢ÌáʾÄã¿ÉÒÔÖ±½ÓÉý¼¶µ½2005.°²×°³ÌÐò»áÆô¶¯Éý¼¶Ïòµ¼,ÎÒÃÇÖ»Òª¸ù¾ÝÉý¼¶Ïòµ¼µÄÌá²½Ò»²½²½²Ù×÷¾Í¿ÉÒÔÍê³É´Ósql server 2000µ½2005µÄÕû¸öÉý¼¶¹ý³Ì.
Óŵã: ÎÞÐèÖØй滮Êý¾Ý¿â,Éý¼¶¿ìËÙ.Éý¼¶³ÌÐò»á×Ô¶¯½«sql serverµÄ¸÷¸ö×é¼þÉý¼¶µ½2005,²¢°ÑһЩʵÀý²ÎÊý¸Ä³Ésql server 2005ÏàÊÊÒË.±£ÁôÔÓÐsql server 2000µÄËùÓнṹ,°üÀ¨user,role,login,ȨÏÞÉèÖõÈ,ÎÞÐèÖØÐÂÉèÖÃ.
ȱµã: Ö±½ÓÉý¼¶µÄ·½·¨´æÔÚÒ»¶¨µÄ·çÏÕ.ÍòÒ»Éý¼¶Ê§°ÜÓпÉÄܻᵼÖÂÔÓеÄÊý¾Ý¿â²»¿ÉÓÃ.ËùÒÔÎÒÃÇÔÚÖ±½ÓÉý¼¶Ç°ÏÈÓÐ×öһЩÉý¼¶Ç°µÄ×¼±¸ºÍ¼ì²é¹¤×÷.msÌṩһ¸ö¹¤¾ß¿ÉÒÔ×÷Éý¼¶Ç°µÄ¼ì²é¼°¸ù¾Ý¼ì²é½á¹û¸ø³öÏà¹Ø½¨Òé,Õâ¸ö¹¤¾ß¾ÍÊÇ:upgrade advisor.Õâ¸ö¹¤¾ß°üº¬ÔÚsql server 2005µÄ²úÆ·¹âÅÌÖÐ,Èç¹ûûÓпÉÒÔµ½msµÄÍøÕ¾ÏÂÔØ.’
½÷¼Ç,Ö±½ÓÉý¼¶Ç°Ò»¶¨Òª±¸·ÝÔÓÐÊý¾Ý¿âµÄËùÓÐÎļþ,ÈçÊý¾ÝÎļþºÍÈÕÖ¾Îļþ,ÒÔÈ·±£ÍòÒ»Éý¼¶Ê§°Ü»¹¿ÉÒÔ»Ö¸´,²»ÖÂÓÚÖжÏÒµÎñ.
IT³É±¾: ³ýÁËsql server 2005¶ÔһЩÈí¼þµÄÒªÇó¸ßһЩÒÔÍâ(Èç±ØÐë°²×°.net framework 2.0ÒÔÉÏ),Ó²¼þÉϲ»Ðè×÷Ì«¶àµÄ×·¼ÓͶ×Ê,µ±È»,Ó²¼þÐÔÄܺÃһЩµÄ»°,¸üÊʺÏsql server 2005µÄÔËÐÐ.
2.µÚ¶þÖÖ·½·¨(detach/attach):
·½·¨: ÏȽ«Êý¾Ý¿â´Ósql server 2000ÖÐdetach,È»ºó½«Êý¾ÝÎļþºÍÈÕÖ¾Îļþ¿½µ½sql server 2005ËùÔڵĻúÆ÷,È»ºóattachÉÏÈ¥.Õâ¸÷·½·¨Êµ¼ÊÉÏÊÇÒƶ¯Êý¾Ý¿âµ½sql server 2005
Óŵã: ÕâÖÖ·½·¨±È½Ï°²È«.ÍòÒ»attach²»ÉÏÈ¥,»¹¿ÉÒÔÓÃÔÀ´µÄÊý¾Ý¿â
ȱµã: Óû§Èç¹ûÊý¾Ý¿â±È½Ï¶àµÄ»°,µÃÒ»¸öÒ»¸öµÄmove
3.µÚÈýÖÖ·½·¨(backup/restore):
ÊʺÏ: ´ËÖÖ·½·¨ÊʺÏÖÐС¹æÄ£µÄÊý¾Ý¿âÉý¼¶
·½·¨: ÏȽ«sql server 2000µÄdb±¸·Ý³öÀ´,È»ºó½«±¸·ÝÎļþrestoreÖÁеÄsql server 2005ʵÀýÖÐ.
Óŵã: °²È«.ÔÚеÄdb²âÊÔͨ¹ý,¾Í¿ÉÒÔɾ³ý¾ÉµÄdb,Èç¹û²âÊÔͨ²»¹ý,»¹¿ÉÒÔ³·»»»ØÔÀ´µÄÊý¾Ý¿â,²»ÖÁÓÚÖÐÖ¹ÒµÎñ
ȱµã: Éý¼¶µÄ
Ïà¹ØÎĵµ£º
SQL Server 2005 ¾µÏñ¹¦ÄÜʵÏÖ
1. Ö÷»ú¡¢¾µÏñ·Ö±ðMASTER KEY¡£
Ö÷»úÖ´ÐУº
USE master;
CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'password';
CREATE CERTIFICATE HOST_A_cert WITH ......
µ÷ÕûµÄÄ¿µÄ¾ÍÊÇΪÁËÏûºÄ×îСµÄ×ÊÔ´À´Íê³É¹¦ÄÜ£¬Í¨¹ý²é¿´Ö´Ðмƻ®ºÍ¸÷ÖÖͳ¼ÆÐÅÏ¢À´·Ö±æµ÷ÕûºóµÄsql¶Ô×ÊÔ´µÄºÄ·ÑÇé¿ö£¬À´ÕÒ³öÒ»¸ö³É±¾×îСµÄsqlÓï¾ä
¼ì²éϵͳµÄI/OÎÊÌâ
vmstateÄܼì²éÕû¸öϵͳµÄiostat£¨IO statistics£©
²é¿´¸ÃSQLµÄresponse time(db block gets/consistent gets/physical reads/sorts (disk)) ......
Ò»¡¢PowerDesignerÉú³ÉsqlÎÊÌâ
Éú³ÉsqlµÄ·½·¨ÊÇ Database -->Generate Database (Ctrl + G ) µ«ÊÇÌáʾ Could not load VBScript engine.
Check VBScript installation. Generation aborted due to errors detected during the verification of the model. ¼ì²éÁ˺þà ·¢ÏÖ½«check model È¥µô¾Í¿ÉÒÔÁË£¡ÆäÖУ¬ o ......
--»ñȡij¸öÊý¾Ý¿âÖеıí½á¹¹
SELECT
--±íÃû=case when a.colorder=1 then d.name else '' end,
ÐòºÅ=a.colorder,
--±êʶ=case when COLUMNPROPERTY(&nbs ......
1. ¶¨ÒåÓα궨Òå
ÓαêÓï¾äµÄºËÐÄÊǶ¨ÒåÁËÒ»¸öÓαê±êʶÃû£¬²¢°ÑÓαê±êʶÃûºÍÒ»¸ö²éѯÓï¾ä¹ØÁªÆðÀ´¡£DECLAREÓï¾äÓÃÓÚÉùÃ÷Óα꣬Ëüͨ¹ýSELECT²éѯ¶¨ÒåÓαê´æ´¢µÄÊý¾Ý¼¯ºÏ¡£Óï¾ä¸ñʽΪ£º
DECLARE ÓαêÃû³Æ [INSENSITIVE] [SCROLL]
CURSOR FOR selectÓï¾ä
[FOR{READ ONLY|UPDATE[OF ÁÐÃû×Ö±í]}]
²ÎÊý˵Ã÷£º
INSENSITIVEÑ¡Ï ......