DECLARE @SQL nvarchar(4000)
SET @SQL = 'SELECT .......... '
EXEC (@SQL)
EXEC sp_executesql @SQL,
N' @FromTime date,
@OIdentity nvarchar(50),
@Status int,
@Name nvarchar(50)',
@FromTime = @FromPlanStrTime,
@OIdentity = @OIdentity,
@Status = @Status,
@Name = @Name
No comments:
Post a Comment