I have the following query in ASP.NET/C# code which is failing to return any values using a parameter...
select * from MyTable where MyTable.name LIKE @search >
within t-sql you escape ' by using two: ''
@query=' this doesn''t cause a problem'