Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

IF condition not working in sql execute task SSIS

$
0
0

IF condition not working in sql execute task SSIS

getting error :

The query failed to parse. Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'.

I'm checking for the table is there or not which i have created in excel destination.

How do I tackle this ?

IF OBJECT_ID(N'MyExcel')ISNOTNULLBEGINDROPTABLE MyExcel;END;


Ashish Fugat (ashuthinksatgmail.com) SE




Viewing all articles
Browse latest Browse all 24688

Trending Articles



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