从查询结果中导出数据
Exporting data from query results
我正在使用 MS SQL 服务器 2014。
我有一个 table 值函数
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');
我希望将结果导出到预制的 csv,即 addy,csv。当我使用导出管理器时,我 selected sql 本机客户端 11 作为源。然后 select 平面文件作为目标。我从上面输入查询并点击下一步,我得到这个错误:
- 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.
谢谢
这不是我要创建的 sql 查询
Insert into [dbo].[ConversionofGeotest2]
Select * from Geotest2 ('62 NE 10th Ave', '', '', '97211', 'US');
我正在使用 MS SQL 服务器 2014。
我有一个 table 值函数
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');
我希望将结果导出到预制的 csv,即 addy,csv。当我使用导出管理器时,我 selected sql 本机客户端 11 作为源。然后 select 平面文件作为目标。我从上面输入查询并点击下一步,我得到这个错误:
- 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.
谢谢
这不是我要创建的 sql 查询
Insert into [dbo].[ConversionofGeotest2]
Select * from Geotest2 ('62 NE 10th Ave', '', '', '97211', 'US');