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