Can I have a query like
"INSERT INTO Table1 VALUES (@val1, @val2, @val3); INSERT INTO Table2 VALUES (@val2, @val3)"
One, does doing a parameterized query in VB.NET accept duplicate variables, and two, would doing this offer any sort of a speed boost? I wanted to use it as opposed to doing two different parameterized inserts. And yes, before you mention anything about it, a stored procedure is not an option here. I won’t go into why.
Yes you can. Lesser variables would be a plus but if they are in small numbers, there won’t my much difference(noticeable) in the performance/memory usage.