osql不执行查询
我有一个系统,其中只有 osql 可用(SQL2K Express)。 我执行查询,有一刻它停止显示任何结果。看起来实际上它并不执行查询(因为错误的脚本不会显示错误)。 我这样做:
osql -E
use <dbname>;
go;
select top 1 * from SomeTable;
go;
如果我在没有训练“;”的情况下写“go”,则每次我在没有训练“;”的情况下写“go”时都会显示一个错误在当前“会话”期间;
重新启动 osql 没有帮助。
有人有任何线索吗?
谢谢, 弗罗林
I have a system where I only have osql available (SQL2K Express).
I execute queries and at one moment it stopped displaying any results. It seems that actually it does not execute the queries (because an erroneous script does not show an error).
I do:
osql -E
use <dbname>;
go;
select top 1 * from SomeTable;
go;
If I write "go" without the training ";", is displays one error for each time I written a "go" without the training ";" during current "session";
Restarting osql does not help.
Any clue anyone?
Thanks,
florin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好像osql中有一个“reset”命令。使用它可以使其再次发挥作用。
不知道到底是什么导致它首先出现这种行为。
下次我会RTFM...
It seems that there is a "reset" command in osql. Using it makes it work again.
Don't know what actually caused it to have that behavior in the 1st place.
Next time I will RTFM...