HighTechTalks DotNet Forums  

SELECT in a stored procedure must have INTO

Dotnet Framework (ODBC.net) microsoft.public.dotnet.framework.odbcnet


Discuss SELECT in a stored procedure must have INTO in the Dotnet Framework (ODBC.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
shubha rao via .NET 247
 
Posts: n/a

Default SELECT in a stored procedure must have INTO - 03-20-2005 , 11:26 PM






(Type your message here)

--------------------------------
From: shubha rao
I have create MYSQL Procedure, it created successfully

CREATE PROCEDURE `infosearch`.`sp_info_QLink1`()
begin
Select distinct PFC.* from pre_form_col1 PFC, Quest_Link WHERE
PFC.rowid = Qlink1 ORDER BY 1;
end

Now, I am trying to invoke from asp.net

try
{
OdbcConnection Conn=new OdbcConnection("DRIVER={MySQL ODBC 3.51
Driver};SERVER=localhost;DATABASE=Infosearch;UID=r oot;PASSWORD=real;OPTION=3");
Conn.Open();
OdbcCommand cmd=new OdbcCommand("sp_info_QLink1",Conn);
cmd.CommandType=CommandType.StoredProcedure;
OdbcDataReader dr=cmd.ExecuteReader();
}catch(Exception ee){ee=ee;}

It is raising the exception 'SELECT in a stored procedure must have INTO'

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>HQk5Sel6gUGvhrHeOqhd8w==</Id>

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.