views:

32

answers:

2

In SSRS 2005 we have a query in a dataset and the query filters on a certain value which happens to contain an @. Eg: select * from test where testfield = '@LC'. SSRS thinks this value should be a parameter and treats it that way. How can configure my query so that SSRS treats it as a fixed value? Thanks!

+1  A: 

Already tried with '[@]LC'

Greco
I just tried but this is no solution since no records are found...
Koen VC
Replace your statement with select * from test where testfield LIKE '@LC'and try it out.
Greco
it's OK, i did a workaround with hidden parameters etc. Thanks anyway!
Koen VC
A: 

Perhaps switch to stored procedure?

sfuqua