- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
SqlCommand cmd = new SqlCommand("...");
...
int SIZE = 1;
SqlParameter[] parameters = new SqlParameter[SIZE];
for (int i = 0; i < SIZE; i++) parameters[i] = new SqlParameter();
parameters[0].ParameterName = "@param_name";
parameters[0].Value = param_value;
for (int i = 0; i < SIZE; i++) cmd.Parameters.Add(parameters[i]);