Guest_imported
New member
- Jan 1, 1970
- 0
I have a Stored Procedure:
SELECT AlarmTypeText, ActionText, Handling
FROM AlarmTable
WHERE AlarmTypeID = <arg>;
<arg> is a value (an integer) that my external software should send to the Stored Proceudure when it's executed. If I try to CREATE this stored procedure I get an error as Query Analyzer doesn't understand the <arg>.
How do I define that in the Stored Procedure so it knows that the <arg> is a value that is passed in from my software?
I mean, before my software EXECUTE this stored procedure it should somehow replace <arg> with a value (an integer) that is sent from my software.
-Thanks, Nicholas Peterson
SELECT AlarmTypeText, ActionText, Handling
FROM AlarmTable
WHERE AlarmTypeID = <arg>;
<arg> is a value (an integer) that my external software should send to the Stored Proceudure when it's executed. If I try to CREATE this stored procedure I get an error as Query Analyzer doesn't understand the <arg>.
How do I define that in the Stored Procedure so it knows that the <arg> is a value that is passed in from my software?
I mean, before my software EXECUTE this stored procedure it should somehow replace <arg> with a value (an integer) that is sent from my software.
-Thanks, Nicholas Peterson