shp2sqlserver 用法簡析_Mssql數(shù)據(jù)庫教程
教程Tag:暫無Tag,歡迎添加,賺取U幣!
推薦:sqlserver2005自動(dòng)創(chuàng)建數(shù)據(jù)表和自動(dòng)添加某個(gè)字段索引C#編程程序的時(shí)候,讓程序自動(dòng)創(chuàng)建數(shù)據(jù)表,然后給數(shù)據(jù)表添加索引,這個(gè)方法是在百度百科找到,我自已只是簡單的修改了一下
shp2sqlserver用法簡析官方說明:
shp2sqlserver is a command line tool for loading shapefiles into Microsoft SQL Server 2008. It is modeled after PostGIS's shp2pgsql, except that it loads directly into the database instead of writing sql to stdout.
用法:
復(fù)制代碼 代碼如下:hl5o.cn
shp2sqlserver.exe -h
Usage: shp2sqlserver.exe [OPTIONS]+ "connectionString" "path to shapefile"
Loads a shapefile into Microsoft SQL Server 2008
example: shp2sqlserver.exe "Data Source=.\SQLExpress2008;Initial Catalog=spatialtest;Integrated Security=true" myshape.shp
Options:
-s, --srid=VALUE The Spatial Reference ID (SRID). If not specified it defaults to -1.
-g, --geometry_column=VALUE The name of the geometry column
-t, --table_name=VALUE The table name to use
-k, --key_column=VALUE The name of the identity column to create for a primary key
-i, --index Create a spatial index
-l, --latlong Add spatial data as geography type
-a, --append Append data. If not specified, table will be created
-h, --help show this message and exit
示例:
shp2sqlserver -g="SHAPE" -s="4326" -i "Data Source=.;Initial Catalog=largesite;Integrated Security=false;user id=sa;password=123456;" "D:\data\xyz.shp"
作者 彭金華
分享:SQL Server 數(shù)據(jù)庫清除日志的方法SQLSERVER的數(shù)據(jù)庫日志占用很大的空間,下面提供三種方法用于清除無用的數(shù)據(jù)庫日志文件
相關(guān)Mssql數(shù)據(jù)庫教程:
- sql 語句練習(xí)與答案
- 深入C++ string.find()函數(shù)的用法總結(jié)
- SQL Server中刪除重復(fù)數(shù)據(jù)的幾個(gè)方法
- sql刪除重復(fù)數(shù)據(jù)的詳細(xì)方法
- SQL SERVER 2000安裝教程圖文詳解
- 使用sql server management studio 2008 無法查看數(shù)據(jù)庫,提示 無法為該請(qǐng)求檢索數(shù)據(jù) 錯(cuò)誤916解決方法
- SQLServer日志清空語句(sql2000,sql2005,sql2008)
- Sql Server 2008完全卸載方法(其他版本類似)
- sql server 2008 不允許保存更改,您所做的更改要求刪除并重新創(chuàng)建以下表
- SQL Server 2008 清空刪除日志文件(瞬間日志變幾M)
- Win7系統(tǒng)安裝MySQL5.5.21圖解教程
- 將DataTable作為存儲(chǔ)過程參數(shù)的用法實(shí)例詳解
Mssql數(shù)據(jù)庫教程Rss訂閱編程教程搜索
Mssql數(shù)據(jù)庫教程推薦
- 如何解決DB2中出現(xiàn)的SQL1032N錯(cuò)誤現(xiàn)象
- 遠(yuǎn)程連接SQL Server 2000服務(wù)器的解決方案
- Sql學(xué)習(xí)第二天——SQL DML與CTE概述
- 數(shù)據(jù)庫的分離及附加
- 怎樣利用SQL Server復(fù)制技術(shù)實(shí)現(xiàn)數(shù)據(jù)同步更新
- 如何快速掌握一些異常精妙的"SQL"語句
- SQLServer2005重建索引前后對(duì)比分析
- 解讀改善SQL Server內(nèi)存管理的問題
- SQL SERVER應(yīng)用問題解答13例(二)
- 怎樣減少SQL Server死鎖發(fā)生的情況
猜你也喜歡看這些
- Mysql字符集設(shè)置指南
- 解析如何使用Zend Framework 連接數(shù)據(jù)庫
- MySql優(yōu)化指南
- 網(wǎng)站模板MySQL timestamp自動(dòng)更新時(shí)間
- 基于unique與primary約束的區(qū)別分析
- 基于ubuntu中使用mysql實(shí)現(xiàn)opensips用戶認(rèn)證的解決方法
- Mysql DNS反向解析導(dǎo)致連接超時(shí)過程分析(skip-name-resolve)
- linux Xtrabackup安裝及使用方法
- 驗(yàn)證實(shí)例名稱是否正確
- MySQL筆記之字符串函數(shù)的應(yīng)用
- 相關(guān)鏈接:
- 教程說明:
Mssql數(shù)據(jù)庫教程-shp2sqlserver 用法簡析
。