This is a migrated thread and some comments may be shown as answers.

error selecting muti value

1 Answer 127 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Teoman
Top achievements
Rank 1
Teoman asked on 12 Jan 2012, 12:38 PM
hi,

i have a parameter which filters product name  and its multi value property is true.when i select only one product from parameter it works.but when i select multiple value or select all it gives incorrect syntax near ','.Can you help me please?

1 Answer, 1 is accepted

Sort by
0
Teoman
Top achievements
Rank 1
answered on 15 Jan 2012, 05:41 PM
i fixed my problem like this.when you use IN in query.you have to use it like it.

WHERE (NAMESURNAME IN(@NAMESURNAME))
Tags
General Discussions
Asked by
Teoman
Top achievements
Rank 1
Answers by
Teoman
Top achievements
Rank 1
Share this question
or