Hallo
I have a trigger which works well on SQL Server 2000. Now, I transferd the Database to SQL Server 2005, the "normal" database things works all fine, I have only troubles with 1 trigger. I debugged it and found the problem must be here, but I can't see it:
SET @whereClause = '(xsapnumber LIKE ''%' + @p_sapno + '%'')'exec
('declare LiteratureCursor Cursor For Select lid, xsapnumber, xcompany, xliteraturetype, xproductrange3, xcountry, xlanguage2, xapplication3, xliteraturdocument, xnewtcdesign, xremarks FROM xsalesliterature WHERE ' + @whereClause + ' ORDER by lid')OPEN
LiteratureCursor <<===== HERE THE TRIGGER FAILS ON 2005 but works on 2000
Has anyone of you an idea
Thanks
Hans