我有两个数据库,一个MySQL 5,一个SQL Server 2000.我已经将MySQL数据库映射为MS SQL数据库中的链接服务器。我想从MS SQL数据库中调用保存在MySQL数据库中的存储过程。什么是正确的语法来做到这一点?在SQL Server 2000中甚至可能吗?如何从SQL Server 2000调用MySQL存储过程?
编辑:
我已经试过
EXEC webpush...clear_tables
,但我只是把它恢复:
Could not execute procedure 'clear_tables' on remote server 'webpush'.
[OLE/DB provider returned message: [MySQL][ODBC 3.51 Driver]
[mysqld-5.0.46-enterprise-gpl-log]You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the
right syntax to use near '?=call "clear_tables";1' at line 1]
即使当我填写数据库名称和所有者,我仍然得到一样的东西。