Skip to content

Commit e2ceb03

Browse files
committed
Fix odbc doc
1 parent 9bea6c4 commit e2ceb03

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

content/admin/configuration/database.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,12 @@ you may prefer to set SQL as your [default database](#default-database).
262262

263263
## Microsoft SQL Server
264264

265-
For now, MS SQL is only supported in Unix-like OS'es. You need to have
266-
[`unixODBC`](https://www.unixodbc.org/) installed on your machine, and your Erlang/OTP
265+
For now, MS SQL is only supported in Unix-like OS'es. Your Erlang/OTP
267266
must be compiled with ODBC support.
268-
Also, in some cases you need to add machine name to `sql_username`, especially
269-
when you have `sql_server` defined as an IP address, e.g.:
267+
268+
Also, in some cases you need to the add machine name to
269+
`sql_username`, especially when you have `sql_server` defined as an IP
270+
address, e.g.:
270271

271272
``` yaml
272273
sql_type: mssql
@@ -303,13 +304,15 @@ connect using a an ODBC DSN connection string constructed with:
303304
- ENCRYPTION=required (only if [sql_ssl](toplevel.md#sql_ssl) is true)
304305
- CLIENT_CHARSET=UTF-8
305306

306-
Since ejabberd [23.04](../../archive/23.04/index.md),
307-
t is possible to use different connection options by
308-
putting a full ODBC connection string in `sql_server` (e.g.
309-
`DSN=database;UID=ejabberd;PWD=password`). The DSN must be configured in
310-
existing system or user odbc.ini file, where it can be configured as desired,
311-
using a driver from system odbcinst.ini. The [sql_odbc_driver](toplevel.md#sql_odbc_driver)
312-
option will have no effect in this case.
307+
Since ejabberd [23.04](../../archive/23.04/index.md), it is possible
308+
to use different connection options by putting a full ODBC connection
309+
string in `sql_server` (e.g.
310+
`DSN=database;UID=ejabberd;PWD=password`). The DSN must be configured
311+
in existing system or user `odbc.ini` file, where it can be configured
312+
as desired, using a driver from system `odbcinst.ini`. The
313+
[sql_odbc_driver](toplevel.md#sql_odbc_driver) option will have no
314+
effect in this case and [`unixODBC`](http://www.unixodbc.org/) must be
315+
installed on your machine.
313316

314317
If specifying an ODBC connection string, an ODBC connection string must also be
315318
specified for any other hosts using MS SQL DB, otherwise the auto-generated

0 commit comments

Comments
 (0)