Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

create procedure failed because of table exist

$
0
0

---

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

  1. check the existence of my stored process and if it exists it drops it
  2. create my stored process
    1. 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


Viewing all articles
Browse latest Browse all 3587

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>