Exporting data from a view

后端 未结 2 1006
借酒劲吻你
借酒劲吻你 2021-01-21 23:49

I am running the EXPORT WIZARD to a flat file on SQL Server 2008.

I am providing a query for this process which grabs data from a view:

SELECT [Full Date         


        
相关标签:
2条回答
  • 2021-01-22 00:02

    According to this the answer is to change all of your columns to the nvarchar datatype.

    0 讨论(0)
  • 2021-01-22 00:12

    Edit

    Datatypes for the columns in the error message need to be changed to NVARCHAR. Since you have a requirement to not modify the view, use CAST or CONVERT in the query to modify the appropriate columns. I would still ensure the UTF-8 code page is specified for the destination file just for consistency.

    Original

    In the Import/Export wizard, change the code page to 65001 (UTF-8) for the file destination.

    Destination code page

    0 讨论(0)
提交回复
热议问题