Microsoft
Software
Hardware
Network
Question : SQL Query
Experts
please tell me what is the correct conversion of the
string query = "select count(CustomerID) from Table_InvoiceCustomer where Name like ' % "+textBox1.Text+ " % ' " ; (this is correct I know ) but my question is
if I convert the above query by parameterizid query then what will be the proper conversion
string query = "select count(CustomerID) from Table_InvoiceCustomer where Name like '%@parameter1%' ";
this I tried but not working .
Please suggest.
Thanking you
Anindya
Answer : SQL Query
string query = "select count(CustomerID) from Table_InvoiceCustomer where Name like '%' + @parameter1 + '%' ";
Random Solutions
Javascript kills my submit button?
VBS script help needed
cursor problems
Steps in placing a logo image of a template module in a Joomla site with FireFox Firebug or Google Chrome
tablespace alert
Create Temp Table in Microsoft SQL using CSV file
FOR XML RAW (String)
WPA wireless network automate
Extracting data from Main Form
How to hide html elements depending on what title they have with jQuery?