由于在操作中使用了自定义参数。 所以得在连接字符串中加上Allow User Variables=True; 表示允许用户自定义参数。 转载于:https://www.cnblogs.com/yuanjunqq/p/6059433.html