Hi @AjitNayak ,
Please check the version of your SQL Server. You may use select @@version
to get the information.
Make sure in the Visual Studio the target server version is same as your sql server version.
Right click on the project name, then choose Properties, Expand Configuration Properties, then click on General, and then choose the desired SQL Server Version for the TargetServerVersion property.
If it does not work, open the package, and then click edit script, rebuild the code and save the package and re-deploy for a try.
Or you may create a new package and then use the code to see if it could run successfully in SSMS.
Regards,
Zoe
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.