The multi-part identifier "#StagingA.Number " could not be bound.

  • When I run this code:

    SELECT 1

    FROM [AS400DB_JDE].WTESt.TESTD.F0212 jde

    WHERE CONVERT(INT,#StagingA.[Number ]) = jde.Number

    I get error:

    The multi-part identifier "#StagingA.Number " could not be bound.

    Is anyone knows why?

    Thank you

  • Because the table #StagingA is defined nowhere in your query.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Pls post the actual query so we can help. This is clearly not what you are running.

  • I got it. Thank you

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply