# Converting All Layers to SQL-Server Layer

**URL:** <https://community.thinkgeo.com/t/converting-all-layers-to-sql-server-layer/1179>\
**Category:** WinForms\
**Created:** [April 20, 2010, 3:55am UTC](https://community.thinkgeo.com/t/converting-all-layers-to-sql-server-layer/1179 "2010-04-20T03:55:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Behnam](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/b/b4bc9f/32.png) [@Behnam](https://community.thinkgeo.com/u/Behnam)\
**Post date:** [April 20, 2010, 3:55am UTC](https://community.thinkgeo.com/t/converting-all-layers-to-sql-server-layer/1179/1 "2010-04-20T03:55:39Z")

</div>

In&nbsp;our&nbsp;project&nbsp;we&nbsp;deside&nbsp;to&nbsp;convert&nbsp;all&nbsp;layers&nbsp;type&nbsp;shapefile&nbsp;layer,&nbsp;tablfile&nbsp;layer,...)&nbsp;to&nbsp;SQL-Server2008&nbsp;layer&nbsp;and&nbsp;then&nbsp;working&nbsp;with&nbsp;it&nbsp;inside&nbsp;the&nbsp;application.

do&nbsp;you&nbsp;think&nbsp;this&nbsp;convert&nbsp;will&nbsp;increase&nbsp;the&nbsp;performance&nbsp;or&nbsp;decrease?

do&nbsp;you&nbsp;think&nbsp;it's&nbsp;good&nbsp;ides?

does&nbsp;it&nbsp;possible&nbsp;to&nbsp;convert&nbsp;all&nbsp;the&nbsp;layer&nbsp;type&nbsp;to&nbsp;SQLServer2008&nbsp;layer&nbsp;and&nbsp;vice&nbsp;versa?

regards,

Ben

&nbsp;

---

<div class="post-metadata">

**Author:** ![Ben](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ben/32/25720_2.png) [@Ben](https://community.thinkgeo.com/u/Ben)\
**Post date:** [April 21, 2010, 12:19am UTC](https://community.thinkgeo.com/t/converting-all-layers-to-sql-server-layer/1179/2 "2010-04-21T00:19:39Z")

</div>

Hi,&nbsp;

About&nbsp;the&nbsp;performance&nbsp;difference&nbsp;between&nbsp;VS2008&nbsp;and&nbsp;Shape&nbsp;File,&nbsp;please&nbsp;have&nbsp;a&nbsp;look&nbsp;at&nbsp;a&nbsp;thread&nbsp;here.&nbsp;&nbsp;Generally,&nbsp;if&nbsp;the&nbsp;data&nbsp;is&nbsp;on&nbsp;a&nbsp;remote&nbsp;machine,&nbsp;SQL2008&nbsp;is&nbsp;a&nbsp;bit&nbsp;faster&nbsp;than&nbsp;shape&nbsp;file,&nbsp;but&nbsp;if&nbsp;it&nbsp;is&nbsp;on&nbsp;local&nbsp;machine,&nbsp;shape&nbsp;file&nbsp;will&nbsp;be&nbsp;faster&nbsp;as&nbsp;it&nbsp;can&nbsp;be&nbsp;well&nbsp;cached.  
[gis.thinkgeo.com/Support/Dis...fault.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/12/aft/5753/afv/topic/Default.aspx)  
&nbsp;  
About&nbsp;the&nbsp;conversions,&nbsp;I&nbsp;think&nbsp;you&nbsp;can&nbsp;convert&nbsp;all&nbsp;types&nbsp;of&nbsp;shapefile&nbsp;to&nbsp;Sql2008,&nbsp;but&nbsp;cannot&nbsp;do&nbsp;the&nbsp;other&nbsp;way.&nbsp;That’s&nbsp;because&nbsp;one&nbsp;shape&nbsp;file&nbsp;can&nbsp;only&nbsp;hold&nbsp;one&nbsp;type&nbsp;of&nbsp;shapes,&nbsp;but&nbsp;SQL2008&nbsp;can&nbsp;hold&nbsp;multi&nbsp;types&nbsp;of&nbsp;shapes&nbsp;(like&nbsp;point&nbsp;and&nbsp;polygon)&nbsp;in&nbsp;one&nbsp;table.&nbsp;That&nbsp;means&nbsp;you&nbsp;cannot&nbsp;convert&nbsp;one&nbsp;SQL2008&nbsp;table&nbsp;to&nbsp;a&nbsp;corresponding&nbsp;shape&nbsp;file.  
&nbsp;  
The&nbsp;following&nbsp;link&nbsp;shows&nbsp;how&nbsp;to&nbsp;use&nbsp;a&nbsp;tool&nbsp;to&nbsp;convert&nbsp;data&nbsp;from&nbsp;Shapefile&nbsp;to&nbsp;Sql2008.  
[gis.thinkgeo.com/Support/Dis...fault.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/4903/afv/topic/afpg/1/Default.aspx)  
&nbsp;  
Thanks,  
&nbsp;  
Ben
