Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

If exists become an infinite loop..

$
0
0

Guys, do you have an idea why this simple code

IF OBJECT_ID('generatortriad', 'U') IS NOT NULL
DROP TABLE generatortriad

and this other code (attempt)

IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='generatortriad') DROP TABLE generatortriad

take a lot of time? Pratically infinite time, I had to kill the process ( SSIS) twice...

Viewing all articles
Browse latest Browse all 23857

Trending Articles



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