So I recently learned that I should absolutely be using parametrized query\'s to avoid security issues such as SQL injection. That\'s all fine and all, I got it working.
or other variation you might try like this
command.Parameters.Add(new SqlParameter("Name", dogName));