Viv*_*vek 6 sql ssis sql-server-2008
我有两个问题:
1)我有一个DT_NTEXT列,其值是我从数据库中提取并尝试输入Excel中的Test列.我正在使用它之间的数据转换步骤将其转换为DT_TEXT(unicode文本版本).
最后,Excel连接管理器最终写入ZERO行(它显示截断警告,但执行时没有错误).我甚至在数据流中添加了一个数据查看器,其步骤如下:
" 在将源任务连接到数据转换和数据转换到目标任务的箭头中,双击并打开数据流路径编辑器.单击数据查看器,然后单击添加,然后单击确定.这将允许您查看正在通过管道. "
当我运行我的包裹时,我没有看到任何差异.
2)我是否可以将DT_NTEXT列转换为DT_WTSR列.在完美的场景中,我应该将此列添加到Excel中的标准nvarchar列中.
尝试使用数据类型长文本。\n将 Excel 目标放置在数据流表面上后,将源连接到目标。单击“新建”作为 Excel 工作表的名称。让系统决定数据类型,看看是否可以解决您的问题。
\n\n这就是我所做的,帮助我得出这个结论:
\n\n创建一个表
\n\nCREATE TABLE [dbo].[ntext]\n(\n [ID] [int] NULL,\n [NTEXT] [ntext] NULL\n) ON [PRIMARY]\nRun Code Online (Sandbox Code Playgroud)插入一些记录
\n\n1 asdsadsad\n2 qweqerrq\n3 But now, looping through the 351 flat-files to load the voter history records for the State's cities and towns, the package may process a few files, or up to 20 at a pop, before failing. I've been executing the packages interactively. This is the text from the Output window from the last run:\n4 jus/juice, kilogramme/kilogram, lampe/lamp, m\xc3\xa9re/mother, nuit/night, oc\xc3\xa9an/ocean, pantalon/pants, quintupl\xc3\xa9/\n5 \xd9\x85\xd8\xa8\xd8\xa7\xd8\xb4\xd8\xb1\xe2\x80\x8e - \xd8\xa7\xd8\xb3\xd8\xaa\xd9\x85\xd8\xb9 \xd9\x85\xd8\xa8\xd8\xa7\xd8\xb4\xd8\xb1\xd8\xa9 \xd8\xa5\xd9\x84\xd9\x89 \xd8\xb1\xd8\xa7\xd8\xaf\xd9\x8a\xd9\x88 \xd8\xa8\xd9\x8a \xd8\xa8\xd9\x8a ...\xe2\x80\x8e - \xd8\xa3\xd8\xae\xd8\xa8\xd8\xa7\xd8\xb1 \xd8\xa7\xd9\x84\xd8\xb4\xd8\xb1\xd9\x82 \xd8\xa7\xd9\x84\xd8\xa7\xd9\x88\xd8\xb3\xd8\xb7\xe2\x80\x8e -\n6 Do not know what it says... just copied from some arabic web page from BBC site\nRun Code Online (Sandbox Code Playgroud)使用 DFT 创建测试包。
\n\nOleDB Source = 您创建的表
\n\nExcel Dest = 创建新的 OLEDB 连接管理器
\n\n数据访问模式=表或视图
\n\nExcel 工作表的名称...选择新建...
| 归档时间: |
|
| 查看次数: |
5415 次 |
| 最近记录: |