Hi All! I want to execute the Mysql command "source c:/Test.sql" through java.
Which method of the statement interface should I use. I tried all the three below but they generate an SQL Exception as :- "You have an error in your SQL syntax near 'source c:/netapsv1/tempfiles/Test.sql' at line 1" :- String sql = "source c:/netapsv1/tempfiles/Test.sql"; execute(String sql) executeQuery(String sql) executeUpdate(String sql) Thanks Amit Lonkar __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php