how can pass a variable in SQL query
i have a str variable that i want to pass
i am using execute query tried “+variable+” ---- not working
? ----- getting blank (variable passed as parameter)
how can pass a variable in SQL query
i have a str variable that i want to pass
i am using execute query tried “+variable+” ---- not working
? ----- getting blank (variable passed as parameter)
Try the below query
"Select data From TN Where CN = '" + varClientID + "'"
Regards
Gokul
getting blank response
Can you show your query screenshot @manoj_verma1
Have a look on the thread @manoj_verma1
Regards
Gokul
Close the double quotes before (’
Like this
“…_No in ('”+argument+“')”
and try again
Regards
Gokul
yes i tried it giving me error string to be end in double quotes
If possible can we have a query in editable format here so that we can make changes and provide?
Regards
What is the type of argument1?
string
Okay So can you try this,
String.Format(“…_No in (’{0}’)”,argument)
Hope it will work
Regards
Gokul
getting same error string to be in quotes