从cmd.exe执行存储过程? [英] Execute stored procedure from cmd.exe?

查看:69
本文介绍了从cmd.exe执行存储过程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

反正还有从cmd.exe运行存储的proc吗?

Is there anyway to run a stored proc from cmd.exe ?

ps

我知道如何创建exec文件c#并运行

p.s.
I know how to create exec file c# and to run it.

我在问没有任何代码:

只有我和cmd.exe。

Just me and cmd.exe.

我和cmd.exe:这意味着我不想编写任何代码。 sql的内部SQL Server帮助exe文件很好!

me and cmd.exe : meaning I don't want to write any code. Internal SQL Server help exe files of sql is fine !

很抱歉,您不清楚这一点!

sorry for not clarifying this !

推荐答案

尝试使用 SQLCMD实用程序

示例:

sqlcmd -E -S服务器名-d数据库名-问: EXEC schema.storedprocedure parameter01,parameter02

如果您想探索其他选项,我想分享此链接:

If you'd like to explore other options I'd like to share this link:

命令提示实用工具:适用于SQL Server 2005

这篇关于从cmd.exe执行存储过程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆