I want to add more than 10000 parameters to a single sql command. How it possible? As far i know 2100 parameters a single sql command.
I think you step back to the "why" rather than jumping right to the "how". It sounds like maybe you are doing some huge insert/update, in which case a more appropriate solution would be table-valued-parameters.
Other options include:
SqlBulkCopy
into a staging table, then executing a command (raw TSQL or a SPROC) to push the data from the staging table into the transactional tables[n]varchar(max)
You really don't want to do something with 10k parameters on one command; that way madness lies.
You can't. SQL Server supports a maximum of 2100 parameters.
Your only option is to generate a SQL string containing all those parameter values.
Incidentally, SQL CE does not have this limitation.