G
Gianluca Miseria
I'm using VS .NET 2003 ASP.NET project C#.
If I create a query like this in the query builder (using the
selectcommand of a oledbDataAdapter)
SELECT * FROM TABLE WHERE ID IN (?)
and pass the parameters in this way
myDataAdapter.SelectCommand.Parameters["paramName"].Value="'COD1','COD2'";
when I fill the dataset I obtain no rows.
If I change the commandtext in
SELECT * FROM TABLE WHERE ID IN ('COD1','COD2')
I obtain 10 rows when fill the dataset.
Can someone help me?
Thanks
Gianluca Miseria
If I create a query like this in the query builder (using the
selectcommand of a oledbDataAdapter)
SELECT * FROM TABLE WHERE ID IN (?)
and pass the parameters in this way
myDataAdapter.SelectCommand.Parameters["paramName"].Value="'COD1','COD2'";
when I fill the dataset I obtain no rows.
If I change the commandtext in
SELECT * FROM TABLE WHERE ID IN ('COD1','COD2')
I obtain 10 rows when fill the dataset.
Can someone help me?
Thanks
Gianluca Miseria