MySQL Forums
Forum List  »  Microsoft SQL Server

Dynamic SQL in Stored procudures
Posted by: henrik mahlberg
Date: October 07, 2004 12:58PM

Hi

I want to create dynamic SQL in stored procedures. Is that not supported?

I tried a very simple test and couldn't get i working:
DECLARE X VARCHAR (199);
SET X = 'INSERT INTO LOGG SELECT PFILE_Filename FROM PFILE_FILE';
??? X

I tried with Execute X......

Another question. Is it possible to invoke LOAD DATA INFILE.. within a Stored procedure, I couldn't get that working either.


/Henrik Mahlberg

Options: ReplyQuote


Subject
Written By
Posted
Dynamic SQL in Stored procudures
October 07, 2004 12:58PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.