Stored Procedure and SELECT statement return different results

  • I got the answer (from StackOverFlow, ahem). I need to fully qualify my object names. We have a mobile.Employee table and a dbo.Employee table. Three of us were staring at this and didn't see it.

  • Glad to hear you got the answer.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Melanie Peterson (12/4/2014)


    I got the answer (from StackOverFlow, ahem). I need to fully qualify my object names. We have a mobile.Employee table and a dbo.Employee table. Three of us were staring at this and didn't see it.

    Could you please clarify ,Do you mean to say that SP execution was using Mobile schema and the simple Select query was using dbo schema ?

  • Yes, that's exactly what I mean.

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

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