Skip to content

I have a problem with number of parameters #261

Closed Answered by phnx47
sonkt asked this question in Q&A
Discussion options

You must be logged in to vote

SQL limitation which does not allow more than 2100 parameters in a SQL statement.

You can split your query, use just 2100 parameters in 1 query, similar code used for BulkInsert:

var exceededTimes = (int)Math.Ceiling(totalInstances * properties.Count / 2099d);

Replies: 3 comments 15 replies

Comment options

You must be logged in to vote
3 replies
@sonkt
Comment options

@phnx47
Comment options

@sonkt
Comment options

Answer selected by phnx47
Comment options

You must be logged in to vote
12 replies
@sonkt
Comment options

@phnx47
Comment options

@sonkt
Comment options

@phnx47
Comment options

@sonkt
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants