SQL Server Developer Center > SQL Server Forums > SQL Server Spatial > How to create SQL Geography type in C#
Ask a questionAsk a question
 

AnswerHow to create SQL Geography type in C#

  • Friday, October 23, 2009 8:28 PMTek_Tim Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,

    How do I create a geography type point using C#. I am looking for some examples, blogs etc for compact framework. I was looking at :
    http://jasonfollas.com/blog/archive/2008/12/11/using-ado.net-with-sql-server-spatial-objects.aspx but there are 2 problems-

    1) If I add Microsoft.SqlServer.Types in my windows mobile project as a reference and debug, the project starts deploying 20 different dlls like system.web etc onto device and the app folder becomes huge in size and device runs out of memory. Is there a CF version of this dll that I can add as a reference?

    2) There is no property for UDTName for sqlceParameter

    I would really appreciate if someone can help me out with this!
    Thanks
    Apurva

Answers

All Replies