Can anyone please advice in below query – I need to fetch few from table and few will be provided as a variables to below statement. I’m struggling how to write this
SQLCommand = New SqlCommand("TableA", Conn)
SQLCommand.CommandText = "Insert into TableA(P1,P2,P3,P4,P5,P6,P7,P8) " & _
"Values (@p1, @P2, @P3, @P4, @P5, @P6, @P7, @P8)
Out of this @p1,@p2,@p3,@p4 will come from Table B
And @p5,@p6, @p7, @p8 will be variables to whom value will be provided by the function
I’m struggling how to change the above COMMANDTEXT statement – to fetch values from TableB and also other custom variables (which are p5,p6,p7,p8)
1 Answer