SQL ServerÈÕÖ¾Çå¿Õ·½·¨
תÔØ£ºhttp://blog.csdn.net/cnming/archive/2009/03/11/3979290.aspx
ÔÚ²éѯ·ÖÎöÆ÷ÖÐ˳ÐòÖ´ÐÐÒÔÏÂÈý²½£¬ÆäÖÐ databasename ΪÄãµÄÊý¾Ý¿âÎļþÃû
1.Çå¿ÕÈÕÖ¾£ºDUMP TRANSACTION databasename WITH NO_LOG
2.½Ø¶ÏÊÂÎñÈÕÖ¾£ºBACKUP LOG databasename WITH NO_LOG
3.ÊÕËõÊý¾Ý¿â£ºDBCC SHRINKDATABASE(databasename)
--//////////////////////////////////////////////////////////////////
SQL ServerÈÕÖ¾Çå¿Õ·½·¨
Ò»ÖÖ·½·¨£ºÇå¿ÕÈÕÖ¾¡£
1£®´ò¿ª²éѯ·ÖÎöÆ÷£¬ÊäÈëÃüÁî DUMP TRANSACTION Êý¾Ý¿âÃû WITH NO_LOG
2.ÔÙ´ò¿ªÆóÒµ¹ÜÀíÆ÷--ÓÒ¼üÄãҪѹËõµÄÊý¾Ý¿â--ËùÓÐÈÎÎñ--ÊÕËõÊý¾Ý¿â--ÊÕËõÎļþ--Ñ¡ÔñÈÕÖ¾Îļþ--ÔÚÊÕËõ·½Ê½ÀïÑ¡ÔñÊÕËõÖÁXXM,ÕâÀï»á¸ø³öÒ»¸öÔÊÐíÊÕËõµ½µÄ×îСMÊý,Ö±½ÓÊäÈëÕâ¸öÊý,È·¶¨¾Í¿ÉÒÔÁË¡£
·½·¨¶þ£º
Çå¿ÕÈÕÖ¾£º
------------------------------------------
BACKUP LOG ¿âÃû WITH NO_LOG
DBCC SHRINKFILE( 'ÈÕÖ¾ÎļþÃû ',еĴóСÊýÖµÐÍÈç1)
ÈÕÖ¾ÎļþÃûÊÇÕâÑùµÄ:
select name from sysfiles
Èç:
mastlog
---------------------------------------------
backup log DATABASENAME
with truncate_only
dbcc shrinkdatabase (DATABASENAME,SIZE)
ÈôÿÌìÓÐwhole back up µÄ»°¿ÉÒÔÉèÖÃÒ»job£¬
ÿ¸ôÈýÌì»òÒ»¸öÐÇÆÚÇå¿ÕÒ»´Î
ÕâÑùµÄ»°ÈÕÖ¾¾Í²»»á³¤´óÁËŶ
-------------------------------------
1: ɾ³ýLOG
1£º·ÖÀëÊý¾Ý¿â
2£ºÉ¾³ýLOGÎļþ
3£º¸½¼ÓÊý¾Ý¿â
´Ë·¨Éú³ÉеÄLOG£¬´óСֻÓÐ500¶àK
ÔÙ½«´ËÊý¾Ý¿âÉèÖÃ×Ô¶¯ÊÕËõ
2:Çå¿ÕÈÕÖ¾
DUMP TRANSACTION ¿âÃû 
Ïà¹ØÎĵµ£º
ÏÂÁÐÓï¾ä²¿·ÖÊÇMssqlÓï¾ä£¬²»¿ÉÒÔÔÚaccessÖÐʹÓá£
SQL·ÖÀࣺ
DDL—Êý¾Ý¶¨ÒåÓïÑÔ(CREATE£¬ALTER£¬DROP£¬DECLARE)
DML—Êý¾Ý²Ù×ÝÓïÑÔ(SELECT£¬DELETE£¬UPDATE£¬INSERT)
DCL—Êý¾Ý¿ØÖÆÓïÑÔ(GRANT£¬REVOKE£¬COMMIT£¬ROLLBACK)
Ê×ÏÈ,¼òÒª½éÉÜ»ù´¡Óï¾ä£º
1¡¢ËµÃ÷£º´´½¨Êý¾Ý¿â
CREATE DATABASE data ......
֮ǰżȻ¹äÍøÒ³µÄʱºò¿´µ½µÄ,ÏêϸµÄÍøÖ·Íü¼Çcopy¹ýÀ´ÁË£¬ÕæÊDZ§Ç¸¡£¾õµÃ¼òµ¥Ò׶®,ËùÒÔתÁË,ÎûÎû
ÓйطÖÒ³ SQL µÄ×ÊÁϺܶ࣬ÓеÄʹÓô洢¹ý³Ì£¬ÓеÄʹÓÃÓαꡣ±¾È˲»Ï²»¶Ê¹ÓÃÓα꣬ÎÒ¾õµÃËüºÄ×Ê¡¢Ð§Âʵͣ»Ê¹Óô洢¹ý³ÌÊǸö²»´íµÄÑ¡Ôñ£¬ÒòΪ´æ´¢¹ý³ÌÊǾ¹ýÔ¤±àÒëµÄ£¬Ö´ÐÐЧÂʸߣ¬Ò²¸üÁé»î¡£ÏÈ¿´¿´µ¥Ìõ SQL Óï¾äµÄ·ÖÒ³ SQL ......
ÈçºÎ´´½¨ SQL Server 2005 ÐÂÕË»§£¿
Ê×ÏÈÒªÉèÖÃSQL Server 2005µÄ·ÃÎÊ·½Ê½
1´ò¿ªSQL Server Management Studio
2·þÎñÆ÷Ãû³ÆÉÏÓÒ¼üÑ¡Ôñ“ÊôÐÔ”£¬´ò¿ª“·þÎñÆ÷ÊôÐÔ”¶Ô»°¿ò£¬ÔÚ“Ñ¡ÔñÒ³”ÀïÑ¡Ôñ“°²È«ÐÔ”£¬ÔÚ“·þÎñÆ÷Éí·ÝÑéÖ¤”ÀïÑ¡Ôñ“SQL ServerºÍWindows É ......
1.Ö±½Óµ¼ÈëÊý¾Ý¿â
shp2pgsql -s "4326" -W "GBK" E:\shape\Road_polyline.shp
road_cross| psql -U postgres -h 172.17.40.83 -d test
2.µ¼³ösql
shp2pgsql -s "4326" E:\shape\Road_polyline.shp blocks >
E:\roadcross\blocks.sql
3 ......