SQL Server 2005ÍêȫжÔØ
SQL Server 2005µÄжÔØÊÇÒ»¸ö·Ç³£Í·ÌÛµÄÎÊÌâ¡£ÎÒÔø¾³¢ÊÔ¹ýÖ±½ÓʹÓá¾Ìí¼Ó»òɾ³ý³ÌÐò¡¿¹¤¾ßжÔØ¡¢Çå³ý°²×°Ä¿Â¼¡¢É¾³ý×¢²á±íÄÚÈݵȵȸ÷ÖÖ·½Ê½×ÛºÏжÔØ£¬ÃãÇ¿³É¹¦¡£ÏÖÔÚÖÕÓÚÕÒµ½ÁËÒ»¸öÊ°빦±¶µÄ·½·¨£¬¶à´Î³¢ÊÔ£¬Î´ÓÐʧ°Ü,¾ßÌåÈçÏÂ:
1.ÏÂÔØжÔع¤¾ß£¬ÓÐÁ½ÖÖ£º
µÚÒ»ÖÖÊÇ΢Èí¹Ù·½ÌṩµÄ¹¤¾ß(msicuu2.exe)
http://support.microsoft.com/default.aspx?kbid=290301
µÚ¶þÖÖÊǸ÷´óÏÂÔØÍøÕ¾ÏÂÔصķÇ΢Èí¹Ù·½¹¤¾ß(SrvInstw.exe)
΢Èí¹Ù·½¹¤¾ßÐèÒª°²×°£¬¶øÇÒ°²×°²½Öè±È½ÏÂé·³£¬»¹ÓÐûÕÒµ½Ö§³Ö64λµÄ£»
·Ç΢Èí¹Ù·½¹¤¾ß´¿ÂÌÉ«£¬²»Ðè°²×°£¬Ö±½ÓжÔØ£¬Ö§³Ö64λ¡£
±¾È˾õµÃ΢Èí×Ô´øµÄ±È½Ï·½±ã£¬¿ÉÒÔÅúÁ¿Ñ¡Ôñ²¢Ð¶ÔØ£¬Ò²ËƺõжÔصĸü³¹µ×
2.ʹÓÃжÔع¤¾ßжÔØËùÓÐSQL Server·þÎñºÍÏà¹Ø×é¼þ(×¢Ò⣺жÔØÇ°ÒªÏÈÍ£Ö¹¶ÔÓ¦µÄ·þÎñ£¬·ñÔò¿ÉÄÜжÔØʧ°Ü)
3.ɾ³ýC:\WINDOWS\inf ÏÂËùÓÃÎļþ(ÎÒÊÇÔÚ¸ÃÎļþ¼ÐÏÂËÑË÷“sqlserver”£¬È»ºóɾ³ýËùÓнá¹ûÎļþ)
4.ɾ³ýsql 2005°²×°Ä¿Â¼ÏµÄËùÓÐÎļþ
5.ɾ³ý×¢²á±íÖÐ Microsoft Sql Server ½Ú
6.ʹÓÿØÖÆÃæ°åµÄ¡¾Ìí¼Ó»òɾ³ý³ÌÐò¡¿¹¤¾ß£¬²é¿´ÓÐÎÞÆäËûδɾ³ýµÄSQL Server³ÌÐò£¬ÈçÓж¼Ò»²¢É¾³ýµô
7.ÖØÆô¼ÆËã»ú
¼ÆËã»úÖØÆôÍê³Éºó£¬SQL Server 2005¾Í±»ÍêÈ«µÄжÔظɾ»ÁË£¬¿ÉÒÔÕý³£ÖØа²×°¡£
Ïà¹ØÎĵµ£º
select sql_text, spid, v$session.program, process
from v$sqltext, v$session, v$process
where v$sqltext.address = v$session.sql_address
and v$sqltext.hash_value = v$session.sql_hash_value
and v$session.paddr = v$process.addr
and v$process.spid in (4335);
×¢Ò ......
´´½¨µÄÊý¾Ý¿âÖÐÇø·Ö´óСд
create database test COLLATE Chinese_PRC_CS_AS
Êý¾Ý¿âÖÐÇø·Ö´óСд
alter database test COLLATE Chinese_PRC_CS_AS
»Ö¸´Ä¬ÈϵIJ»Çø·Ö´óСд
alter database test COLLATE Chinese_PRC_CI_AS ......
sysforeignkeys
°üº¬¹ØÓÚ±í¶¨ÒåÖÐµÄ FOREIGN KEY Ô¼ÊøµÄÐÅÏ¢¡£¸Ã±í´æ´¢ÔÚÿ¸öÊý¾Ý¿âÖС£
ÁÐÃû Êý¾ÝÀàÐÍ ÃèÊö
constid int FOREIGN KEY Ô¼ÊøµÄ ID¡£
fkeyid int ¾ßÓÐ FOREIGN KEY Ô¼ÊøµÄ±í¶ÔÏó ID¡£
rkeyid int ÔÚ FOREIGN KEY Ô¼ÊøÖÐÒýÓõıí¶ÔÏó ID¡£
fkey smallint ......
Ò»´ÎProjectÏîĿƽ̨(PWA)ÒâÍâÍ£»úÇÒÅäÖÃÊý¾Ý¿âSharePoint_Config µÄLDF±»ÒâÍâɾ³ý,Èç¹ûÖ±½Ó¸½¼ÓMDFÎļþÔòÎÞ·¨¸½¼Ó.
Ïȳ¢ÊÔsp_attach_single_file_db»Ö¸´,Ö´ÐÐÈçÏÂ:
sp_attach_single_file_db 'SharePoint_Config','D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\SharePoint_Config.mdf'
³öÏÖ´íÎóÌáʾ:
......
SqlÓï¾ä×÷Ϊ¹ú¼Ê±ê×¼µÄÊý¾Ý¿â²éѯÓï¾ä£¬±±¾©°á¼Ò¹«Ë¾ ±±¾©Êèͨ¹«Ë¾ÔÚ¸÷ÖÖ±à³Ì»·¾³Öеõ½Á˹㷺µÄÓ¦Óá£×÷Ϊһ¸ö³ÉÊì¡¢Îȶ¨µÄϵͳ£¬Óû§µÇ½ºÍÃÜÂëÑéÖ¤ÊDZز»¿ÉÉٵġ£ÔÚƽʱµÄ±à³Ì¹¤×÷ÖÐÐí¶à³ÌÐòÔ±ÔÚÓÃsqlÓï¾ä½øÐÐÓû§ÃÜÂëÑé֤ʱÊÇͨ¹ýÒ»¸öÀàËÆÕâÑùµÄÓï¾äÀ´ÊµÏֵģº
strSel = " Select * from Óû§±í where ÐÕÃû= '" ......