• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 250
  • Last Modified:

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).
Francois Koutchouk
Francois Koutchouk
1 Solution
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.
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.
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.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now