Objective: Using C# and SQL2008 correctly setup a Parameterized SQL Insert statement
Issue: The following statement is used in a for lo
You don't have to re-declare the variable inside the SQL code. This should work:
sql = "INSERT INTO " + "database.dbo.table" + "(database.dbo.tabe.RowName) " + "VALUES " + "(@RowName) "; cmd.CommandText = sql; cmd.Parameters.AddWithValue("@RowValue ", Row.RowName);