Click here to Skip to main content
15,896,264 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
SELECT ElementID, ElementDescription, ElementLiqAFactor, ElementGasAFactor, ElementMetalElements, 
   ElementELM, ElementMediaMFR, ElementAdaptorMFR, 
   ElementDateStamp, ElementMaint
FROM  TSElements
WHERE (ElementDescription LIKE %claris%)


This is the sql command I am using and I want it to be parameterized i.e. only the %claris% needs to be parameterized. I am using objectdatasource and all the sql functions are present in the xsd file.

Let me know if you have any ideas. Thanks.
Posted
Updated 26-Oct-10 6:11am
v4

1 solution

Well, I wrote the query and was about to write something related to ADO.NET, I came across this article.
Looks like the one you want is explained in it: Use SQL Parameters to Overcome Ad Hoc Performance Issues[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900