I have to execute below query **through JDBC call**

```
select primaryid from data where name in ("abc", adc", "anx");

```

**Issue is inside in clause I have to pass 11000 strings**. Can I use prepared statement here? Or any other solution any one can suggest. I dont want to execute the query for each record, as it is consuming time. I need to run this query in very less time.

I am reading the strings from an XML file using DOMParser. and I am using sql server db.