SQL SERVER 2000¸ü¸ÄºÍɾ³ýSaÓû§ÃûºÍÃÜÂë
ÏÖÔÚÓÃMSSQLµÄµØ·½Ì«¶àÁË£¬Óкܶà×ö¼¼ÊõµÄ¸öÈ˵çÄÔÉÏÒ²°²×°SQLרҵ°æ£¬ÒòΪËüÓõĶ࣬µ«ÓõÄÈ˶¼ÖªµÀ£¬SQLÓиö³¬¼¶Óû§sa£¬´ËÓû§Ä¬ÈÏÇé¿öÏ£¬ËüÖ¸Åɸø¹Ì¶¨·þÎñÆ÷½ÇÉ« sysadmin£¬²¢²»ÄܽøÐиü¸Ä¡£Ò»°ã¶®µã°²È«ÎÊÌâµÄ¼¼ÊõÈËÔ±¶¼»á°ÑÕâ¸öÃÜÂëÐ޸ĵô£¬µ«ÐÞ¸ÄÔÙ¸´ÔÓµÄÃÜÂ붼²»ÊǾø¶Ô°²È«µÄ£¬Ò»Ð©±©Á¦ÆƽâÈí¼þ£¬²ËÄñ¶¼»áÓá£
ÄÇÔõô°ìÄØ£¬×îºÃµÄ°ì·¨¾ÍÊÇɾ³ý»ò¸ÄÃû£¬ÏÂÃæÌṩ·½·¨.
ÐÞ¸ÄSAÓû§Ãû£º
Ò»£ºÔÚÆóÒµ¹ÜÀíÆ÷ÖÐÓÒ»÷£º(local)(windows NT)£¬Ñ¡ÊôÐÔ£¬Ñ¡Ôñ“·þÎñÆ÷ÉèÖÔ£¬ÔÚ·þÎñÆ÷ÐÐΪÖеēÔÊÐí¶ÔϵͳĿ¼ֱ½Ó½øÐÐÐ޸ĔǰÃæµÄ·½¿ò´ò¹³¡£ÔÙµãÈ·¶¨¡£
¶þ£ºÔÙ´ò¿ª²éѯ·ÖÎöÆ÷£¬µÇ½½øÈ¥£¨ºÇºÇ£¬Ëæ±ãÄãÓÃʲôÕʺŽøÈ¥£¬²»¹ý¿ÉÒ»¶¨ÒªÔÚmasterÊý¾Ý¿âÖÐÓÐdb_ownerµÄȨÏÞ£©ÊäÈë
update sysxlogins set name='ÄãÒª¸Ä³ÉµÄÃû×Ö' where sid=0x01
update sysxlogins set sid=0xE765555BD44F054F89CD0076A06EA823 where name='ÄãÒª¸Ä³ÉµÄÃû×Ö'
,OK£¬Ö´Ðгɹ¦£¬×ªµÀÆóÒµ¹ÜÀíÆ÷ÖÐˢа²È«ÐÔÖеĵǽ£¬¿´¿´£¬saÊDz»ÊDZä³ÉÄã×Ô¼ºÏëÐ޸ĵÄÓû§ÁË
ɾ³ýSAÓû§£º
Ð޸ķ½·¨ÐèÒªÀûÓõĴ洢¹ý³Ìsp_configure£¬sp_configureÏÔʾ»ò¸ü¸Äµ±Ç°·þÎñÆ÷µÄÈ«¾ÖÅäÖÃÉèÖá£
Óï·¨:
´ò¿ª²éѯ·ÖÎöÆ÷£¬ÊäÈë
sp_configure [ [ @configname = ] 'name' ]
[ , [ @configvalue = ] 'value' ]
ʵÀý£º
sp_configure 'allow updates', 1
go
RECONFIGURE WITH OVERRIDE
go
ºÃÀ£¬ÕâÑùÎÒÃǾͿÉÒÔ¸üÐÂϵͳ±íÀ£¬½ÓÏÂÀ´ºÍÇ°ÃæµÄ×ö·¨Ò»ÑùÀ update sysxlogins set name='ÄãÒª¸Ä³ÉµÄÃû×Ö' where sid=0x01£¬È»ºóÔÙɾ³ý"Äã¸ÄÃûºóµÄÄǸöÃû×Ö"
²»¹ýҪעÒâÔÚ sp_configure ÉÏûÓвÎÊý£¨»òÖ»ÓеÚÒ»¸ö²ÎÊý£©µÄÖ´ÐÐÐí¿ÉȨÏÞĬÈÏÊÚÓèËùÓÐÓû§¡£ÓÐÁ½¸ö²ÎÊýµÄ sp_configure£¨ÓÃÓÚ¸ü¸ÄÅäÖÃÑ¡ÏµÄÖ´ÐÐÐí¿ÉȨÏÞĬÈÏÊÚÓè sysadmin ºÍ serveradmin ¹Ì¶¨·þÎñÆ÷½ÇÉ«¡£RECONFIGURE ȨÏÞĬÈÏÊÚÓè sysadmin ¹Ì¶¨·þÎñÆ÷½ÇÉ«ºÍ serveradmin ¹Ì¶¨·þÎñÆ÷½ÇÉ«£¬²¢ÇÒ²»ÄÜ´«Êä¡£
Ïà¹ØÎĵµ£º
The aspnet_Profile table contains the following fields: UserId, PropertyNames, PropertyValuesString, PropertyValuesBinary, and LastUpdatedDate. The PropertyNames field contains a string delimited with colons (:) that identify which profile fields are stored, what their datatype is and their of ......
BACKUP DATABASENAME WITH NO_LOGÒ»Ö±ÊÇÎҽضÏÊÂÎñÈÕÖ¾£¬Ñ¹Ëõ¿Õ¼äµÄÀûÆ÷£¬½ñÌìÔÙSQL2008ÉÏÒ»Óã¬È´²»ÁéÁË
ÏûÏ¢ 3032£¬¼¶±ð 16£¬×´Ì¬ 2£¬µÚ 2 ÐÐ
´ËÓï¾ä²»Ö§³ÖÒ»¸ö»ò¶à¸öÑ¡Ïî(no_log)¡£Çë²éÔÄÎĵµÒÔÁ˽âËùÖ§³ÖµÄÑ¡Ïî¡£
²é¿´Áª»ú°ïÖúÊֲᣬÀïÃæȷʵûÓÐwith no_logµÄ¿ÉÑ¡ÏîÁË£¬ÄÇÔõô°ì°¡£¬50MµÄÊý¾ÝÎļþ£¬2GµÄÈÕÖ¾Îļþ£¬È ......
ÔÚ´æ´¢¹ý³ÌÖÐʹÓÃÊÂÎñ£¬ÒÔÏÂΪģ°å£º
CREATE PROCEDURE testPro
AS
/**//* ------- ÊÂÎñ¿ªÊ¼---------- */
BEGIN TRANSACTION tran_test
/**//* -------- ±£´æÊÂÎñ----------*/
SAVE TRANSACTION tran_test
/**//* -------- Êý¾Ý²Ù×÷---------*/
INSERT [table1] ( [content] ) VALUES ( '43332' )
/**//*---- ......
ÎÊÌâµÄÌá³ö£º
ÏÖÓбíA£¬ÄÚÈÝÈçÏ£º
±àÂë ²Ö¿â ÊýÁ¿
01 A 6
01 B 7
02 A & ......
ÖÚËùÖÜÖª£¬SQL ServerÖ´ÐÐSQLÓï¾äµÄÐÔÄÜÅж¨±ê×¼Ö÷ÒªÊÇIO¶ÁÈ¡Êý´óС¡£±¾ÎÄÔÚ²»Î¥·´ÕâÒ»ÔÔòÇé¿öÏ£¬Í¬Ê±À´·ÖÎöһϲ¿·ÖSQLÓï¾äÖ´ÐÐʱ£¬SQL ServerÄÚ´æµÄ±ä»¯Çé¿ö¡£
Ê×ÏȼòÊöÒ»ÏÂSQL ServerÄÚ´æÕ¼ÓõÄÌص㡣SQL ServerËùÕ¼ÓõÄÄÚ´æ³ý³ÌÐò£¨¼´SQL
ServerÒýÇ棩Í⣬Ö÷Òª°üÀ¨»º´æµÄÊý¾Ý£¨Buffer£©ºÍÖ´Ðмƻ®£¨Cache£©¡£SQL ......