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
How do I create "iphone like" menu .NET C# compact framework 3.5
Internet Explorer 7 not opening
Raise domain function level when there are 2 ADs
How do I refresh a query on a subform?
How to make Windows Server 2003 generate events for lock/unlock
ul not working in ie7/8
access coding-print single record problem
Gridview RowDataBound : Accessing Footer Row
Steps to create policies in SQL Server 2008
Using install script to get directory path of the installation