Change the strSelect assignment to be
strSelect = @"SELECT SERVERPROPERTY(@edition)";
and the Parameter addition to be
command.Parameters.AddWithValue("edition)", edition);
See here for another example
http://www.dotnetperls.com/sqlparameter[
^]
You appear to be confusing the
@
at the front of strings which means you don't have to escape certain characters with the
@
in a parameterized query which shows the placeholder for the parameter
[Edit] = Here's a link about the @ symbol for
verbatim strings[
^]
NB Although the comments here do apply (re sqlparameter and verbatim strings) the proposed "solution" is not correct - see Solution 1