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
Recover NTFS Data after Hard drive reformatted with Apple Time Machine
problem with an exteranl hard drive
Open ports on Cisco Small Business pro VLAN
Can’t download a file from FTP server
best practice to backup VM from MS Hyper-V parent
What is the best way to find out what computer on your network may be sending out spam?
Permutations and Combination on a set of data to get desired outcome
DNS control on LAN with several servers
JavaScript JQuery Problem for Mac Browsers
Report Parameters in SSRS displayed in Dropdown