J
Joe
I want to update my source data using a stored procedure. I
need to know the correct method for passing parameters to that stored
procedure. My problem is with the .Value property. I want to assign
it the name of the column from the datatable, but not sure how to do
it. The field name that I am passing in this example is FirstName
prmFirstName.ParameterName = "@FirstName"
prmFirstName.SqlDBType = SqlDBType.Varchar
prmFirstName.Direction = ParameterDirection.Input
prmFirstName.Value = ????
I could use dsTest.dtDetail2.Item(i).FirstName - but this is at
the row level and it seems cumbersome that I would have to manually
loop through each row of the datatable to assign the correct value.
There must be a simpler way to apply updates to the entire
table without manually looping through each row. Does anyone know
what it is?
Any help appreciated.
J
need to know the correct method for passing parameters to that stored
procedure. My problem is with the .Value property. I want to assign
it the name of the column from the datatable, but not sure how to do
it. The field name that I am passing in this example is FirstName
prmFirstName.ParameterName = "@FirstName"
prmFirstName.SqlDBType = SqlDBType.Varchar
prmFirstName.Direction = ParameterDirection.Input
prmFirstName.Value = ????
I could use dsTest.dtDetail2.Item(i).FirstName - but this is at
the row level and it seems cumbersome that I would have to manually
loop through each row of the datatable to assign the correct value.
There must be a simpler way to apply updates to the entire
table without manually looping through each row. Does anyone know
what it is?
Any help appreciated.
J