Solved

SOURCE statement not working in mySQL front-end

Posted on 2014-01-14
2
240 Views
Last Modified: 2014-01-14
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).
0
Comment
Question by:FKoutchouk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
mkishline earned 500 total points
ID: 39779759
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
 
LVL 1

Author Closing Comment

by:FKoutchouk
ID: 39779878
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

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

All XML, All the Time; More Fun MySQL Tidbits – Dynamically Generate XML via Stored Procedure in MySQL Extensible Markup Language (XML) and database systems, a marriage we are seeing more and more of.  So the topics of parsing and manipulating XM…
Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question