locked
谁能告诉我如何用Java存、取sql server2008中的Geometry类型的字段,谢谢 RRS feed

  • Question

  • 谁能告诉我如何用Java存、取sql server2008中的Geometry类型的字段,谢谢
    Thursday, April 30, 2009 5:46 AM

All replies

  • Who can tell me,I need your help!!!
    Thursday, April 30, 2009 6:00 AM
  • waiting for you...

    Thursday, April 30, 2009 6:02 AM
  • You can connect to a SQL Server 2008 database from a Java application using the JDBC connector available as part of the Feature pack - http://www.microsoft.com/downloads/details.aspx?FamilyId=C6C3E9EF-BA29-4A43-8D69-A2BED18FE73C&displaylang=en

    However, you can't use the geometry datatype/methods within a Java application itself - geometry and geography methods are provided by a managed .NET library (SqlServer.Types.dll) so can only be used external to SQL Server if contained in a .NET application.
    Beginning Spatial with SQL Server http://www.apress.com/book/view/1430218290
    Thursday, April 30, 2009 6:32 AM
    Answerer
  • 谢谢您,tanoshimi。。。

    Thursday, April 30, 2009 6:47 AM
  • Do you know              how can I                  use Hibernate      to       save it   ?
    Thursday, April 30, 2009 7:06 AM
  • 不客气, I'm afraid I can't help any more because I don't really use Java.

    Beginning Spatial with SQL Server http://www.apress.com/book/view/1430218290
    Thursday, April 30, 2009 9:36 AM
    Answerer
  • ... and i thought this was some spambot posting this thread, at first!
    -Pure Krome-
    Thursday, April 30, 2009 10:11 PM
  • It's so hard to tell these days.... damn those clever bots!
    Beginning Spatial with SQL Server http://www.apress.com/book/view/1430218290
    Friday, May 1, 2009 8:59 AM
    Answerer
  • Thank you all very much!
    Monday, May 4, 2009 8:25 AM