<?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>topic Re: Using EXEC with INSERT INTO in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-exec-with-insert-into/m-p/2974670#M928192</link>
    <description>hi,&lt;BR /&gt;&lt;BR /&gt;the correct syntax would be:&lt;BR /&gt;&lt;BR /&gt;insert into &lt;TABLENAME&gt; select ...&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;yogeeraj&lt;/TABLENAME&gt;</description>
    <pubDate>Thu, 15 May 2003 19:27:09 GMT</pubDate>
    <dc:creator>Yogeeraj_1</dc:creator>
    <dc:date>2003-05-15T19:27:09Z</dc:date>
    <item>
      <title>Using EXEC with INSERT INTO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-exec-with-insert-into/m-p/2974669#M928191</link>
      <description>I am having problems inserting into a table from tuples returned through exec. Here's an example of the code:&lt;BR /&gt;&lt;BR /&gt;INSERT INTO &lt;SOME_TABLE_NAME&gt; EXEC &lt;SOME_STORED_PROCEDURE&gt;&lt;BR /&gt;&lt;BR /&gt;e.g. INSERT INTO #temptbl EXEC tempproc&lt;BR /&gt;&lt;BR /&gt;I get the error: &lt;BR /&gt;Incorrect syntax near the keyword EXEC&lt;BR /&gt;&lt;BR /&gt;Kindly advice&lt;BR /&gt;&lt;/SOME_STORED_PROCEDURE&gt;&lt;/SOME_TABLE_NAME&gt;</description>
      <pubDate>Thu, 15 May 2003 19:11:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-exec-with-insert-into/m-p/2974669#M928191</guid>
      <dc:creator>prandip</dc:creator>
      <dc:date>2003-05-15T19:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using EXEC with INSERT INTO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-exec-with-insert-into/m-p/2974670#M928192</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;the correct syntax would be:&lt;BR /&gt;&lt;BR /&gt;insert into &lt;TABLENAME&gt; select ...&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;yogeeraj&lt;/TABLENAME&gt;</description>
      <pubDate>Thu, 15 May 2003 19:27:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-exec-with-insert-into/m-p/2974670#M928192</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-05-15T19:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using EXEC with INSERT INTO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-exec-with-insert-into/m-p/2974671#M928193</link>
      <description>Hi Yogeeraj,&lt;BR /&gt;        Thanks again but i am aware of that. I want to use values returned from a stored procedure, hence my problem. Again SQL Server allows using EXEC after INSERT INTO. Sybase is again giving me a no-no. Kindly advice on a work around on the syntax if there exists one.&lt;BR /&gt;&lt;BR /&gt;Revert&lt;BR /&gt;&lt;BR /&gt;Prandip</description>
      <pubDate>Thu, 15 May 2003 19:39:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-exec-with-insert-into/m-p/2974671#M928193</guid>
      <dc:creator>prandip</dc:creator>
      <dc:date>2003-05-15T19:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using EXEC with INSERT INTO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-exec-with-insert-into/m-p/2974672#M928194</link>
      <description>HI!&lt;BR /&gt;&lt;BR /&gt;If stored procedyre return one value:&lt;BR /&gt;&lt;BR /&gt;declare @return int&lt;BR /&gt;exec @return = &lt;SOME_PROCEDURE&gt;&lt;BR /&gt;insert into &lt;SOME_TABLE&gt; values(@return)&lt;BR /&gt;&lt;BR /&gt;when stored procedure return more than one values you must define procedure to set values of its parameters&lt;BR /&gt;&lt;BR /&gt;delcare @ret1 int, @ret2 int&lt;BR /&gt;exec &lt;SOME_PROCEDURE&gt; @ret1 output, @ret2 output&lt;BR /&gt;insert into &lt;SOME_TABLE&gt; values (@ret1, @ret2)&lt;BR /&gt;&lt;BR /&gt;:-) ..&lt;BR /&gt;on MS SQL Server should work&lt;BR /&gt;... sory my english !!&lt;/SOME_TABLE&gt;&lt;/SOME_PROCEDURE&gt;&lt;/SOME_TABLE&gt;&lt;/SOME_PROCEDURE&gt;</description>
      <pubDate>Fri, 16 May 2003 05:42:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-exec-with-insert-into/m-p/2974672#M928194</guid>
      <dc:creator>Remigiusz_1</dc:creator>
      <dc:date>2003-05-16T05:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using EXEC with INSERT INTO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-exec-with-insert-into/m-p/2974673#M928195</link>
      <description>HI!&lt;BR /&gt;&lt;BR /&gt;If stored procedyre return one value:&lt;BR /&gt;&lt;BR /&gt;declare @return int&lt;BR /&gt;exec @return = &lt;SOME_PROCEDURE&gt;&lt;BR /&gt;insert into &lt;SOME_TABLE&gt; values(@return)&lt;BR /&gt;&lt;BR /&gt;when stored procedure return more than one values you must define procedure to set values of its parameters&lt;BR /&gt;&lt;BR /&gt;delcare @ret1 int, @ret2 int&lt;BR /&gt;exec &lt;SOME_PROCEDURE&gt; @ret1 output, @ret2 output&lt;BR /&gt;insert into &lt;SOME_TABLE&gt; values (@ret1, @ret2)&lt;BR /&gt;&lt;BR /&gt;:-) ..&lt;BR /&gt;on MS SQL Server should work&lt;BR /&gt;... sory my english !!&lt;/SOME_TABLE&gt;&lt;/SOME_PROCEDURE&gt;&lt;/SOME_TABLE&gt;&lt;/SOME_PROCEDURE&gt;</description>
      <pubDate>Fri, 16 May 2003 05:43:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-exec-with-insert-into/m-p/2974673#M928195</guid>
      <dc:creator>Remigiusz_1</dc:creator>
      <dc:date>2003-05-16T05:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using EXEC with INSERT INTO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-exec-with-insert-into/m-p/2974674#M928196</link>
      <description>HI!&lt;BR /&gt;&lt;BR /&gt;If stored procedyre return one value:&lt;BR /&gt;&lt;BR /&gt;declare @return int&lt;BR /&gt;exec @return = &lt;SOME_PROCEDURE&gt;&lt;BR /&gt;insert into &lt;SOME_TABLE&gt; values(@return)&lt;BR /&gt;&lt;BR /&gt;when stored procedure return more than one values you must define procedure to set values of its parameters&lt;BR /&gt;&lt;BR /&gt;delcare @ret1 int, @ret2 int&lt;BR /&gt;exec &lt;SOME_PROCEDURE&gt; @ret1 output, @ret2 output&lt;BR /&gt;insert into &lt;SOME_TABLE&gt; values (@ret1, @ret2)&lt;BR /&gt;&lt;BR /&gt;:-) ..&lt;BR /&gt;on MS SQL Server should work&lt;BR /&gt;... sory my english !!&lt;/SOME_TABLE&gt;&lt;/SOME_PROCEDURE&gt;&lt;/SOME_TABLE&gt;&lt;/SOME_PROCEDURE&gt;</description>
      <pubDate>Fri, 16 May 2003 05:43:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-exec-with-insert-into/m-p/2974674#M928196</guid>
      <dc:creator>Remigiusz_1</dc:creator>
      <dc:date>2003-05-16T05:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using EXEC with INSERT INTO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-exec-with-insert-into/m-p/2974675#M928197</link>
      <description>Thanks mate!! No problem on english i assure you. I guess this will suffice for me now. Thanks again!!</description>
      <pubDate>Fri, 16 May 2003 12:35:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-exec-with-insert-into/m-p/2974675#M928197</guid>
      <dc:creator>prandip</dc:creator>
      <dc:date>2003-05-16T12:35:38Z</dc:date>
    </item>
  </channel>
</rss>

