I made a stored procedure which has the following parameter: @UserName
Would that mean, in the ASP.NET, I would have to do the following code to update the value of username?
dbCommand.Parameters.Add("@UserName", SqlDbType.VarChar).Value = userName;
Or would this make a new parameter? If this just makes a new parameter, how can I just set the Parameter‘s value?
That would create a new parameter. Parameters is a collection that you can access by name, so you can do something like this to update an existing param:
dbCommand.Parameters["@UserName"] = userName;