Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Íü¼ÇSQL ServerµÄSAÓû§ÃÜÂë½â¾ö·½·¨


×÷Õß:Íø·ÓÎÏÀ@youxia.org
·¢²¼Ê±¼ä:2005-9-25 11:48:18 ÎÄÕÂÀ´Ô´:youxia.org
̨ʽ»úºÍ±¾±¾·Ö±ð°²×°ÁËMS SQL Server£¬·½±ã×ö²âÊÔÓÃ
½á¹ûʱ¼ä³¤ÁË£¬
̨ʽ»úSQL ServerµÄÃÜÂëÍü¼ÇÁË……
ÄѵÀ……ûÓа취ÁËÂ𣿗—No£¡
¾­¹ýÒ»Õó×ÓÓôÃÆ£¬ÓÎÏÀÔÚ°Ù¶ÈËѵ½ÁË·½·¨£º
ÏÖÔÚÄãµÄ
ÆóÒµ¹ÜÀíÆ÷µ±È»Êǽø²»È¥ÁË£¬µ«ÊÇÎÒÃÇ»¹Óвéѯ·ÖÎöÆ÷
ÑéÖ¤µÄʱºò£¬Ñ¡Ôñ°´ÕÕWindowsÉí·ÝÑéÖ¤£¬¾ÍÖ±½Ó½øÈ¥ÁË……º¹£¡
ÊäÈëÏÂÁÐÃüÁִ
ÐУº
exec sp_password null,'ÐÂÃÜÂë','sa'
ºÃÁË£¬ÏÖÔÚÃÜÂëÒѾ­¸Ä±äÁË£¬µ½ÆóÒµ¹ÜÀíÆ÷¿´¿´ ^_^
ÏÂÃæÊÇÎÒÔÚSQL ServerµÄ°ïÖú¿´µ½µÄ¹ØÓÚ´æ´¢¹ý³Ì sp_passwordµÄ˵Ã÷£º
sp_password
Ìí¼Ó»ò¸ü¸Ä Microsoft® SQL Server™ µÇ¼µÄÃÜÂë¡£
Óï·¨
sp_password [ [ @old = ] 'old_password' , ]
    { [ @new =]
'new_password' }
    [ , [ @loginame = ] 'login' ]
²ÎÊý
[@old =] 'old_password'
ÊǾÉÃÜÂë¡£old_password Ϊ sysname ÀàÐÍ£¬ÆäĬÈÏֵΪ NULL¡£
[@new =] 'new_password'
ÊÇÐÂÃÜÂë¡£new_password Ϊ sysname ÀàÐÍ£¬ÎÞĬÈÏÖµ¡£Èç¹ûûÓÐʹÓÃÃüÃû²ÎÊý£¬¾Í±ØÐëÖ¸¶¨ old_password¡£
[@loginame =] 'login'
ÊÇÊÜÃÜÂë¸ü¸ÄÓ°ÏìµÄµÇ¼Ãû¡£login Ϊ sysname ÀàÐÍ£¬ÆäĬÈÏֵΪ NULL¡£login ±ØÐëÒѾ­´æÔÚ£¬²¢ÇÒÖ»ÄÜÓÉ
sysadmin ¹Ì¶¨·þÎñÆ÷½ÇÉ«µÄ³ÉÔ±Ö¸¶¨¡£
·µ»Ø´úÂëÖµ
0£¨³É¹¦£©»ò 1£¨Ê§°Ü£©
×¢ÊÍ
SQL Server ÃÜÂë¿É°üº¬ 1 µ½ 128 ¸ö×Ö·û£¬ÆäÖпɰüÀ¨ÈκÎ×Öĸ¡¢·ûºÅºÍÊý×Ö¡£
ÐÂÃÜÂëÒÔ¼ÓÃܵÄÐÎʽ¸üкʹ洢£¬Òò´Ë£¬ÈκÎÓû§£¨ÉõÖÁϵͳ¹ÜÀíÔ±£©¶¼²»Äܲ鿴ÃÜÂë¡£
µ± sysadmin »ò securityadmin ¹Ì¶¨·þÎñÆ÷½ÇÉ«µÄ³ÉԱʹÓôøÈ«²¿Èý¸ö²ÎÊýµÄ sp_password
ÖØÐÂÉèÖÃËûÃÇ×Ô¼ºµÄÃÜÂëʱ£¬ÉóºË¼Ç¼·´Ó³µÄÈ´ÊÇËûÃÇÕýÔÚ¸ü¸Ä±ðÈ˵ÄÃÜÂë¡£
sp_password ²»ÄÜÓÃÓÚ Microsoft Windows NT® °²È«ÕÊ»§¡£Í¨¹ý Windows NT ÍøÂçÕÊ»§Á¬½Óµ½ SQL
Server µÄÓû§ÊÇÓÉ Windows NT ÊÚȨµÄ£¬Òò´ËÆäÃÜÂëÖ»ÄÜÔÚ Windows NT Öиü¸Ä¡£
sp_password ²»ÄÜÔÚÓû§¶¨ÒåµÄÊÂÎñÖÐÖ´ÐС£
ȨÏÞ
Ö´ÐÐȨÏÞĬÈϵØÊÚÓè public ½ÇÉ«£¬ÒÔ¹©Óû§¸ü¸Ä×Ô¼ºµÄµÇ¼ÃÜÂë¡£Ö»ÓÐ sysadmin
½ÇÉ«µÄ³ÉÔ±¿É¸ü¸ÄÆäËûÓû§µÄµÇ¼ÃÜÂë¡£
ʾÀý
A.ÎÞÔ­ÃÜÂëµÄÇé¿öϸü¸ÄµÇ¼ÃÜÂë
ÏÂÃæµÄʾÀý½«µÇ¼ Victoria µÄÃÜÂë¸ü¸ÄΪ ok¡£
EXEC sp_password NULL, 'ok', 'Victoria'
B.¸ü¸ÄÃÜ


Ïà¹ØÎĵµ£º

·¢²¼DBATools For PL/SQL Developer V1.1.0 Beta 1 °æ

      Èí¼þÊÇÃâ·ÑʹÓõģ¬×Ô¼º¹¤×÷ÖÐÒ²Ò»Ö±Óã¬Óкܶ๦ÄÜÏëÔö¼Ó£¬ÓÉÓÚʱ¼äÔ­ÒòûȥÕûÀíÐèÇó¡£×Ô´ÓÈ¥Äê·¢²¼V1.0.0°æºóûÓÐÔÚ·¢²¼ÁË£¬±¾´ÎÖ÷ÒªÊÇÔö¼ÓÁ˽âÃÜOracle10g¼ÓÃܶÔÏñµÄ¹¦ÄÜ£¬ÁíÍâ×öÁËһЩСµÄÓÅ»¯£¬·¢ÉÏÀ´Óë´ó¼Ò·ÖÏíһϣ¬ÒòΪÊÇBeta°æ£¬ËùÒÔÒ²Çë´ó¼ÒÁ½⣬Èç¹ûÔÚʹÓýâÃܹ¦ÄÜʱÓöµ½ÎÊÌâ¿ÉÒÔ·¢E ......

SQL SERVER ÓëACCESS¡¢EXCELµÄÊý¾Ýת»»

 ÊìϤSQL SERVER 2000µÄÊý¾Ý¿â¹ÜÀíÔ±¶¼ÖªµÀ£¬ÆäDTS¿ÉÒÔ½øÐÐÊý¾ÝµÄµ¼Èëµ¼³ö£¬Æäʵ£¬ÎÒÃÇÒ²¿ÉÒÔʹÓÃTransact-SQLÓï¾ä½øÐе¼Èëµ¼³ö²Ù×÷¡£ÔÚTransact-SQLÓï¾äÖУ¬ÎÒÃÇÖ÷ҪʹÓÃOpenDataSourceº¯Êý¡¢OPENROWSET º¯Êý£¬¹ØÓÚº¯ÊýµÄÏêϸ˵Ã÷£¬Çë²Î¿¼SQLÁª»ú°ïÖú¡£ÀûÓÃÏÂÊö·½·¨£¬¿ÉÒÔÊ®·ÖÈÝÒ×µØʵÏÖSQL SERVER¡¢ACCESS¡¢EXC ......

SQLÖÐtruncate tableºÍdeleteµÄÇø±ð

TRUNCATE TABLE ÔÚ¹¦ÄÜÉÏÓë²»´ø Where ×Ó¾äµÄ Delete
Óï¾äÏàͬ£º¶þÕß¾ùɾ³ý±íÖеÄÈ«²¿ÐС£µ« TRUNCATE TABLE ±È Delete Ëٶȿ죬ÇÒʹÓõÄϵͳºÍÊÂÎñÈÕÖ¾×ÊÔ´ÉÙ¡£
Delete
Óï¾äÿ´Îɾ³ýÒ»ÐУ¬²¢ÔÚÊÂÎñÈÕÖ¾ÖÐΪËùɾ³ýµÄÿÐмǼһÏî¡£TRUNCATE TABLE ͨ¹ýÊÍ·Å´æ´¢±íÊý¾ÝËùÓõÄÊý¾ÝÒ³À´É¾³ýÊý¾Ý£¬²¢ÇÒÖ»ÔÚÊÂÎñÈÕÖ¾ÖмÇÂ¼Ò ......

ÁÙʱ±íÔÚSQL ServerºÍMySqlÖд´½¨µÄ·½·¨

SQL Server´´½¨ÁÙʱ±í£º
´´½¨ÁÙʱ±í
·½·¨Ò»£º
create table #ÁÙʱ±íÃû(×Ö¶Î1 Ô¼ÊøÌõ¼þ,
×Ö¶Î2 Ô¼ÊøÌõ¼þ,
.....)
create table ##ÁÙʱ±íÃû(×Ö¶Î1 Ô¼ÊøÌõ¼þ,
×Ö¶Î2 Ô¼ÊøÌõ¼þ,
.....)
·½·¨¶þ£º
select * into #ÁÙʱ±íÃû from ÄãµÄ±í;
select * into ##ÁÙʱ±íÃû from ÄãµÄ±í;
×¢£ºÒÔÉϵÄ#´ú±í¾Ö²¿ÁÙʱ±í£¬##´ú±íÈ«¾ ......

oracle ÓÅ»¯Ö® ÕÒ³öµÍЧÂÊsql Óï¾ä

SELECT EXECUTIONS , DISK_READS, BUFFER_GETS,
¡¡¡¡ROUND((BUFFER_GETS-DISK_READS)/BUFFER_GETS,2) Hit_radio,
¡¡¡¡ROUND(DISK_READS/EXECUTIONS,2) Reads_per_run,
¡¡¡¡SQL_TEXT
¡¡¡¡from V$SQLAREA
¡¡¡¡WHERE EXECUTIONS>0
¡¡¡¡AND BUFFER_GETS > 0
¡¡¡¡AND (BUFFER_GETS-DISK_READS)/BUFFER_GETS ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ