SOURCE statement not working in mySQL front-end

I am using SQLyog in Windows.  The statement
SOURCE 'X:\myscripts\testscript.sql'  
reports a SQL syntax error.  I tried the variations without quotes, with the other slash, with double slash... I think it is the command SOURCE that is not accepted (it doesn't change to a different color in the editor).
LVL 2
Francois KoutchoukCTOAsked:
Who is Participating?
 
mkishlineConnect With a Mentor Commented:
I believe you're correct that SQLyog does not support the "SOURCE" command but if it's possible given the structure of your application, you could make your testscript.sql into a stored procedure and then invoke it with "CALL".

Hope this helps.
0
 
Francois KoutchoukCTOAuthor Commented:
Thank you.  Unfortunately testscript.sql changes frequently and needs to be applied to a multitude of databases.  I will ask the folks at mySQL.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.