如何使用 RoundhouseE 运行创建索引脚本,该脚本依赖于正确顺序的 sp
关于 roundhouse 的问题。我有一个脚本调用 sp 来计算创建索引需要多少空间。 (我们使用的是 SQL Express,它有最大数据库大小限制)。根据剩余空间的大小,它会从一大堆表中删除行,然后通过常规检查创建索引(如果 sysindex 中不存在...创建索引...)。调用的 sp 将来将在其他索引创建脚本中使用,因此除非没有选项,否则我宁愿将其保留为 sp 而不是创建索引脚本的一部分(内联)。问题是,roundhouse 首先在 UP 文件夹中运行我的索引创建脚本,然后在 sp 文件夹或 runfirstafterUp 文件夹之后运行。它找不到 sp,因为它尚未先插入到数据库中。请告知是否有解决此顺序问题的方法。谢谢
Question on roundhouse. I have a script that calls a sp to figure out how much space is required to create an index. (we are using sql express which has max db size limit). Depending on how much space is left it deletes rows from a whole bunch of tables and then creates the index with the usual checks (if not exists in sysindex...create index...). The sp called will be used in other index creation scripts in the future so unless there is no option I would prefer to keep it as a sp and not part of the create index script (inline). Problem is that roundhouse runs my index creation script in the UP folder first and then goes after the sp folder or runfirstafterUp folder. It cannot find the sp since it has not been plugged into the db first. Pls advise if there is any solution to this sequence problem. thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最新的 RH 有一个索引文件夹,在 sprocs 文件夹之后运行 https://github.com/chucknorris/ roundhouse/wiki/ConfigurationOptions
如果这可以解决您的问题,请告诉我。谢谢!
更新清晰度:最新版本不一定反映已发布的内容。您使用的版本必须大于 324 (http://code. google.com/p/roundhouse/source/detail?r=324)。
您可以通过多种方式安装 RH - https://github.com/chucknorris/roundhouse/wiki/Getroundhouse
Newest RH has an indexes folder that is run after the sprocs folder https://github.com/chucknorris/roundhouse/wiki/ConfigurationOptions
Let me know if this solves your issue. Thanks!
UPDATE for Clarity: Newest version doesn't necessarily reflect what is released. The version you use needs to be greater than 324 ( http://code.google.com/p/roundhouse/source/detail?r=324 ).
You can install RH in many ways - https://github.com/chucknorris/roundhouse/wiki/Getroundhouse