Skip to content

Doesn't work for SqlBulkCopy #29

@mxcolin

Description

@mxcolin

I've tried using this with SqlBulkCopy but I get the following:

System.InvalidOperationException: The given value 'System.Data.SqlTypes.SqlBytes' of type SqlBytes from the data source cannot be converted to type udt for Column 1 [GeoData] Row 1. ---> System.ArgumentException: Specified type is not registered on the target server. System.Data.SqlTypes.SqlBytes, System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.

I've tried creating the DataColumn as

DataColumn newGeometryColumn = new DataColumn("geo_column", typeof(SqlBytes));

But not sure if that's the right way to achieve this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions