<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: SQLSTATE ERROR in log file in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sqlstate-error-in-log-file/qaa-p/13829618#M4860461</link>
    <description>&lt;P&gt;In my understanding, an invalid statement cannot be executed, and as such won't be contained in the &lt;STRONG&gt;transaction log&lt;/STRONG&gt;, so you won't be able to find it there...&lt;/P&gt;
&lt;P&gt;In addition to Chris's suggestion to diagnose the issue, you might also add error logging to your stored procedures by writing to the &lt;STRONG&gt;console log&lt;/STRONG&gt; (dbsrvX -o).&lt;/P&gt;
&lt;P&gt;For a sample, see &lt;A href="https://sqlanywhere-forum.sap.com/questions/12459"&gt;Mark's answer here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Oct 2021 02:40:46 GMT</pubDate>
    <dc:creator>VolkerBarth</dc:creator>
    <dc:date>2021-10-28T02:40:46Z</dc:date>
    <item>
      <title>SQLSTATE ERROR in log file</title>
      <link>https://community.sap.com/t5/technology-q-a/sqlstate-error-in-log-file/qaq-p/13829616</link>
      <description>&lt;P&gt;Hello all!    sqlany 17
I have some procedures in database that cause ERROR: 
Error constant SQLE_INVALID_FORMAT_STRING_ARG_NUM 
ODBC 2 state 37000 
ODBC 3 state 42000 
Parameter 1 Argument number. 
Severity 16 
SQLCODE -294 
SQLSTATE 53W08 
Sybase error code 2749 &lt;/P&gt;
&lt;P&gt;I would like to find what cause this error, so I translated log file . But I see in log file that 
there is no raiserror statements, all I see is ROLLBACK WORK.
Is there any option to see this in database log or somewhere else?
Regards
Tomaz&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 08:58:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sqlstate-error-in-log-file/qaq-p/13829616</guid>
      <dc:creator>former_SQLA_member1694914</dc:creator>
      <dc:date>2021-10-27T08:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: SQLSTATE ERROR in log file</title>
      <link>https://community.sap.com/t5/technology-q-a/sqlstate-error-in-log-file/qaa-p/13829617#M4860460</link>
      <description>&lt;P&gt;Note that this error can be reported with TSQL PRINT also.&lt;/P&gt;
&lt;P&gt;You can use request level logging for this. If you are sure that the error is coming from a procedure, you can set request level logging to PROCEDURES.  For example, you can do so either at the command line or via SQL. Here is how to enable logging in SQL&lt;/P&gt;
&lt;P&gt;call sa_server_option( 'RequestLogging', 'PROCEDURES' );
call sa_server_option( 'RequestLogFile', 'requests.rll' );&lt;/P&gt;
&lt;P&gt;Here is how to disabled once you have identified the problem procedures.
call sa_server_option( 'RequestLogging', 'No' );
call sa_server_option( 'RequestLogFile', '' );&lt;/P&gt;
&lt;P&gt;Here is example output showing the procedure name and the statement that is causing the error to be reported.&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;   =,&amp;lt;,2,PREPARE,call "foo"()
=,&amp;gt;,2,PREPARE,327872
+1,&amp;lt;,2,EXEC,327872
=,[,2,foo,3,raiserror 17001 '%1! %2! %3! %4! %5! %6! %7! %8! %9! %10! %11! %12! %13! %14! %15! %16! %17! %18! %19! %20! %21! %22!',1,2,3,4,5,6,7,8,9,10,11,12,14,14,15,16,17,18,19.2,21,22
=,],2,foo,3
=,E,2,-294,Format string argument number 21 is invalid
=,&amp;gt;,2,EXEC
+2004,&amp;lt;,2,DROP_STMT,327872
&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Oct 2021 23:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sqlstate-error-in-log-file/qaa-p/13829617#M4860460</guid>
      <dc:creator>chris_keating</dc:creator>
      <dc:date>2021-10-27T23:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: SQLSTATE ERROR in log file</title>
      <link>https://community.sap.com/t5/technology-q-a/sqlstate-error-in-log-file/qaa-p/13829618#M4860461</link>
      <description>&lt;P&gt;In my understanding, an invalid statement cannot be executed, and as such won't be contained in the &lt;STRONG&gt;transaction log&lt;/STRONG&gt;, so you won't be able to find it there...&lt;/P&gt;
&lt;P&gt;In addition to Chris's suggestion to diagnose the issue, you might also add error logging to your stored procedures by writing to the &lt;STRONG&gt;console log&lt;/STRONG&gt; (dbsrvX -o).&lt;/P&gt;
&lt;P&gt;For a sample, see &lt;A href="https://sqlanywhere-forum.sap.com/questions/12459"&gt;Mark's answer here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 02:40:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sqlstate-error-in-log-file/qaa-p/13829618#M4860461</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2021-10-28T02:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: SQLSTATE ERROR in log file</title>
      <link>https://community.sap.com/t5/technology-q-a/sqlstate-error-in-log-file/qaa-p/13829619#M4860462</link>
      <description>&lt;P&gt;Quillbot gives this answer a 100% AI written score.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 07:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sqlstate-error-in-log-file/qaa-p/13829619#M4860462</guid>
      <dc:creator>justin_willey</dc:creator>
      <dc:date>2024-06-17T07:45:54Z</dc:date>
    </item>
  </channel>
</rss>

