V
VR
Hi, I'm trying to execute a statement like
select *
from myTable
where code IN (1,2,4)
to do that I used a StringBuilder to concatenate the string and then, inside
the ( ) I put (@myNumbers)
then, cmd.Parameters.Add(New
sqlParameter("@myNumbers",myStringBuilder.toString))
when I execute the command from a sqlDataAdapter to fill a dataTable WHEN I
HAVE MORE THAN ONE NUMBER I get: Error converting data type nvarchar to
bigint
Do anyone know about it? (My SQL Server column is of type BigInt)
Thanks a lot,
Regards,
Victor Reboucas
select *
from myTable
where code IN (1,2,4)
to do that I used a StringBuilder to concatenate the string and then, inside
the ( ) I put (@myNumbers)
then, cmd.Parameters.Add(New
sqlParameter("@myNumbers",myStringBuilder.toString))
when I execute the command from a sqlDataAdapter to fill a dataTable WHEN I
HAVE MORE THAN ONE NUMBER I get: Error converting data type nvarchar to
bigint
Do anyone know about it? (My SQL Server column is of type BigInt)
Thanks a lot,
Regards,
Victor Reboucas