sql error 208

I can't figure out why I'm getting this error... I can't even find that column anywhere in this code...

Sql Error: 208  Invalid object name 'keyWorkOrderTimeInArea'.

ALTER PROCEDURE [dbo].[p_EnterSimpleOrder]
      @keyArea int,
      @keyCompany int,
      @skuWorkOrder nvarchar(50)
as

set nocount on

Begin Try

      Declare @keyWorkOrder int

      Select @keyWorkOrder = keyWorkOrder
      From WorkOrder
      Where keyCompany = @keyCompany
      and        lower(skuWorkOrder) = lower(@skuWorkOrder)
      

      If @@rowcount = 0
            Begin
                  return 1
            End

      Select keyWorkOrder
      From WorkOrderTimeInArea
      Where keyArea      = @keyArea
      and   keyWorkOrder = @keyWorkOrder
      and   othBeginTime is not null
      and   othEndTime is null

      If @@rowcount > 0
            Begin
                  return 2
            End

      Insert Into WorkOrderTimeInArea(keyArea,keyWorkOrder,othBeginTime)
            Values(@keyArea,@keyWorkOrder,getdate())                  

      return 0

End Try

Begin Catch      
      print error_message()
      return error_number()
End Catch
LVL 1
picsnetAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

BrandonGalderisiCommented:
It is probably in a trigger somewhere.


Run this to find out
select * from information_schema.routines
where routine_definition like '%keyWorkOrderTimeInArea%'

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
picsnetAuthor Commented:
geezus spanking monkeys... i just started using triggers really, and i didn't even think about that
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2005

From novice to tech pro — start learning today.