hi,
Im trying to do a simple thing, waiting for a user to input
a value so i can pass it to a sql statement and do a select according to their input like:
Declare @USERINPUT varchar(50)
Select * from MYTABLE where MYFIELD = @USERINPUT
But the trick is I can't use it on a store procedure, just run it on SQL Analyzer.
Can this be done?, It can be done on ORACLE. Can it be done in SQL server 2k?
Thanks in advanced
Im trying to do a simple thing, waiting for a user to input
a value so i can pass it to a sql statement and do a select according to their input like:
Declare @USERINPUT varchar(50)
Select * from MYTABLE where MYFIELD = @USERINPUT
But the trick is I can't use it on a store procedure, just run it on SQL Analyzer.
Can this be done?, It can be done on ORACLE. Can it be done in SQL server 2k?
Thanks in advanced