I try to execute query with parameters. Made a @reqNum as a parameter and use in query “INSERT in dataTable VALUES(‘1’,‘2’,@reqNum)” and got an error “Must declare a scalar variable @reqNum”.
Now I use the 2018.4.3 version of Studio. At previous project was 2019.x version (don’t remember) and the same construction worked. This error because of different versions?
How did you resolve this issue? I am getting the same error. I tried using Execute and Execute Non Query and Tried with @variable for example Update table set A = 10, B = @variable where Id = 123
and I have also tried = ‘" + varClientID + "’ this way too but still no luck.