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
code checking massive IF statement VbScript
How do I get a parent form value for jQuery.ajax post
check that a cookie exists when page loads using javascript
Dell server wierd service tag
Simple code issue with synchronized comboboxes in MS Access
start win xp without login
Open Excel file
HTML5 and CSS3 pack for Dreamweaver cs3
Free Software For Software Errors Reporting
Powershell script that lists IPhone devices connecting to OWA servers