4 messages in com.mysql.lists.win32Re: Running Script File
FromSent OnAttachments
Ooi Bee Sien14 Oct 2003 21:44 
Christian Mack15 Oct 2003 08:23 
Paul DuBois15 Oct 2003 08:54 
jbon...@sola.com.au16 Oct 2003 19:48 
Subject:Re: Running Script File
From:Paul DuBois (pa@mysql.com)
Date:10/15/2003 08:54:33 AM
List:com.mysql.lists.win32

At 21:45 -0700 10/14/03, Ooi Bee Sien wrote:

I'm running mySQL at windows XP and trying to include couple of queries in a script file. The script file is stored as "C:\myQuery.txt" and it is able to be invoked successfully in a common way at mysql prompt.

mysql> \. C:\myQuery.txt

My question is, can I invoke the script file not from the mysql prompt but through a client application (written in VB)?

SOURCE and its synonym \. are mysql commands, not SQL statements. As such, they are implemented internally by the mysql client programs. To achieve this same functionality in your application, you'll have to open the file and process its contents yourself.

Are you MySQL certified? http://www.mysql.com/certification/