我正在使用MS SQL server 2014.
我有一个表值函数
ALTER FUNCTION [dbo].[Resultsaddresssearch](@addressLine nvarchar, @locality nvarchar, @adminDistrict nvarchar, @postalCode nvarchar, @countryRegion nvarchar)
RETURNS TABLE (
[Name] nvarchar NULL,
[Point] [geography] NULL,
[BoundingBox] [geography] NULL
) WITH EXECUTE AS CALLER
AS
EXTERNAL NAME [xtest2].[addresssearch.UserDefinedFunctions].[GeocodeTVF]
我使用此查询
SELECT * FROM dbo.Resultsaddresssearch('999 NE 10th%', '', '', '', 'USA');
我希望将结果导出到preyded csv,即addy,csv。当我使用导出管理器时,我选择了sql本机客户端11作为源。然后选择Flat File作为目标。我从上面输入查询并点击下一步,我收到此错误:
- Column "Point": Source data type "204" was not found in the data type mapping file.
- Column "BoundingBox": Source data type "204" was not found in the data type mapping file.
由于
答案 0 :(得分:1)
除了创建一个sql查询之外,这不是我的意思
Insert into [dbo].[ConversionofGeotest2]
Select * from Geotest2 ('62 NE 10th Ave', '', '', '97211', 'US');