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 delete all Outlook (2010) message prior to this year?
Can Excel-VBA call a Sub with a no wait option?
Parameters and return type in a webservice
Need to get previous months in SQL Server
Dell Studio 1535 and upgrading (downgrading) to XP Pro
Why is my email being bounced back? HELP!
Adding a Windows Server 2003 File Server to a Windows 2000 Domain
MM_preloadImages(), what does "#" in the passed argument mean, why do that.
Working with the fopen() function in PHP
php for cygwin/windows