连接串是
connectionString="Server=serverip; Port=3306; Database=databasename; Uid=username; Pwd='password';use procedure bodies=false"
其中的use procedure bodies是什么意思,还有没有其他参数??

解决方案 »

  1.   

    Name : Use Procedure Bodies 
    Default : true 
    Description : Setting this option to false indicates that the user connecting to the database does not have the SELECT privileges for the mysql.proc (stored procedures) table. When to set to false, Connector/NET will not rely on this information being available when the procedure is called. Because Connector/NET will be unable to determine this information, you should explicitly set the types of the all the parameters before the call and the parameters should be added to the command in the exact same order as they appear in the procedure definition. This option was added in Connector/NET 5.0.4 and Connector/NET 1.0.10. http://dev.mysql.com/doc/refman/5.0/en/connector-net-programming-connection-options.html
      

  2.   

    http://www.connectionstrings.com/mysql
      

  3.   

    mysql? 不清楚,我知道sqlserver和access的
      

  4.   

    和连接其他的没啥区别在后面加个charset=gbk;就可以了,然后你再下一个mysql的DLL
      

  5.   

    use procedure bodies=false从字面上理解是禁用存储过程的意思,mysql从5以后的版本才支持存储过程的,估计不是很稳定,所以可以禁用,这个只是我的猜测,还请楼主自己验证,错了一不要丢板砖
      

  6.   

    当设置时use procedure bodies=false,存储过程的参数需要与程序里的参数顺序一致。
    否则,你可以试试,呵呵。
    希望大家在自己解决了问题后,把答案贴出来。