Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 T-SQL in Maintenance Plan

Author  Topic 

dbalearner
Constraint Violating Yak Guru

272 Posts

Posted - 2012-02-27 : 20:59:55
I have a stored procedure on which there are 3 - 4 EXEC statements to run on T- SQL platform on SSMS.

But I was asked to do it in Maintenance Plan, which is not executing properly on creating the maintenance plan.

Can anyone let me know as to how I should use the T-SQL Statements to be used in the maintenance plans Please.

Peter99
Constraint Violating Yak Guru

498 Posts

Posted - 2012-02-28 : 11:13:20
Use Execute T-SQL Statement Task. Drag this task on designer. Double click on it and write your T-SQL Code.
Go to Top of Page
   

- Advertisement -