In SQL server the '@' symbol signifies a variable or parameter. Usually one that is passed to the stored procedure. This would tell me that '@Type' is a parameter that needs to be passed to the stored procedure in order for it to be executed properly. These parameters are usually defines when the stored procedure is created and given a specific data type. For example.
Code:
Create procedure myStoredProc @Colour varchar(20) AS
Select * From Table1 Where (Field3 = @Colour)
In this case @Colour is a parameter that needs to be passed to the stored procedure when it is executed. Such as this,
Code:
exec myStoredproc("Black")
will select all records where the data in Field3 is black. I can't remember if the brackets are required. my apologies if they are not.
Take Care,
zemp
"If the grass looks greener... it's probably because there is more manure."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.