---
Sybase version:
Adaptive Server Enterprise/12.5.4/EBF 15432 ESD#8/P/Sun_svr4/OS 5.8/ase1254/2105/64-bit/FBO/Sat Mar 22 14:38:37
2008
---
Hi team,
I have a question regarding the creation of a stored procedure.
I have a sql script that
- check the existence of my stored process and if it exists it drops it
- create my stored process
- My stored process starts by checking the existence of a table and if it exists it drops it, then it creates it again.
The first time I sql script, no problem, the stored procedureis created. The I execute it, no problem, my table is here
Then I change a bit the code so I change my sql script then I execute it and this time the stored process creation failed with the following message
Msg 2714, Level 16, State 1
Server 'MX512ZN', Procedure 'PURGE_LINE', Line 19
There is already an object named 'SST_OUT_SCOPE' in the database.
How can I prevent such messages?
Thanks