USE Index_Viewer
GO

DECLARE @x VARCHAR(20) = 'insureINDEX'
DECLARE @bt NVARCHAR(50) = 'Daily'

SELECT *
FROM dbo.v_ARTICLE___ART
WHERE XmlIndex = @x AND BatchType = @bt

