<?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: Inserting files in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/inserting-files/qaa-p/13836478#M4867321</link>
    <description>&lt;P&gt;Yes I am using a directory access proxy table.&lt;/P&gt;
&lt;P&gt;Here's a shortened version of the statement since it won't let me post everything.&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;Insert&lt;/SPAN&gt; &lt;SPAN class="n"&gt;into&lt;/SPAN&gt; &lt;SPAN class="n"&gt;DBA&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Attachments&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Contents&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="n"&gt;File_Name&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="nb"&gt;values&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;0&lt;/SPAN&gt;&lt;SPAN class="n"&gt;X5768656E20492072756E206120616E20696E736&lt;/SPAN&gt;&lt;SPAN class="sr"&gt;&amp;lt;skipped&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;206572&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="s"&gt;'test.txt'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;&lt;EM&gt;(Update: data has been truncated to make the page readable.)&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Sep 2012 01:44:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-09-12T01:44:59Z</dc:date>
    <item>
      <title>Inserting files</title>
      <link>https://community.sap.com/t5/technology-q-a/inserting-files/qaq-p/13836475</link>
      <description>&lt;P&gt;When I run a an insert statement with a large "contents" value I get an error "Could not execute statement. Server 'DirectoryServer': No such file or directory SQLCODE=-660, ODBC 3 State="HY000"&lt;/P&gt;
&lt;P&gt;Anybody know why I'm erroring out?  This happens when "contents" value is over 3000.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 19:01:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inserting-files/qaq-p/13836475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-11T19:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting files</title>
      <link>https://community.sap.com/t5/technology-q-a/inserting-files/qaa-p/13836477#M4867320</link>
      <description>&lt;P&gt;Please provide more information: it sounds like you are using a directory access proxy table - what is the exact statement that you are trying to execute when you get the error?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 20:39:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inserting-files/qaa-p/13836477#M4867320</guid>
      <dc:creator>MarkCulp</dc:creator>
      <dc:date>2012-09-11T20:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting files</title>
      <link>https://community.sap.com/t5/technology-q-a/inserting-files/qaa-p/13836478#M4867321</link>
      <description>&lt;P&gt;Yes I am using a directory access proxy table.&lt;/P&gt;
&lt;P&gt;Here's a shortened version of the statement since it won't let me post everything.&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;Insert&lt;/SPAN&gt; &lt;SPAN class="n"&gt;into&lt;/SPAN&gt; &lt;SPAN class="n"&gt;DBA&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Attachments&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Contents&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="n"&gt;File_Name&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="nb"&gt;values&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;0&lt;/SPAN&gt;&lt;SPAN class="n"&gt;X5768656E20492072756E206120616E20696E736&lt;/SPAN&gt;&lt;SPAN class="sr"&gt;&amp;lt;skipped&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;206572&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="s"&gt;'test.txt'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;&lt;EM&gt;(Update: data has been truncated to make the page readable.)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 01:44:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inserting-files/qaa-p/13836478#M4867321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-12T01:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting files</title>
      <link>https://community.sap.com/t5/technology-q-a/inserting-files/qaa-p/13836476#M4867319</link>
      <description>&lt;P&gt;Does it work when you assign the file contents to a LONG VARBINARY variable and then use that variable within the insert, such as:&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="k"&gt;begin&lt;/SPAN&gt;
  &lt;SPAN class="k"&gt;declare&lt;/SPAN&gt; &lt;SPAN class="n"&gt;myBlob&lt;/SPAN&gt; &lt;SPAN class="n"&gt;long&lt;/SPAN&gt; &lt;SPAN class="n"&gt;varbinary&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="k"&gt;set&lt;/SPAN&gt; &lt;SPAN class="n"&gt;myBlob&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;0&lt;/SPAN&gt;&lt;SPAN class="n"&gt;x5768656E20492072756E206120616E20696E736&lt;/SPAN&gt;&lt;SPAN class="o"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="n"&gt;skipped&lt;/SPAN&gt;&lt;SPAN class="o"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;206572&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="k"&gt;Insert&lt;/SPAN&gt; &lt;SPAN class="k"&gt;into&lt;/SPAN&gt; &lt;SPAN class="n"&gt;DBA&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Attachments&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Contents&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="n"&gt;File_Name&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="k"&gt;values&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;myBlob&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;'test.txt'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;);&lt;/SPAN&gt;
&lt;SPAN class="k"&gt;end&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Sep 2012 10:43:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inserting-files/qaa-p/13836476#M4867319</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2012-09-12T10:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting files</title>
      <link>https://community.sap.com/t5/technology-q-a/inserting-files/qaa-p/13836479#M4867322</link>
      <description>&lt;P&gt;Yes that works.  Thank you!  Do you know why it has to be assigned to a variable for it to work?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 11:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inserting-files/qaa-p/13836479#M4867322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-12T11:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting files</title>
      <link>https://community.sap.com/t5/technology-q-a/inserting-files/qaa-p/13836480#M4867323</link>
      <description>&lt;P&gt;No, that was just wild guessing - similar to &lt;A href="http://sqlanywhere-forum.sap.com/questions/13305"&gt;that proxy table question&lt;/A&gt;... but Mark will know:)&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 11:20:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inserting-files/qaa-p/13836480#M4867323</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2012-09-12T11:20:26Z</dc:date>
    </item>
  </channel>
</rss>

