diff --git a/xml/System.Data.SqlClient/SqlParameter.xml b/xml/System.Data.SqlClient/SqlParameter.xml index 17a56bfb85f..cbc38b31638 100644 --- a/xml/System.Data.SqlClient/SqlParameter.xml +++ b/xml/System.Data.SqlClient/SqlParameter.xml @@ -1229,11 +1229,13 @@ static void CreateSqlParameterLocaleId(){ property is used by parameters that have a of `Decimal`. + The property is used by parameters that have a of `Decimal`, `DateTime2`, `DateTimeOffset`, or `Time`. > [!WARNING] > Data may be truncated if the property is not explicitly specified and the data on the server does not fit in scale 0 (the default). - +> For the `DateTime2` type, scale 0 (the default) will be passed as datetime2(7). There is currently no way to send a parameter as datetime2(0). Scales 1-7 work as expected. +> This problem applies to `DateTimeOffset` and `Time` as well. + You do not need to specify values for the and properties for input parameters, as they can be inferred from the parameter value. `Precision` and `Scale` are required for output parameters and for scenarios where you need to specify complete metadata for a parameter without indicating a value, such as specifying a null value with a specific precision and scale. > [!NOTE] @@ -2068,4 +2070,4 @@ FieldName = @OriginalFieldName - \ No newline at end of file +