SQL ServerÊý¾Ý¿â±¸·ÝÓÐÁ½ÖÖ·½Ê½£¬Ò»ÖÖÊÇʹÓÃBACKUP DATABASE½«Êý¾Ý¿âÎļþ±¸·Ý³öÈ¥£¬ÁíÍâÒ»ÖÖ¾ÍÊÇÖ±½Ó¿½±´Êý¾Ý¿âÎļþmdfºÍÈÕÖ¾ÎļþldfµÄ·½Ê½¡£ÏÂÃ潫Ö÷ÒªÌÖÂÛһϺóÕߵı¸·ÝÓë»Ö¸´¡£±¾Îļٶ¨ÄúÄÜÊìÁ·Ê¹ÓÃSQL Server Enterprise Manager(SQL ServerÆóÒµ¹ÜÀíÆ÷)ºÍSQL Server Quwey Analyser(SQL Server²éѯ·ÖÎöÆ÷)
1¡¢Õý³£µÄ±¸·Ý¡¢SQLÊý¾Ý¿â»Ö¸´·½Ê½
Õý³£·½Ê½Ï£¬ÎÒÃÇÒª±¸·ÝÒ»¸öÊý¾Ý¿â£¬Ê×ÏÈÒªÏȽ«¸ÃÊý¾Ý¿â´ÓÔËÐеÄÊý¾Ý·þÎñÆ÷ÖжϿª£¬»òÕßÍ£µôÕû¸öÊý¾Ý¿â·þÎñÆ÷£¬È»ºó¸´ÖÆÎļþ¡£
жÏÂÊý¾Ý¿âµÄÃüÁSp_detach_db Êý¾Ý¿âÃû
Á¬½ÓÊý¾Ý¿âµÄÃüÁSp_attach_db»òÕßsp_attach_single_file_db
s_attach_db [@dbname =] ′dbname′, [@filename1 =] ′filename_n′ [,...16]
sp_attach_single_file_db [@dbname =] ′dbname′, [@physname =] ′physical_name′
ʹÓô˷½·¨¿ÉÒÔÕýÈ·»Ö¸´SQL Sever7.0ºÍSQL Server 2000µÄÊý¾Ý¿âÎļþ£¬ÒªµãÊDZ¸·ÝµÄʱºòÒ»¶¨Òª½«mdfºÍldfÁ½¸öÎļþ¶¼±¸·ÝÏÂÀ´£¬mdfÎļþÊÇÊý¾Ý¿âÊý¾ÝÎļþ£¬ldfÊÇÊý¾Ý¿âÈÕÖ¾Îļþ¡£
Àý×Ó£º
¼ÙÉèÊý¾Ý¿âΪtest£¬ÆäÊý¾ÝÎļþΪtest_data.mdf£¬ÈÕÖ¾ÎļþΪtest_log.ldf¡ ......
Data Source=sqlservername;Initial Catalog=dbname;User ID=userid;Password=userpwd
Data Source=(local)\\SQLEXPRESS;Initial Catalog=Êý¾Ý¿âÃû;Integrated Security=True
Data Source=(local);Initial Catalog=Êý¾Ý¿âÃû;User ID=ÕʺÅ;Password=ÕʺÅÃÜÂë
Provider=Microsoft.Jet.OleDb.4.0;Data Source=C:\BegASPNET\Northwind.mdb ......
Data Source=sqlservername;Initial Catalog=dbname;User ID=userid;Password=userpwd
Data Source=(local)\\SQLEXPRESS;Initial Catalog=Êý¾Ý¿âÃû;Integrated Security=True
Data Source=(local);Initial Catalog=Êý¾Ý¿âÃû;User ID=ÕʺÅ;Password=ÕʺÅÃÜÂë
Provider=Microsoft.Jet.OleDb.4.0;Data Source=C:\BegASPNET\Northwind.mdb ......
Data Source=sqlservername;Initial Catalog=dbname;User ID=userid;Password=userpwd
Data Source=(local)\\SQLEXPRESS;Initial Catalog=Êý¾Ý¿âÃû;Integrated Security=True
Data Source=(local);Initial Catalog=Êý¾Ý¿âÃû;User ID=ÕʺÅ;Password=ÕʺÅÃÜÂë
Provider=Microsoft.Jet.OleDb.4.0;Data Source=C:\BegASPNET\Northwind.mdb ......
Sql ServerµÄ´æ´¢¹ý³ÌÊÇÒ»¸ö±»ÃüÃûµÄ´æ´¢ÔÚ·þÎñÆ÷ÉϵÄTransacation-SqlÓï¾ä¼¯ºÏ,ÊÇ·â×°Öظ´ÐÔ¹¤×÷µÄÒ»ÖÖ·½·¨,ËüÖ§³ÖÓû§ÉùÃ÷µÄ±äÁ¿¡¢Ìõ¼þÖ´ÐкÍÆäËûÇ¿´óµÄ±à³Ì¹¦ÄÜ¡£
´æ´¢¹ý³ÌÏà¶ÔÓÚÆäËûµÄÊý¾Ý¿â·ÃÎÊ·½·¨ÓÐÒÔϵÄÓŵ㣺
£¨1£©Öظ´Ê¹Óᣴ洢¹ý³Ì¿ÉÒÔÖظ´Ê¹Ó㬴Ӷø¿ÉÒÔ¼õÉÙÊý¾Ý¿â¿ª·¢ÈËÔ±µÄ¹¤×÷Á¿¡£
£¨2£©Ìá¸ßÐÔÄÜ¡£´æ´¢¹ý³ÌÔÚ´´½¨µÄʱºò¾Í½øÐÐÁ˱àÒ룬½«À´Ê¹ÓõÄʱºò²»ÓÃÔÙÖØбàÒë¡£Ò»°ãµÄSQLÓï¾äÿִÐÐÒ»´Î¾ÍÐèÒª±àÒëÒ»´Î£¬ËùÒÔʹÓô洢¹ý³ÌÌá¸ßÁËЧÂÊ¡£
£¨3£©¼õÉÙÍøÂçÁ÷Á¿¡£´æ´¢¹ý³ÌλÓÚ·þÎñÆ÷ÉÏ£¬µ÷ÓõÄʱºòÖ»ÐèÒª´«µÝ´æ´¢¹ý³ÌµÄÃû³ÆÒÔ¼°²ÎÊý¾Í¿ÉÒÔÁË£¬Òò´Ë½µµÍÁËÍøÂç´«ÊäµÄÊý¾ÝÁ¿¡£
£¨4£©°²È«ÐÔ¡£²ÎÊý»¯µÄ´æ´¢¹ý³Ì¿ÉÒÔ·ÀÖ¹SQL×¢ÈëʽµÄ¹¥»÷£¬¶øÇÒ¿ÉÒÔ½«Grant¡¢DenyÒÔ¼°R ......
»ù±¾·½·¨:
UPDATETEXT { table_name.dest_column_name dest_text_ptr }//{ Òª¸üеıíÒÔ¼° text¡¢ntext »ò image ÁеÄÃû³Æ,Ö¸ÏòÒª¸üÐ嵀 text¡¢ntext »ò image Êý¾ÝµÄÎı¾Ö¸ÕëµÄÖµ£¨ÓÉ TEXTPTR º¯Êý·µ»Ø£©¡£dest_text_ptr ±ØÐëΪÊý¾ÝÀàÐÍ binary(16)¡£}
{ NULL | insert_offset }
{ NULL | delete_length }
[ WITH LOG ]
[ inserted_data
| { table_name.src_column_name src_text_ptr } ]
вåÈëµÄÊý¾Ý¿ÉÒÔÊǵ¥¸ö inserted_data ³£Á¿¡¢±íÃû¡¢ÁÐÃû»òÎı¾Ö¸Õë¡£
Update ²Ù×÷ UPDATETEXT ²ÎÊý Ìæ»»ÏÖÓÐÊý¾ÝÖ¸¶¨Ò»¸ö·Ç¿Õ insert_offset Öµ¡¢·ÇÁã delete_length ÖµºÍÒª²åÈëµÄÐÂÊý¾Ý¡£É¾³ýÏÖÓÐÊý¾ÝÖ¸¶¨Ò»¸ö·Ç¿Õ insert_offset Öµ¡¢·ÇÁã delete_length ÖµºÍÒª²åÈëµÄÐÂÊý¾Ý¡£²»Ö¸¶¨Òª²åÈëµÄÐÂÊý¾Ý¡£²åÈëÐÂÊý¾ÝÖ¸¶¨ insert_offset Öµ¡¢Îª 0 µÄ delete_length ÖµºÍÒª²åÈëµÄÐÂÊý¾Ý¡£
Ϊ»ñµÃ×î¼ÑÐÔ ......
»ù±¾·½·¨:
UPDATETEXT { table_name.dest_column_name dest_text_ptr }//{ Òª¸üеıíÒÔ¼° text¡¢ntext »ò image ÁеÄÃû³Æ,Ö¸ÏòÒª¸üÐ嵀 text¡¢ntext »ò image Êý¾ÝµÄÎı¾Ö¸ÕëµÄÖµ£¨ÓÉ TEXTPTR º¯Êý·µ»Ø£©¡£dest_text_ptr ±ØÐëΪÊý¾ÝÀàÐÍ binary(16)¡£}
{ NULL | insert_offset }
{ NULL | delete_length }
[ WITH LOG ]
[ inserted_data
| { table_name.src_column_name src_text_ptr } ]
вåÈëµÄÊý¾Ý¿ÉÒÔÊǵ¥¸ö inserted_data ³£Á¿¡¢±íÃû¡¢ÁÐÃû»òÎı¾Ö¸Õë¡£
Update ²Ù×÷ UPDATETEXT ²ÎÊý Ìæ»»ÏÖÓÐÊý¾ÝÖ¸¶¨Ò»¸ö·Ç¿Õ insert_offset Öµ¡¢·ÇÁã delete_length ÖµºÍÒª²åÈëµÄÐÂÊý¾Ý¡£É¾³ýÏÖÓÐÊý¾ÝÖ¸¶¨Ò»¸ö·Ç¿Õ insert_offset Öµ¡¢·ÇÁã delete_length ÖµºÍÒª²åÈëµÄÐÂÊý¾Ý¡£²»Ö¸¶¨Òª²åÈëµÄÐÂÊý¾Ý¡£²åÈëÐÂÊý¾ÝÖ¸¶¨ insert_offset Öµ¡¢Îª 0 µÄ delete_length ÖµºÍÒª²åÈëµÄÐÂÊý¾Ý¡£
Ϊ»ñµÃ×î¼ÑÐÔ ......
Ê×ÏÈ£¬×öÒ»µã˵Ã÷¡£FlexÊDz»ÄÜÖ±½ÓÁ¬½ÓÊý¾Ý¿âµÄ£¬ÕâÒ»µã´ó¼ÒÐèÒªÖªµÀ£¬ËüÖ»Äܼä½ÓµØÁ¬½ÓÊý¾Ý¿â¡£FlexÖÐÌṩÁËÈýÖÖ·½Ê½£ºHttpService£¬WebService ºÍRemoteObject¡£ÆäÖÐHttpService¿ÉÒÔÖ±½Ó»ñÈ¡XMLÖеÄÊý¾Ý£¬»¹¿ÉÒÔͨ¹ýJSP,ASPÒÔ¼°PHP¶ÁÈ¡Êý¾Ý¿âÖеÄÊý¾Ý£¬Õâ¸ö±È½Ï¼òµ¥£¬¶øÇÒÍøÉÏÒ²ÓкܶàÀý×Ó£¬ÎҾͲ»¶à˵ÁË¡£WebServiceÎÒ²»¶®£¬Çë×Ô¼º²é×ÊÁÏ¡£ÎÒÒ»Ö±ÓõÄÊÇJAVA¶ÔÏóÁ¬½ÓÊý¾Ý¿â£¬¸Ð¾õÕâ¸öͦ·½±ã£¬¶øÇÒ J2EEµÄ¼¼ÊõÒѾºÜ³ÉÊì¡£½ñÌìµÄ½Ì³Ì¾ÍÊÇÒÔ Flex + JAVA + SQLServer»ñÈ¡Êý¾Ý¿â¹«¸æÐÅϢΪÀý¼òµ¥ËµÒ»ÏÂRemoteObjectµÄÓ÷¨¡£
Ç°Ìá
1.È·±£Äã°²×°ÁËFlex Data Service¡£Õâ¸ö¶ÔÓÚµ¥¸öCUPÎÞÏÞAPPÊÇÃâ·ÑµÄ£¬¿ÉÒÔÈ¥AdobeÏÂÔØ¡£Èç¹ûÖ»ÊǶÁÈ¡XMLÎļþÊDz»ÐèÒªÕâ¸öµÄ£¬Á¬½ÓÊý¾Ý¿â¾ÍÐèÒªËüÁË¡£
2.°²×°ÁËFlex Builder»òÕßÓÐFlex SDK¡£ÎÒÕâÀïʹÓõÄÊÇFlex Builder£¨IDE¾ÍÊÇ·½±ã°¡ ^_^£©¡£
3.°²×°ÁËSQLServerÊý¾Ý¿â¡£
4.°²×°ÁËJRUN»òÕßtomcat»òÆäËüµÄJ2EEÈÝÆ÷£¬ÒòΪ·¢²¼µÄʱºòÎÒÃǵijÌÐòÒªÔËÐÐÔÚJ2EEƽ̨ÉÏ¡£
5.°²×°ÁËJDK¡£
µÚÒ»²½£º´´½¨Êý¾Ý¿â
ÕâÀïÎÒÃÇÓÐÒ»¸ö¹«¸æ±í£¬±íÃûΪBulletin¡£½á¹¹ÈçÏ£º
×Ö¶ÎÃû³Æ ×Ö¶ÎÀà ......
Ê×ÏÈ£¬×öÒ»µã˵Ã÷¡£FlexÊDz»ÄÜÖ±½ÓÁ¬½ÓÊý¾Ý¿âµÄ£¬ÕâÒ»µã´ó¼ÒÐèÒªÖªµÀ£¬ËüÖ»Äܼä½ÓµØÁ¬½ÓÊý¾Ý¿â¡£FlexÖÐÌṩÁËÈýÖÖ·½Ê½£ºHttpService£¬WebService ºÍRemoteObject¡£ÆäÖÐHttpService¿ÉÒÔÖ±½Ó»ñÈ¡XMLÖеÄÊý¾Ý£¬»¹¿ÉÒÔͨ¹ýJSP,ASPÒÔ¼°PHP¶ÁÈ¡Êý¾Ý¿âÖеÄÊý¾Ý£¬Õâ¸ö±È½Ï¼òµ¥£¬¶øÇÒÍøÉÏÒ²ÓкܶàÀý×Ó£¬ÎҾͲ»¶à˵ÁË¡£WebServiceÎÒ²»¶®£¬Çë×Ô¼º²é×ÊÁÏ¡£ÎÒÒ»Ö±ÓõÄÊÇJAVA¶ÔÏóÁ¬½ÓÊý¾Ý¿â£¬¸Ð¾õÕâ¸öͦ·½±ã£¬¶øÇÒ J2EEµÄ¼¼ÊõÒѾºÜ³ÉÊì¡£½ñÌìµÄ½Ì³Ì¾ÍÊÇÒÔ Flex + JAVA + SQLServer»ñÈ¡Êý¾Ý¿â¹«¸æÐÅϢΪÀý¼òµ¥ËµÒ»ÏÂRemoteObjectµÄÓ÷¨¡£
Ç°Ìá
1.È·±£Äã°²×°ÁËFlex Data Service¡£Õâ¸ö¶ÔÓÚµ¥¸öCUPÎÞÏÞAPPÊÇÃâ·ÑµÄ£¬¿ÉÒÔÈ¥AdobeÏÂÔØ¡£Èç¹ûÖ»ÊǶÁÈ¡XMLÎļþÊDz»ÐèÒªÕâ¸öµÄ£¬Á¬½ÓÊý¾Ý¿â¾ÍÐèÒªËüÁË¡£
2.°²×°ÁËFlex Builder»òÕßÓÐFlex SDK¡£ÎÒÕâÀïʹÓõÄÊÇFlex Builder£¨IDE¾ÍÊÇ·½±ã°¡ ^_^£©¡£
3.°²×°ÁËSQLServerÊý¾Ý¿â¡£
4.°²×°ÁËJRUN»òÕßtomcat»òÆäËüµÄJ2EEÈÝÆ÷£¬ÒòΪ·¢²¼µÄʱºòÎÒÃǵijÌÐòÒªÔËÐÐÔÚJ2EEƽ̨ÉÏ¡£
5.°²×°ÁËJDK¡£
µÚÒ»²½£º´´½¨Êý¾Ý¿â
ÕâÀïÎÒÃÇÓÐÒ»¸ö¹«¸æ±í£¬±íÃûΪBulletin¡£½á¹¹ÈçÏ£º
×Ö¶ÎÃû³Æ ×Ö¶ÎÀà ......
Ê×ÏÈ£¬×öÒ»µã˵Ã÷¡£FlexÊDz»ÄÜÖ±½ÓÁ¬½ÓÊý¾Ý¿âµÄ£¬ÕâÒ»µã´ó¼ÒÐèÒªÖªµÀ£¬ËüÖ»Äܼä½ÓµØÁ¬½ÓÊý¾Ý¿â¡£FlexÖÐÌṩÁËÈýÖÖ·½Ê½£ºHttpService£¬WebService ºÍRemoteObject¡£ÆäÖÐHttpService¿ÉÒÔÖ±½Ó»ñÈ¡XMLÖеÄÊý¾Ý£¬»¹¿ÉÒÔͨ¹ýJSP,ASPÒÔ¼°PHP¶ÁÈ¡Êý¾Ý¿âÖеÄÊý¾Ý£¬Õâ¸ö±È½Ï¼òµ¥£¬¶øÇÒÍøÉÏÒ²ÓкܶàÀý×Ó£¬ÎҾͲ»¶à˵ÁË¡£WebServiceÎÒ²»¶®£¬Çë×Ô¼º²é×ÊÁÏ¡£ÎÒÒ»Ö±ÓõÄÊÇJAVA¶ÔÏóÁ¬½ÓÊý¾Ý¿â£¬¸Ð¾õÕâ¸öͦ·½±ã£¬¶øÇÒ J2EEµÄ¼¼ÊõÒѾºÜ³ÉÊì¡£½ñÌìµÄ½Ì³Ì¾ÍÊÇÒÔ Flex + JAVA + SQLServer»ñÈ¡Êý¾Ý¿â¹«¸æÐÅϢΪÀý¼òµ¥ËµÒ»ÏÂRemoteObjectµÄÓ÷¨¡£
Ç°Ìá
1.È·±£Äã°²×°ÁËFlex Data Service¡£Õâ¸ö¶ÔÓÚµ¥¸öCUPÎÞÏÞAPPÊÇÃâ·ÑµÄ£¬¿ÉÒÔÈ¥AdobeÏÂÔØ¡£Èç¹ûÖ»ÊǶÁÈ¡XMLÎļþÊDz»ÐèÒªÕâ¸öµÄ£¬Á¬½ÓÊý¾Ý¿â¾ÍÐèÒªËüÁË¡£
2.°²×°ÁËFlex Builder»òÕßÓÐFlex SDK¡£ÎÒÕâÀïʹÓõÄÊÇFlex Builder£¨IDE¾ÍÊÇ·½±ã°¡ ^_^£©¡£
3.°²×°ÁËSQLServerÊý¾Ý¿â¡£
4.°²×°ÁËJRUN»òÕßtomcat»òÆäËüµÄJ2EEÈÝÆ÷£¬ÒòΪ·¢²¼µÄʱºòÎÒÃǵijÌÐòÒªÔËÐÐÔÚJ2EEƽ̨ÉÏ¡£
5.°²×°ÁËJDK¡£
µÚÒ»²½£º´´½¨Êý¾Ý¿â
ÕâÀïÎÒÃÇÓÐÒ»¸ö¹«¸æ±í£¬±íÃûΪBulletin¡£½á¹¹ÈçÏ£º
×Ö¶ÎÃû³Æ ×Ö¶ÎÀàÐÍ&nbs ......
Ê×ÏÈ£¬×öÒ»µã˵Ã÷¡£FlexÊDz»ÄÜÖ±½ÓÁ¬½ÓÊý¾Ý¿âµÄ£¬ÕâÒ»µã´ó¼ÒÐèÒªÖªµÀ£¬ËüÖ»Äܼä½ÓµØÁ¬½ÓÊý¾Ý¿â¡£FlexÖÐÌṩÁËÈýÖÖ·½Ê½£ºHttpService£¬WebService ºÍRemoteObject¡£ÆäÖÐHttpService¿ÉÒÔÖ±½Ó»ñÈ¡XMLÖеÄÊý¾Ý£¬»¹¿ÉÒÔͨ¹ýJSP,ASPÒÔ¼°PHP¶ÁÈ¡Êý¾Ý¿âÖеÄÊý¾Ý£¬Õâ¸ö±È½Ï¼òµ¥£¬¶øÇÒÍøÉÏÒ²ÓкܶàÀý×Ó£¬ÎҾͲ»¶à˵ÁË¡£WebServiceÎÒ²»¶®£¬Çë×Ô¼º²é×ÊÁÏ¡£ÎÒÒ»Ö±ÓõÄÊÇJAVA¶ÔÏóÁ¬½ÓÊý¾Ý¿â£¬¸Ð¾õÕâ¸öͦ·½±ã£¬¶øÇÒ J2EEµÄ¼¼ÊõÒѾºÜ³ÉÊì¡£½ñÌìµÄ½Ì³Ì¾ÍÊÇÒÔ Flex + JAVA + SQLServer»ñÈ¡Êý¾Ý¿â¹«¸æÐÅϢΪÀý¼òµ¥ËµÒ»ÏÂRemoteObjectµÄÓ÷¨¡£
Ç°Ìá
1.È·±£Äã°²×°ÁËFlex Data Service¡£Õâ¸ö¶ÔÓÚµ¥¸öCUPÎÞÏÞAPPÊÇÃâ·ÑµÄ£¬¿ÉÒÔÈ¥AdobeÏÂÔØ¡£Èç¹ûÖ»ÊǶÁÈ¡XMLÎļþÊDz»ÐèÒªÕâ¸öµÄ£¬Á¬½ÓÊý¾Ý¿â¾ÍÐèÒªËüÁË¡£
2.°²×°ÁËFlex Builder»òÕßÓÐFlex SDK¡£ÎÒÕâÀïʹÓõÄÊÇFlex Builder£¨IDE¾ÍÊÇ·½±ã°¡ ^_^£©¡£
3.°²×°ÁËSQLServerÊý¾Ý¿â¡£
4.°²×°ÁËJRUN»òÕßtomcat»òÆäËüµÄJ2EEÈÝÆ÷£¬ÒòΪ·¢²¼µÄʱºòÎÒÃǵijÌÐòÒªÔËÐÐÔÚJ2EEƽ̨ÉÏ¡£
5.°²×°ÁËJDK¡£
µÚÒ»²½£º´´½¨Êý¾Ý¿â
ÕâÀïÎÒÃÇÓÐÒ»¸ö¹«¸æ±í£¬±íÃûΪBulletin¡£½á¹¹ÈçÏ£º
×Ö¶ÎÃû³Æ ×Ö¶ÎÀàÐÍ&nbs ......