First apologies as there are similar questions on this site, but none of them answer this problem directly.
Im using typed datasets in VS 2010. I create a TableAdapt
I tried a workaround for using string "contains" concept in SQL way:
In your case, change the SQL -
Original:
SELECT * from Table WHERE ID IN(@IDs)
Become:
SELECT * from Table WHERE CharIndex(','+Cast(ID As Varchar(10))+',',@IDs) > 0
With .net code -
Original:
TableAdapter.Fill(MyDataTable,"1,2,3")
Become:
TableAdapter.Fill(MyDataTable,",1,2,3,")