<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1021975" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1021975</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/expected-query-name-after-execute#comment-1135505</link>
    <description> &lt;p&gt;I&#039;m sorry I don&#039;t have a better solution.  But my experience with these is simply NULL. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 02 Aug 2003 22:31:26 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1135505 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/expected-query-name-after-execute#comment-1135500</link>
    <description> &lt;p&gt;Yes.  Procedures like:&lt;/p&gt;
&lt;p&gt;SELECT [Table1].[ID], [Table1].[name], [Table1].[email], [Table2].[ID], [Table2].[job]&lt;br /&gt;
FROM Table1 INNER JOIN Table2 ON [Table1].[ID]=[Table2].[ID];&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;SELECT [Table1].[ID], [Table1].[name], [Table1].[email]&lt;br /&gt;
FROM Table1&lt;br /&gt;
WHERE ((([Table1].[name])=&quot;andrew schools&quot;));&lt;/p&gt;
&lt;p&gt;But when I try an stored procedure that tries to pass a parameter:&lt;/p&gt;
&lt;p&gt;SELECT Table1.ID, Table1.name, Table1.email, Table2.ID, Table2.job&lt;br /&gt;
FROM Table1 INNER JOIN Table2 ON Table1.ID = Table2.ID&lt;br /&gt;
WHERE (((Table1.ID)=[table2].[id]) AND ((Table2.job)=[strjob]));&lt;/p&gt;
&lt;p&gt;I get the following error:&lt;/p&gt;
&lt;p&gt;Microsoft JET Database Engine (0x80040E14)&lt;br /&gt;
Invalid SQL statement; expected &#039;DELETE&#039;, &#039;INSERT&#039;, &#039;PROCEDURE&#039;, &#039;SELECT&#039;, or &#039;UPDATE&#039;&lt;/p&gt;
&lt;p&gt;I don&#039;t know if this is because ACCESS doesn&#039;t support passing parameters through a stored procedure?&lt;/p&gt;
&lt;p&gt;If I open access and open the query, it prompts me to give the paramter a value and then executes like it should.  So I don&#039;t know why it wouldn&#039;t work in the ASP page?&lt;/p&gt;
&lt;p&gt;I&#039;ve looked else where and found nothing.  I guess for now I will have to just enter the SQL Code directly into the ASP page.&lt;/p&gt;
&lt;p&gt;Thanks...&lt;/p&gt;
 </description>
     <pubDate>Sat, 02 Aug 2003 22:01:54 +0000</pubDate>
 <dc:creator>jlot6</dc:creator>
 <guid isPermaLink="false">comment 1135500 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/expected-query-name-after-execute#comment-1135495</link>
    <description> &lt;p&gt;I talked to a friend who&#039;s somewhat familiar with stored procs (in MS SQL), and he wasn&#039;t sure if Access 2000 supported them.&lt;/p&gt;
&lt;p&gt;Can you get a stored proc to work without passing a parameter?&lt;/p&gt;
 </description>
     <pubDate>Sat, 02 Aug 2003 21:36:47 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1135495 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/expected-query-name-after-execute#comment-1135481</link>
    <description> &lt;p&gt;If I use a recordset object without using a stored procedure it works.&lt;/p&gt;
&lt;p&gt;If I try to use a stored procedure, it gives me the following error:&lt;/p&gt;
&lt;p&gt;Invalid SQL statement; expected &#039;DELETE&#039;, &#039;INSERT&#039;, &#039;PROCEDURE&#039;, &#039;SELECT&#039;, or &#039;UPDATE&#039;.&lt;/p&gt;
&lt;p&gt;While using the following stored procedure:&lt;/p&gt;
&lt;p&gt;SELECT [Table1].[ID], [Table1].[name], [Table1].[email], [Table2].[ID], [Table2].[job]&lt;br /&gt;
FROM Table1 INNER JOIN Table2 ON [Table1].[ID]=[Table2].[ID]&lt;br /&gt;
WHERE ((([Table1].[ID])=[strjob]))&lt;br /&gt;
ORDER BY [Table1].[name];&lt;/p&gt;
&lt;p&gt;However, if I use this as an SQL statment in my ASP code: &lt;/p&gt;
&lt;p&gt;&quot;SELECT table1.id, table1.name, table1.email, table2.id, table2.job FROM table1 INNER JOIN table2 ON table1.id = table2.id where table2.id = &#039;&quot; &amp;amp; strjob &amp;amp; &quot;&#039; ORDER BY table1.name ASC&quot;&lt;/p&gt;
&lt;p&gt;it works?  Does it have to do with ACCESS 2000?  Mabey it doesn&#039;t support passing parameter values through a stored procedure?&lt;/p&gt;
 </description>
     <pubDate>Sat, 02 Aug 2003 17:40:19 +0000</pubDate>
 <dc:creator>jlot6</dc:creator>
 <guid isPermaLink="false">comment 1135481 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/expected-query-name-after-execute#comment-1135472</link>
    <description> &lt;p&gt;It&#039;s been a while since I&#039;ve seen any ASP code.  Even longer since I&#039;ve written any.  And even then, I never used the ADODB.Command object.  But after consulting my limited printed library on ASP (read: one book), you&#039;re code looks fine.&lt;/p&gt;
&lt;p&gt;So, only suggestions are these:&lt;br /&gt;
- Try performing the same task without using a stored proc.&lt;br /&gt;
- Try re-writing without using the ADODB.Command object.&lt;/p&gt;
 </description>
     <pubDate>Sat, 02 Aug 2003 08:37:18 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1135472 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
