Can someone shed some light on this? I imagine it's just a setting somewhere, but it has me a little worried.
I have a dev environment, running on a virtual server. I created a proc on it and ran the proc. All is well, so I move the proc up to our parallel environment, not a virtual server. The next day, I went through and cleaned up a few joins, then compiled. I received the normal command completed successfully message. After that, I moved the proc up to parallel and compiled. There, it erred saying:
Msg 207, Level 16, State 1, Procedure MyProc, Line 277
Invalid column name 'MyColumn'.
I checked and sure enough, I left out a column I'm trying to use in an update statement. I would expect this to happen, however it doesn't do this in my dev environment.
I even went so far as to change the table name from MyTable to dugsdman..MyTable. In dev, even this compiles fine. There is not a dugsdman database. I know that the proc will error when I try to run it, but I'm curious to find out why my dev env will let it compile though...
It's easy to find info on the Net about sprocs erring, but not so much when trying to find something about one that doesn't.
Any help on this is appreciated.
I have a dev environment, running on a virtual server. I created a proc on it and ran the proc. All is well, so I move the proc up to our parallel environment, not a virtual server. The next day, I went through and cleaned up a few joins, then compiled. I received the normal command completed successfully message. After that, I moved the proc up to parallel and compiled. There, it erred saying:
Msg 207, Level 16, State 1, Procedure MyProc, Line 277
Invalid column name 'MyColumn'.
I checked and sure enough, I left out a column I'm trying to use in an update statement. I would expect this to happen, however it doesn't do this in my dev environment.
I even went so far as to change the table name from MyTable to dugsdman..MyTable. In dev, even this compiles fine. There is not a dugsdman database. I know that the proc will error when I try to run it, but I'm curious to find out why my dev env will let it compile though...
It's easy to find info on the Net about sprocs erring, but not so much when trying to find something about one that doesn't.
Any help on this is appreciated.