I would like to add a condition to a sequence in my SQL Server 2008 Maintenance Plan. This condition is based on the variable set by a T-SQL Statement Task:
declare @primary bit = 0
select @primary=1
from sys.database_mirroring
where mirroring_role = 1
How can I perform this task through the precedence constraint editor?