SQL Server Management Studio: prompt for user input

 ̄綄美尐妖づ 提交于 2020-01-02 14:30:47

问题


Is it possible in SQL Server Management Studio to ask the user for input and based on that input proceed?

I have a stored procedure which inserts some data into tables. When ever a user executes the stored procedure, I want a message to come up asking if he is sure he wants the stored procedure to execute.

If the response is Yes, then continue if No then terminate.


回答1:


I recommend writing a small application to handle this. I am not aware of any way to prompt the user for input when running sql. IMO Sql Management studio is not an environment for running scripts that require user input



来源:https://stackoverflow.com/questions/17960566/sql-server-management-studio-prompt-for-user-input

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!