I am migrating oracle database to sql server 2005.
In oracle we used to have parameters in stored procedures like
CREATE OR REPLACE PROCEDURE WM_StoreMaster_GRID (
SORTEXPRESSION VARCHAR2,
PAGEINDEX IN OUT PLS_INTEGER)
IS
...
But in Sql Server can i use the parameters in the same way or is it mandatory to prefix all parameters with “@” sign?
i dont want to use @ prefix as it will require the web application to be re written to accomodate the changes.
Plz Help
No, all parameters in SQL must be prefixed with @.
Here is the documentation
And, a parameter is really just an exposed variable.