How to use a variable value in a SELECT statement
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
The obvious way is to concatenate strings. The better way is to write a stored procedure. Either way, you need to be careful of SQL injection attacks.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )