[英]stored proc from excel with parameters
如果我在具有参数的sql中创建存储的proc,可以从Excel中运行它吗?
Without using VBA you can use this method. 如果不使用VBA,则可以使用此方法。 This assumes your stored procedure returns a result set.
假设您的存储过程返回一个结果集。 It also does not make the parameter pulled from a workbook.
它还不会使参数从工作簿中提取。 I think you'd have to use VBA to do that.
我认为您必须使用VBA来做到这一点。
Sure, you can use VBA. 当然,您可以使用VBA。
Or you can do it like this: http://blogs.msdn.com/b/excel/archive/2010/06/08/running-a-sql-stored-procedure-from-excel-no-vba.aspx 或者,您也可以这样: http : //blogs.msdn.com/b/excel/archive/2010/06/08/running-a-sql-stored-procedure-from-excel-no-vba.aspx
Here's another nice article on it. 这是另一篇不错的文章。
http://www.itjungle.com/mgo/mgo102203-story01.html http://www.itjungle.com/mgo/mgo102203-story01.html
Yes 是
A standard ADO call from VBA. 来自VBA的标准ADO调用。 Or use the Tools..Data thing.
或使用Tools..Data东西。
I have been working to find a solution to this for a while now and got the best results from following the steps in this article. 我一直在努力寻找一种解决方案,现在,按照本文中的步骤进行操作可获得最佳结果。
http://codebyjoshua.blogspot.com/2012/01/get-data-from-sql-server-stored.html http://codebyjoshua.blogspot.com/2012/01/get-data-from-sql-server-stored.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.