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

Sql Server 2005 ±¸·ÝºÍ»Ö¸´

±¸·Ý£º
A.   ±¸·ÝÕû¸ö   MyNwind   Êý¾Ý¿â  
   
   
  ˵Ã÷     MyNwind   Êý¾Ý¿â½öÓÃÓÚÑÝʾ¡£  
   
   
  ÏÂÀý´´½¨ÓÃÓÚ´æ·Å   MyNwind   Êý¾Ý¿âÍêÕû±¸·ÝµÄÂß¼­±¸·ÝÉ豸¡£  
   
  --   Create   a   logical   backup   device   for   the   full   MyNwind   backup.  
  USE   master  
  EXEC   sp_addumpdevice   'disk',   'MyNwind_1',    
        DISK   ='c:\Program   Files\Microsoft   SQL   Server\MSSQL\BACKUP\MyNwind_1.dat'  
   
  --   Back   up   the   full   MyNwind   database.  
  BACKUP   DATABASE   MyNwind   TO   MyNwind_1  
   
  B.   ±¸·ÝÊý¾Ý¿âºÍÈÕÖ¾  
  ±¾Àý´´½¨ÁËÒ»¸öÊý¾Ý¿âºÍÈÕÖ¾µÄÍêÕû±¸·Ý¡£½«Êý¾Ý¿â±¸·Ýµ½³ÆΪ   MyNwind_2   µÄÂß¼­±¸·ÝÉ豸ÉÏ£¬È»ºó½«ÈÕÖ¾±¸·Ýµ½³ÆΪ   MyNwindLog1   µÄÂß¼­±¸·ÝÉ豸ÉÏ¡£    
   
   
   
  ˵Ã÷     ´´½¨Âß¼­±¸·ÝÉ豸ÐèÒªÒ»´ÎÍê³É¡£  
   
   
  --   Create   the   backup   device   for   the   full   MyNwind   backup.  
  USE   master  
  EXEC   sp_addumpdevice   'disk',   'MyNwind_2',  
        'c:\Program   Files\Microsoft   SQL   Server\MSSQL\BACKUP\MyNwind_2.dat'  
   
  --Create   the   log   backup   device.  
  USE   master  
  EXEC   sp_addumpdevice   'disk',   'MyNwindLog1',  
        'c:\Program   Files\Microsoft   SQL   Server\MSSQL\BACKUP\MyNwindLog1.dat'  


Ïà¹ØÎĵµ£º

SQL SERVER ´æ´¢¹ý³Ì¼ÓÃܺͽâÃÜ

create PROCEDURE sp_decrypt(@objectname varchar(50))
AS
begin
set nocount on
--CSDN£ºj9988 copyright:2004.07.15
--V3.2
--Æƽâ×Ö½Ú²»ÊÜÏÞÖÆ£¬ÊÊÓÃÓÚSQLSERVER2000´æ´¢¹ý³Ì£¬º¯Êý£¬ÊÓͼ£¬´¥·¢Æ÷
--ÐÞÕýÉÏÒ»°æ"ÊÓͼ´¥·¢Æ÷"²»ÄÜÕýÈ·½âÃÜ´íÎó
--·¢ÏÖÓÐ´í£¬ÇëE_MAIL£ºCSDNj9988@tom.com
begin tran ......

SQL exists ºÍin

in ºÍ existsÆäʵͦºÃÇø±ðµÄ.ÇÒ¿´Ï±߻ù±¾¸ÅÄî¡£
in ÊÇÒ»¸ö¼¯ºÏÔËËã·û.
a in {a,c,d,s,d....}
Õâ¸öÔËËãÖÐ,Ç°ÃæÊÇÒ»¸öÔªËØ,ºóÃæÊÇÒ»¸ö¼¯ºÏ,¼¯ºÏÖеÄÔªËØÀàÐÍÊǺÍÇ°ÃæµÄÔªËØÒ»ÑùµÄ¡£ÊµÏֵĶԼ¯ºÏÖеÄÔªËؽøÐбéÀú£¬ÒÔÈ·¶¨¸ø¶¨µÄÔªËØaÊÇ·ñÓë×Ó²éѯ»òÁбíÖеÄÖµÏàÆ¥Åä¡£
in ÔËËãÓÃÔÚsqlÓï¾äÖÐ,ËüºóÃæ´øµÄselect Ò»¶¨ÊÇÑ¡Ò»¸ ......

SQL´¥·¢Æ÷ʵÀý1

¶¨Ò壺 ºÎΪ´¥·¢Æ÷£¿ÔÚSQL ServerÀïÃæÒ²¾ÍÊǶÔijһ¸ö±íµÄÒ»¶¨µÄ²Ù×÷£¬´¥·¢Ä³ÖÖÌõ¼þ£¬´Ó¶øÖ´ÐеÄÒ»¶Î³ÌÐò¡£´¥·¢Æ÷ÊÇÒ»¸öÌØÊâµÄ´æ´¢¹ý³Ì¡£
      ³£¼ûµÄ´¥·¢Æ÷ÓÐÈýÖÖ£º·Ö±ðÓ¦ÓÃÓÚInsert , Update , Delete ʼþ¡£
      ÎÒΪʲôҪʹÓô¥·¢Æ÷£¿±ÈÈ磬ÕâôÁ½¸ö±í£º
& ......

SQLÖ®°Ë Êý¾Ý¿â¸ÅÀÀ

Êý¾Ý¿âÀàÐÍ
================================
1¡¢ ²ã´ÎÐͺÍÍø×´ÐÍ£º
´ú±í²úÆ·ÊÇ1969ÄêIBM¹«Ë¾ÑÐÖƵIJã´ÎÄ£ÐÍÊý¾Ý¿â¹ÜÀíϵͳIMS¡£
2¡¢ ¹ØϵÐÍÊý¾ÝÐͿ⣺
Ä¿Ç°´ó²¿·ÖÊý¾Ý¿â²ÉÓõÄÊǹØϵÐÍÊý¾Ý¿â¡£1970ÄêIBM¹«Ë¾µÄÑо¿Ô±E£®F£®CoddÌá³öÁ˹ØϵģÐÍ¡£Æä´ú±í²úƷΪsysem RºÍInges¡£
3¡¢ µÚÈý´úÊý¾Ý¿â½«Îª¸ü¼Ó·á¸»µÄÊý¾ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ