﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Geoff Albin  / Error Messages / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 16:02:35 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Error Messages</title><link>http://www.sqlservercentral.com/Forums/Topic1062204-2831-1.aspx</link><description>Please delete, posted in wrong area.</description><pubDate>Thu, 10 Feb 2011 11:42:09 GMT</pubDate><dc:creator>DBA_Oshvegas</dc:creator></item><item><title>Error Messages</title><link>http://www.sqlservercentral.com/Forums/Topic1062204-2831-1.aspx</link><description>I am getting two different messages from this procedure.  If I run the job I get this error, " Incorrect syntax near '%'. [SQLSTATE 42000] (Error 102)."  If I run the select statement in a query window, I get this one, "Only one expression can be specified in the select list when the subquery is not introduced with EXISTS".Here is the query from the job that is flagging these errrors:@query = 'select logdate, procInfo, ERRORLOG from tempdb.dbo.ErrorLog where Id &amp;gt;= (select TOP 1 Id from tempdb.dbo.ErrorLog WHERE ERRORLOG Like ''%Deadlock encountered%'' order by Id DESC)',I am running this on SQL2005.Any ideas?</description><pubDate>Thu, 10 Feb 2011 11:38:51 GMT</pubDate><dc:creator>DBA_Oshvegas</dc:creator></item></channel></rss>