First of all, ConnectionString
is already a String
with no parameters, it does not need to converted using String.Format
. Usually stored in app.config
, you feed it directly into SqlConnection object upon creation.
Part of the query that you have is also a String
, but this time it may be substituted with parameters. However, please don't do so and use SQL parameters instead (see @huMpty's answer).
full_name
and cemetery_id
are SQL parameters, variables is something else.
My suggestion it to learn the terminology first, before you do any coding. No offense, it would benefit you a lot, because you would be able to ask a proper question. Proper question means a fast and qualified answer. Improper questions are usually closed. These are the rules of StackOverflow.