The query is working any way correctly. It is only a aprt of a big query. @var will either contain null or will contain a sequential guid. I just...
I have a query,SELECT TOP (@BatchCount)column1,column2, column3 FROM [table] WITH (NOLOCK) WHERE[column1] > @var OR@var is Null ORDER BY column1;...
Separate names with a comma.