Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

The data type could not be assigned to the column "Geography" in "SQL Server Native Client 11.0".

$
0
0

I'm trying to move some tables from a local network database (13.0.4001.0) to an Azure database (12.0.2000.8) using SQL Server 2017 Import and Export Data (64-bit).

I'm using the "SQL Server Native Client 11.0" provider for both the source and destination.

I'm running the app as Administrator.

The tables in question both have a column called Geography, and which have a data type of geography.

(The data in both columns has an SRID of 4326, but I don't think that's relevant.)

I get to the "Select Source Tables and Views" step, and when hitting next I get the error:

Column information for the source and the destination data could not be retrieved, or the data types of source columns were not mapped correctly to those available on the destination provider.

[dbo].[YYYY] -> [dbo].[YYYY]:
	      - The data type could not be assigned to the column "Geography" in "SQL Server Native Client 11.0".

[dbo].[XXXX] -> [dbo].[XXXX]:
	      - The data type could not be assigned to the column "Geography" in "SQL Server Native Client 11.0".

If I click "Edit Mappings" and scroll down to the column it has a Type of "<unknown type>".

If I click in the mapping table Type column then the list of types doesn't include Geography or Geometry.

After clicking on the row in the mapping table at the bottom it says "Source column: Geography geography". 

That indicates to me that it can read the type in okay, but it doesn't know about/support the spatial types.

I did find this SO post which suggests that the mapping files are missing the section about the geography type.

But having a look at various files in various folders it seemed that the geography (and geometry) types are defined there.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>