Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL Server: String parameters for JSON values have varying lengths #34396

Open
ajcvickers opened this issue Aug 10, 2024 · 0 comments
Open

SQL Server: String parameters for JSON values have varying lengths #34396

ajcvickers opened this issue Aug 10, 2024 · 0 comments

Comments

@ajcvickers
Copy link
Member

For example:

@p0='[{"Name":null,"Names":null,"Number":0,"Numbers":null,"OwnedCollectionBranch":null,"OwnedReferenceBranch":null}]' (Nullable = false) (Size = 111)

We generally avoid this for string parameters because it causes cache pollution. Instead, we set the max length explicitly to either the defined max length, or the maximum allowable for the store type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant