Hello
I've need some guidance..
I need a view that is based on a query of a number of fields. One of which "Notes" is a SQL2000 text field. (Unfortunately I can't change it at this point)
The issues is of course my old friend ...
"The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator"
I AM using a LIKE operator, but I suspect the HAVING is what is preventing this from working.
Thanks in advance for any assistance.
Best,
Scott
I've need some guidance..
I need a view that is based on a query of a number of fields. One of which "Notes" is a SQL2000 text field. (Unfortunately I can't change it at this point)
Code:
SELECT Project, MIN(Date) AS UPLDate, Comp AS UPLComp
FROM dbo.Activities
GROUP BY ACode, Comp, Type, Project, Notes, Group
HAVING (TypeLIKE '%CATALOG%') AND (ACode = 'V') AND (Notes LIKE '%Upload%') AND (Group= 'MKTG')
The issues is of course my old friend ...
"The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator"
I AM using a LIKE operator, but I suspect the HAVING is what is preventing this from working.
Thanks in advance for any assistance.
Best,
Scott