The @ symbol in C # allows you to use the keyword as a variable name.
For example:
//this will throw an exception, in C
It is usually better to avoid using keywords as variable names, but sometimes it is more elegant than the names of inconvenient variables. You, as a rule, most often see them when serializing material for the Internet and in the form of announcements.
Your error is probably related to using @ in front of a variable name that is not a keyword.
Update:
In T-SQL, @ always used before parameter names, for example:
select * from [mytable] where [mytable].[recId] = @id
Then you specify the @id parameter when calling the request.
Keith
source share