Here is the output of SSIS Execute SQL task.
===================================
Package Validation Error (Package Validation Error)
===================================
Error at Data Flow Task [ADO NET Destination [2619]]: Failed to get properties of external columns. The table name you entered may not exist, or you do not have SELECT permission on the table object and an alternative attempt to get column properties through
connection has failed. Detailed error messages are:
Invalid object name 'dbo.Cam_Dim'.
No column information is found for table "dbo"."Cam_Dim" by querying System.Data.SqlClient.SqlConnection.
Error at Data Flow Task [SSIS.Pipeline]: "component "ADO NET Destination" (2619)" failed validation and returned validation status "VS_ISCORRUPT".
Error at Data Flow Task [SSIS.Pipeline]: One or more component failed validation.
Error at Data Flow Task: There were errors during task validation.
(Microsoft.DataTransformationServices.VsIntegration)
------------------------------
Program Location:
at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.ValidateAndRunDebugger(Int32 flags, DataWarehouseProjectManager manager, IOutputWindow outputWindow, DataTransformationsProjectConfigurationOptions options)
at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, ProjectItem startupProjItem, DataTransformationsProjectConfigurationOptions options)
at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchActivePackage(Int32 launchOptions)
at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options)
at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.Launch(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options)
Any Idea how to deal with this.
This is the sql command
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Cam_Dim]')and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].[Cam_Dim]GOWhen executing from SSMS it is working fine.