问题描述
最近,我将代码从sql Server移到了ETL工具(我想监视警报)。但是,我在运行时发现了此警报:
我的代码如下所示:
IF OBJECT_ID('aaa.bbb.ccc','U') IS NOT NULL DROP TABLE [aaa].[bbb].[ccc];
SELECT *,CASE WHEN ISNUMERIC(cell)>0 THEN LEFT(cell,6)*256+RIGHT(cell,3) ELSE
CASE WHEN ISNUMERIC(RIGHT(cell,6))>0 THEN LEFT(RIGHT(cell,6),5)*256+RIGHT(cell,1) END
END AS eci
INTO [aaa].[bbb].[ccc]
FROM [aaa].[bbb].[zzz]
where ddd not like '%eee%'
and cell <> '0'
and cell not like '%x' and cell not like '%y'
;
警报显示如下:
Failed to update database for [StandardFlowFileRecord[uuid=123-123-123-123,claim=,offset=0,name=123-123-123-123,size=0]] due to There is already an object named 'ccc' in the database.; it is possible that retrying the operation will succeed,so routing to retry: com.microsoft.sqlserver.jdbc.sqlServerException: There is already an object named 'ccc' in the database.
我不知道为什么删除了该表(如果存在的话),但仍然说该表已经在数据库中。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)