I\'m writing a small program in C# that uses SQL to store values into a database at runtime based on input by the user.
The only problem is I can\'t figure out the c
Add a parameter to the command before executing it:
cmd.Parameters.Add("@num", SqlDbType.Int).Value = num;