Skip to content

Commit cbfa8dc

Browse files
author
v-makouz
authored
Update using-always-encrypted-with-the-odbc-driver.md
1 parent 86d2e06 commit cbfa8dc

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

docs/connect/odbc/using-always-encrypted-with-the-odbc-driver.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,9 @@ while (SQL_SUCCEEDED(SQLFetch(hstmt)))
253253

254254
#### Money/SmallMoney encryption
255255

256-
Starting with ODBC Driver 17 for SQL Server version 17.7 it is possible to use Always Encrypted
256+
Starting with driver version 17.7 it is possible to use Always Encrypted
257257
with MONEY and SMALLMONEY. However there are some additional steps to take.
258-
For binding MONEY/SMALLMONEY encryption supports the following c-types:
258+
When inserting into encrypted MONEY or SMALLMONEY columns, use one of the following C types:
259259
```
260260
SQL_C_CHAR
261261
SQL_C_WCHAR
@@ -269,11 +269,7 @@ SQL_C_SBIGINT
269269
SQL_C_NUMERIC
270270
```
271271

272-
Supported SQL types are:
273-
```
274-
SQL_NUMERIC
275-
SQL_DOUBLE (precision may be lost when using this type)
276-
```
272+
and a SQL type of either `SQL_NUMERIC` or `SQL_DOUBLE` (precision may be lost when using this type).
277273

278274
##### Binding the variable
279275

@@ -290,7 +286,7 @@ SQLSetDescField(ipd, n, SQL_CA_SS_SERVER_TYPE, isSmallMoney ? (SQLPOINTER)SQL_SS
290286
(SQLPOINTER)SQL_SS_TYPE_MONEY, SQL_IS_INTEGER);
291287
292288
293-
// If the variable is bound as SQL_NUMERIC, additional descriptor field have to be set
289+
// If the variable is bound as SQL_NUMERIC, additional descriptor fields have to be set
294290
// var is SQL_NUMERIC_STRUCT contaning the value to be inserted
295291
296292
SQLHDESC hdesc = NULL;

0 commit comments

Comments
 (0)