简体   繁体   English

无效的列名“无穷大”(odbc c#)

[英]invalid column name 'infinity' (odbc c#)

I have written a generic c# script task in ssis to take a salesforce table paramater, select the data from salesforce over odbc 32 bit driver, and insert the results into a DWH table in sqlserver using insert statements.我在 ssis 中编写了一个通用的 c# 脚本任务来获取 salesforce 表参数,通过 odbc 32 位驱动程序从 salesforce 中选择数据,并使用插入语句将结果插入到 sqlserver 中的 DWH 表中。

This has worked fine for most tables, but for a random table or so it generates the error "Invalid column name 'Infinity'".这对大多数表都很好,但对于随机表左右,它会生成错误“无效的列名 'Infinity'”。

Now i log the sql before I execute it, and it contains no reference to a column called Infinity.现在我在执行它之前记录 sql,它不包含对名为 Infinity 的列的引用。

I can run the ssis job manually (right click, execute) and it succeeds, its only when i execute with sp_start_job in a framework it fails, and fails at different row counts... (which may just be due to ordering from initial fetch, ie maybe there is some bad data, but again i log the sql before I execute and it succeeds when run manually)我可以手动运行 ssis 作业(右键单击,执行)并且它成功了,只有当我在框架中使用 sp_start_job 执行时它才会失败,并且在不同的行数下失败......(这可能只是由于从初始获取排序,即可能有一些错误的数据,但我在执行之前再次记录了 sql,手动运行时它会成功)

I haven't attached any code, as I don't think this is related to a code error, but some odd bug in ssis/c#/odbc, just after general ideas where to go from here?我没有附上任何代码,因为我不认为这与代码错误有关,而是在 ssis/c#/odbc 中出现了一些奇怪的错误,只是在一般想法之后?

似乎解决这个问题/防止它的方法是在插入中的所有字段周围加上单引号(即我相信一个浮点数、双精度数或一些数字字段合法以某种方式持有一个无穷大值,这个引用处理了它)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM