R
Rich
Hello,
Can the commandbuilder be used with a command object? I
want to insert data into a table in sql server that has
many fields/columns from a dataTable in a vb.net project.
I am trying to get away from this though
dr = dt.Rows(i) <--not this part
'this part
cmd.CommandText = "Insert Into tblX Select " & Ctype(dr
(0), Integer) & ", " & dr(1).ToString & ",..."
I would like to do something like
"Insert Into tblX Select " & someObject
I guess I am really asking if there is some object, maybe
a custom object I could create in a class where I could
just loop through dr.ItemArray that I could place in my
select statement above?
TIA
Rich
Can the commandbuilder be used with a command object? I
want to insert data into a table in sql server that has
many fields/columns from a dataTable in a vb.net project.
I am trying to get away from this though
dr = dt.Rows(i) <--not this part
'this part
cmd.CommandText = "Insert Into tblX Select " & Ctype(dr
(0), Integer) & ", " & dr(1).ToString & ",..."
I would like to do something like
"Insert Into tblX Select " & someObject
I guess I am really asking if there is some object, maybe
a custom object I could create in a class where I could
just loop through dr.ItemArray that I could place in my
select statement above?
TIA
Rich