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

sqlserver »¹Ô­µ½Ê±¼äµã

½ñÌìÒ»²»Àä¾²¾Í°ÑsqlserverÊý¾Ý¿â³õʼ»¯ÁË£¬ÔÚÍøÉÏÕÒÁË°ëÌì·¢ÏÖÁ˼¸ÆªÌû×Ó£¬ÊÜÒæ·Çdz£¬¼Ç¼ÏÂ
DB2ÖпÉÒÔʹµÃÊý¾Ý¿â»Ø¸´µ½Ö¸¶¨µÄʱ¼äµã£¬SQL ServerÊý¾Ý¿âµÄRecovery ModelΪfull »òÕßBulk copyµÄʱºò£¬ÊÇ¿ÉÒÔ´ÓÈÕÖ¾À´»Ö¸´Êý¾Ý¿âµÄ¡£Êµ¼ÊÉÏÈÕÖ¾ÖмǼµÄÒ»ÌõÒ»ÌõµÄtransact sqlÓï¾ä£¬»Ö¸´Êý¾Ý¿âµÄʱºò»áredoÕâЩsqlÓï¾ä¡£        Ç°ÌáÌõ¼þ£ºmyBBSÊÇÊý¾Ý¿âtestÖеÄÒ»¸ö±í,Êý¾Ý¿âtestµÄRecovery ModelΪFull,Auto Close,Auto ShrinkÁ½¸öÑ¡ÏîδѡÖС£Êý¾Ý¿âtestµÄdata filesºÍlog files¾ùΪĬÈϵÄ×Ô¶¯Ôö³¤×´Ì¬¡£
 
A£º2004/10/13,16:00½øÐÐÊý¾Ý¿â±¸·Ý£¬backup database test to disk='d:\db\1600.bak' with init
B£º2004/10/14,13:00¶ÔÊý¾Ý¿â½øÐÐÁËupdate,deleteµÈ²Ù×÷£»
C£º2004/10/15,18:00ʹÓÃdelete mybbs where id>300ʱ£¬Óï¾äÎóд³Édelete mybbs,Òò¶øɾ³ýÁ˱ímybbsÖеÄËùÓÐÊý¾Ý¡£
ÏÖÔÚÔÚCµã,Cµã¶ÔÊý¾Ý¿â½øÐÐÁËÎó²Ù×÷£¬ÎÒÃÇÏ£ÍûÊý¾Ý¿âÄܹ»»Ö¸´µ½C֮ǰµÄ״̬£¬±ÈÈç»Ö¸´µ½10ÔÂ15ÈÕ17:59·ÖµÄ״̬¡£
Òª»Ö¸´Êý¾Ý¿âBµã£¬Ê¹ÓõÄÊÇAµã±¸·ÖµÄÊý¾Ý¿â1600.bak£»¶øʹÓõÄÈÕÖ¾±¸·ÖÊÇ×îеı¸·Ö1820.logs£»Òò¶ø½øÐÐÈçϲÙ×÷£º
--±¸·ÖÈÕÖ¾£º
BACKUP LOG test TO DISK='d:\1820.logs' WITH INIT
--»Ö¸´Êý¾Ý¿â1600.bak,ʹÓÃWITH NORECOVERY²ÎÊý£º
RESTORE DATABASE test from disk='d:\db\1640.bak' WITH NORECOVERY
--ʹÓÃÈÕÖ¾»Ö¸´Êý¾Ý¿âµ½10ÔÂ15ÈÕ17:59·Ö£º
    RESTORE LOG test     from disk='d:\1820.logs' WITH RECOVERY,STOPAT='10/15/2004 17:59'
    ÉÏÃæµÄÈýÌõTransact SQLÓï¾äµÄ¶ÔÓ¦¹ý³Ì:
    1.»Ö¸´Êý¾Ý¿âµ½Aµã£»
    2.Ö´ÐÐA-BÖ®¼äµÄlog¼Ç¼£¬°ÑÊý¾Ý¿â»Ö¸´µ½Bµã.
    ÕâÑù¾Í»Ö¸´Êý¾Ý¿âµ½ÁËÖ¸¶¨µÄʱ¼äµã¡£Èç¹û»Ö¸´²»³É¹¦£¬¿ÉÄܵÄÔ­ÒòÊÇ£º1.δʹÓÃÕýÈ·µÄ±¸·ÖÊý¾Ý¿â£»2.Êý¾Ý¿âÑ¡ÏîÑ¡ÖÐÁËAuto Shrink.
Õª×Ôhttp://www.bentium.org/ReadNews.asp?NewsID=259


Ïà¹ØÎĵµ£º

ÔÚwindows 7 ÉÏΪ sqlserver 2008 ÆôÓÃÔ¶³Ì·ÃÎÊ

 ÔÚwindows 7 ÉÏΪ sqlserver 2008 ÆôÓÃÔ¶³Ì·ÃÎÊ£¬ÐèÒªÁ½¸öÖصãµÄ²½Öè¡£
µÚÒ»²½£ºÆôÓÃsqlserver 2008Ô¶³Ì·ÃÎʵŦÄÜ¡£
´ò¿ªMicrosoft SQL Server 2008-ÅäÖù¤¾ß-SQL Server ÅäÖùÜÀíÆ÷
ÆôÓò¢¼¤»îTcp/IP
È»ºóÖØÆôsqlserver·þÎñ¡£ÕâÑùsqlserver 2008¾Í¿ÉÒÔ½øÐÐÔ¶³ÌÁ¬½ÓÁË¡£µ«ÊÇwin7 ·À»ðǽĬÈÏÊÇ×èÖ¹ÁËsqlsever ¿ª· ......

Óû§"sa "µÇ½ʧ°Ü SQLServer ´íÎó18456

 ÓÃwindowsÕ˺Ż¹ÊÇ¿ÉÒԵǼµÄ¡£
²éÕÒÎÊÌâµÄ¹ý³Ì£º
µÚÒ»²½£º Æô¶¯ËùÓÐÓëSQLÓйصķþÎñ£¬ÎÊÌâÒÀ¾É£»
µÚ¶þ²½£º ²é¿´windows·À»ðǽ£¬±»Ä¬ÈÏÆô¶¯ÁË£¬²»Æô¶¯Ñ¡ÔñÏî±»Disabled¡£Á½¸öÌáʾ“ÓÉÓÚ°²È«¿¼ÂÇ,ijЩÉèÖÃÓÉ×é²ßÂÔ¿ØÖÆ”“Windows·À»ðǽÕýÔÚʹÓÃÄúµÄÓòÉèÖÔ£¬ÏÈÓÃgpedit.msc´ò×é²ßÂԱ༭Æ÷£¬» ......

OracleÖÐÓëSQLSERVER ISNULLº¯ÊýÏàͬ×÷Óõĺ¯Êý

NVL(Expr1,Expr2)Èç¹ûExpr1ΪNULL£¬·µ»ØExpr2µÄÖµ£¬·ñÔò·µ»ØExpr1µÄÖµ
NVL2(Expr1,Expr2,Expr3)Èç¹ûExpr1ΪNULL£¬·µ»ØExpr2µÄÖµ£¬·ñÔò·µ»ØExpr3µÄÖµ
NULLIF(Expr1,Expr2)Èç¹ûExpr1ºÍExpr2µÄÖµÏàµÈ£¬·µ»ØNULL£¬·ñÔò·µ»ØExpr1µÄÖµ ......

.NetÔÚSqlServerÖеÄͼƬ´æÈ¡¼¼Êõ

±¾ÎÄ×ܽáÈçºÎÔÚ.Net WinformºÍ.Net webform(asp.net)Öн«Í¼Æ¬´æÈësqlserverÖв¢¶ÁÈ¡ÏÔʾµÄ·½·¨
1£¬Ê¹ÓÃasp.net½«Í¼Æ¬ÉÏ´«²¢´æÈëSqlServerÖУ¬È»ºó´ÓSqlServerÖжÁÈ¡²¢ÏÔʾ³öÀ´
Ò»£¬ÉÏ´«²¢´æÈëSqlServer
Êý¾Ý¿â½á¹¹
create table test
{
id identity(1,1),
FImage image
}
Ïà¹ØµÄ´æ´¢¹ý³Ì
Create proc UpdateImage ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ