SQL Server消息245,级别16,状态1,行13中的错误

时间:2016-12-18 04:15:34

标签: sql sql-server

我正在

  

将varchar值DSH转换为数据类型int时转换失败。

有人可以帮我解决吗?

select 
    C.[ChargeID], PG.[LocationID], R.[ReferringPhysicianID],
    P.[PhysicianID], C.[ChargeSK],
    R.[ReferringPhysicianSK], C.[PhysicianSK], PG.[LocationID],
    PG.[PAGPracticeID]
from 
    ods.dbo.charge C 
inner join 
    ODS.[dbo].[Physician] P on P.[MergeSupportID] = C.[MergeSupportID]
                            and P.[MergeLevel1Code] = C.[MergeLevel1Code]
                            and P.[PhysicianID] = C.[PhysicianID]
inner join 
    ODS.[dbo].[ReferringPhysician] R on R.[MergeSupportID] = C.[MergeSupportID]
                                     and R.[MergeLevel1Code]=C.[MergeLevel1Code]
                                     and R.[ReferringPhysicianID] = C.ReferringPhysicianID
inner join 
    ODS.[dbo].[PhysicianGroup] PG on PG.[MergeLevel1Code] = C.[MergeSupportID]
                                  and PG.[PhysicianID] = C.[PhysicianID]
                                  and PG.[LocationID] = C.[LocationID]

0 个答案:

没有答案