asp.net±¸·ÝÊý¾Ý¿â
Asp.Net ±¸·ÝºÍ»Ö¸´SQL SERVER Êý¾Ý¿â
ÎÒÃÇͨ³£±¸·ÝÊý¾Ý¿âʱ£¬ÐèÒªµÇ¼Êý¾Ý¿â·þÎñÆ÷È¥±¸·ÝºÍ»Ö¸´£¬ÕâÑùºÜ²»·½±ã£¬ÆäʵSQL SERVER×Ô´øµÄÃüÁî¿ÉÄÜÈÃÎÒÃǺܼòµ¥µØʵÏÖÔ¶³Ìͨ¹ýAsp.Net±¸·ÝºÍ»Ö¸´Êý¾Ý¿â¡£
BACKUP DATABASE '±»±¸·ÝµÄÊý¾Ý¿âÃû' TO DISK = '±¸·ÝÎļþ·¾¶';
ALTER DATABASE '±»»Ö¸´µÄÊý¾Ý¿âÃû' SET OFFLINE WITH ROOLBACK IMMEDIATE;
RESTORE DATABASE '±»»Ö¸´µÄÊý¾Ý¿âÃû' from DISK = '±¸·ÝÎļþ·¾¶';
ALTER DATABASE '±»»Ö¸´µÄÊý¾Ý¿âÃû' SET ONLINE WITH ROOLBACK IMMEDIATE;
¼òµ¥¼¸ÌõÃüÁî¾Í¿ÉÒÔÍê³ÉÊý¾Ý¿âµÄ±¸·ÝºÍ»Ö¸´£¬ÔÚAsp.NetÖУ¬¿ÉÒÔÏñµ÷ÓÃSqlÓï¾äÒ»Ñùµ÷ÓÃÕâËÄÌõÓï¾ä£¬ÇáÇáËÉËÉʵÏÖSQL SERVERÊý¾Ý¿âµÄ±¸·ÝºÍ»Ö¸´¡£
Àý×Ó(ÒÔNorthwindΪÀý)£º
1¡¢±¸·ÝNorthwindÊý¾Ý¿âµ½CÅ̸ùĿ¼Ï£¬ÒÔ'Northwind.bak'ΪÃû£º
BACKUP DATABASE 'Northwind' TO DISK = 'C:\Northwind.bak';
2¡¢»Ö¸´NorthwindÊý¾Ý¿â,CÅ̸ùĿ¼ÏµÄ'Northwind.bak'±¸·ÝÎļþ£º
a¡¢½«Êý¾Ý¿âÖÃÓÚÀëÏß״̬
ALTER DATABASE 'Northwind' SET OFFLINE WITH ROOLBACK IMMEDIATE;
b¡¢»Ö¸´NorthwindÊý¾Ý¿â
RESTORE DATABASE 'Northwind' from DISK = 'C:\Northwind.bak';
c¡¢½«Êý¾Ý¿âÖÃÓÚÔÚÏß״̬
ALTER DATABASE 'Northwind' SET ONLINE WITH ROOLBACK IMMEDIATE;
»Ö¸´Êý¾Ý¿â£º
¹Ø¼ü×Ö£ºAlter Database ±»»Ö¸´µÄÊý¾Ý¿âÃû Set Offline with Rollback immediate;
restore database ±»»Ö¸´µÄÊý¾Ý¿âÃû from disk = '±¸·ÝÎļþ·¾¶';
Alter Database ±»»Ö¸´µÄÊý¾Ý¿âÃû Set OnLine With rollback Immediate;
/////////////////////
string sql = "Alter Database db Set Offline with Rollback immediate;"; //db ÊÇÒª±¸·ÝµÄÊ
Ïà¹ØÎĵµ£º
@import url(¡°layout.css¡±)
CSS Selectors: *, p, div span, div > span, *[href], li+li, .title, #container, #title p:first-child, a:link, a:hover, a:visited, p:before, p:after
p:after{content:¡¯url(images/quote.gif)¡¯}
!important State Mode: Off, InProc, StateServer, SQLServer, C ......
Request¶ÔÏó¹¦ÄÜÊÇ´Ó¿Í»§¶ËµÃµ½Êý¾Ý£¬³£ÓõÄÈýÖÖÈ¡µÃÊý¾ÝµÄ·½·¨ÊÇ£ºRequest.Form¡¢Request.QueryString£¬Request¡£ÆäµÚÈýÖÖÊÇÇ°Á½ÖÖµÄÒ»¸öËõд£¬¿ÉÒÔÈ¡´úÇ°Á½ÖÖÇé¿ö¡£¶øÇ°Á½ÖÖÖ÷Òª¶ÔÓ¦µÄFormÌύʱµÄÁ½ÖÖ²»Í¬µÄÌá½»·½·¨£º·Ö±ðÊÇPost·½·¨ºÍGet·½·¨¡£
Request ¶ÔÏóµÄÊôÐԺͷ½·¨± ......
×î½ü×ö±£´æÔ¶³ÌͼƬʱºò£¬¾ÍÔÚ±£´æµÄʱºò×ÜÊdzöÕâ¸ö´íÎó£¬ÍøÉÏgoogleÁËһȦ£¬¶¼ÊÇÔÙ˵ȨÏÞÎÊÌ⣬ÎÊÌâÎÒÊÇÓÃUÅÌ£¬ÄÄÀïÓÐʲôȨÏÞÎÊÌâ¡£
×îºóÎÞÒâÖз¢ÏÖÁËÎÊÌâËùÔÚ
±£´æµÄʱºò²»ÄÜÓÃÏà¶Ô·¾¶£¬Ò»¶¨ÒªÓÃserver.mappath()´¦Àíһϱ£´æµÄ·¾¶¡£¡£¡£°¦£¡ ......
¾³£ÐèÒªÔÚÊý¾Ý¿âÓëExeclÖ®¼ä»¥µ¼Êý¾Ý¡£netʱ´ú£¬ADO.NET¿ÉÒÔʹÓÃʹÓÃMicrosoft.Jet.OleDb·ÃÎÊ·ÃÎÊExcel£¬ÍøÉÏÒѾÓкܶàÀàËƵÄ×ÊÔ´£¬×îµäÐÍÒ²ÊÇ×î¼òµ¥µÄ¿ÉÄÜÈçÏ£º£¨asp.net»·¾³£©
// Á¬½Ó×Ö·û´®
......
·ÖÀà: ר¼ÒBlog ÍƼöÕߣºadmin| ä¯ÀÀÁ¿£º489 views| 1 ¸öÆÀÂÛ
Èç¹ûÎÒÃÇÓÃIISËÞÖ÷ASP.net£¬µ¥²½µ÷ÊÔʱ£¬»áÓпÉÄÜÏÂÃæµÄÒì³£±¨³öÀ´£º
—————————
Microsoft Visual Studio
—————————
The web serv ......