April 21, 2006 at 10:57 am
Hello again! Another trivial question from a Newbie.....
In Oracle SQLPlus it is possible to prompt for user input via the "Prompt" command and use the response to direct the flow of the script.
What is the equivalent of the "Prompt" for SQL Server scripts? I have several such scripts on the Oracle side and am trying to convert them to SQL Server scripts.....
Any help will be greatly appreciated.
Thanks
April 21, 2006 at 1:53 pm
Query analyzer does not have the ability to prompt; you end up having to populate variables before you run the script like
declare @var varchar(50
set @var='somevalue'
select form sometable where val=@val
you could right an application that prompts you for variables and then executes a query, but not with the default tools.
hope that helps.
Lowell
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply