Skip to content

Commit 3ef7134

Browse files
fix: add missing documentation for MaxSqlParameters constant
1 parent 8512b03 commit 3ef7134

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/ServiceControl.Persistence.EFCore.SqlServer/SqlServerDialect.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ protected static string ParameterRows(int rowCount, int columnCount)
6666
protected static int MaxRowsPerStatement(int columns, int sharedParameters = 0) =>
6767
(MaxSqlParameters - ExecuteSqlOverhead - sharedParameters) / columns;
6868

69+
// https://learn.microsoft.com/en-us/sql/sql-server/maximum-capacity-specifications-for-sql-server
6970
const int MaxSqlParameters = 2100;
7071

7172
// The client sends every parameterised command through sp_executesql, which spends two of the 2100 on the statement and the parameter list.

0 commit comments

Comments
 (0)