问题
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