tags:

views:

8

answers:

0

We're using ADO.NET with parameterized queries with SQL Server using the DBCommand object, so the parameter symbol is @, and things have been working fine. However we now have a query where @ is part of the hard coded data. By default ADO.NET thinks it IS a parameter and the whole thing goes pear shaped.

Is there a way to escape the @ in this one case so it's just treated as part of the data? I tried \@ but that didn't work either.

related questions