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
Exchange 2003 relay recipient table
cisco router isdn graceful shutdown
Divsion by zero
Browser detection problems
could not find panel control in repeater
Exchange 2003 - schedule mail delivery to particular mailbox
Can i use Windows 2003 server OS on IBM RS6000 P520 Server hardware?
ColdFusion Javascript transactions
Linux RH: how to ping a port?
SQL cannot find stored procedure