Hi All, I need to execute the mysql command "source c:/Test.sql" through Java. how can i do it?
I tried with to use the following methods of the Statement interface:- execute(String sql), executeQuery(String sql) executeUpdate(String sql) where String sql = "source c:/Test.sql"; But it generates an SQLException as :- "java.sql.SQLException: Syntax error or access violation: You have an error in your SQL syntax near 'source c:/netapsv1/tempfiles/Test.sql' at line 1 " 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