Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 99102cd

Browse files
authored
Merge pull request #4853 from MicrosoftDocs/master
2/9 PM Publish
2 parents 0ee2ede + a60bf08 commit 99102cd

7 files changed

Lines changed: 266 additions & 37 deletions

docs/connect/odbc/TOC.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
# [ODBC Reference and Details +](../../odbc/microsoft-open-database-connectivity-odbc.md)
77
# [Download ODBC Driver for SQL Server](download-odbc-driver-for-sql-server.md)
88

9+
# [DSN Connection String Keywords and Attributes](dsn-connection-string-attribute.md)

docs/connect/odbc/dsn-connection-string-attribute.md

Lines changed: 221 additions & 0 deletions
Large diffs are not rendered by default.

docs/connect/odbc/linux-mac/connection-string-keywords-and-data-source-names-dsns.md

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Connection String Keywords and Data Source Names (DSNs) | Microsoft Docs"
2+
title: "Connecting to SQL Server | Microsoft Docs"
33
ms.custom: ""
44
ms.date: "01/19/2017"
55
ms.prod: "sql-non-specified"
@@ -23,26 +23,18 @@ ms.author: "genemi"
2323
manager: "jhubbard"
2424
ms.workload: "On Demand"
2525
---
26-
# Connection String Keywords and Data Source Names (DSNs)
26+
# Connecting to SQL Server
2727
[!INCLUDE[Driver_ODBC_Download](../../../includes/driver_odbc_download.md)]
2828

2929
This topic discusses how you can create a connection to a [!INCLUDE[ssNoVersion](../../../includes/ssnoversion_md.md)] database.
3030

3131
## Connection Properties
32-
For this release of the [!INCLUDE[msCoName](../../../includes/msconame_md.md)] ODBC Driver for [!INCLUDE[ssNoVersion](../../../includes/ssnoversion_md.md)] on Linux or macOS, you can use the following connection keywords:
33-
34-
||||||
35-
|-|-|-|-|-|
36-
|`Addr`|`Address`|`ApplicationIntent`|`AutoTranslate`|`Database`|
37-
|`Driver`|`DSN`|`Encrypt`|`FileDSN`|`MARS_Connection`|
38-
|`MultiSubnetFailover`|`PWD`|`Server`|`Trusted_Connection`|`TrustServerCertificate`|
39-
|`UID`|`WSID`|`ColumnEncryption`|`TransparentNetworkIPResolution`||
32+
33+
See [DSN and Connection String Keywords and Attributes](../../../connect/odbc/dsn-connection-string-attribute.md) for all the connection string keywords and attributes supported on Linux and Mac
4034

4135
> [!IMPORTANT]
4236
> When connecting to a database that uses database mirroring (has a failover partner), do not specify the database name in the connection string. Instead, send a **use** *database_name* command to connect to the database before executing your queries.
4337
44-
For more information about these keywords, see the ODBC section of [Using Connection String Keywords with SQL Server Native Client](http://go.microsoft.com/fwlink/?LinkID=126696).
45-
4638
The value passed to the **Driver** keyword can be one of the following:
4739

4840
- The name you used when you installed the driver.
@@ -96,15 +88,18 @@ SSL uses the OpenSSL library. The following table shows the minimum supported ve
9688

9789
|Platform|Minimum OpenSSL Version|Default Certificate Trust Store Location|
9890
|------------|---------------------------|--------------------------------------------|
99-
|Debian 8.71 |1.0.1t|/etc/ssl/certs|
100-
|macOS 10.12|1.0.2k|/usr/local/etc/openssl/certs|
101-
|OS X 10.11|1.0.2j|/usr/local/etc/openssl/certs|
102-
|Red Hat Enterprise Linux 6|1.0.0-10|/etc/pki/tls/cert.pem|
103-
|Red Hat Enterprise Linux 7|1.0.1e|/etc/pki/tls/cert.pem|
104-
|SuSE Linux Enterprise 12 |1.0.1i|/etc/ssl/certs|
105-
|Ubuntu 15.10 |1.0.2d|/etc/ssl/certs|
106-
|Ubuntu 16.04 |1.0.2g|/etc/ssl/certs|
107-
|Ubuntu 16.10 |1.0.2g|/etc/ssl/certs|
91+
|Debian 9|1.1.0|/etc/ssl/certs|
92+
|Debian 8.71 |1.0.1|/etc/ssl/certs|
93+
|macOS 10.13|1.0.2|/usr/local/etc/openssl/certs|
94+
|macOS 10.12|1.0.2|/usr/local/etc/openssl/certs|
95+
|OS X 10.11|1.0.2|/usr/local/etc/openssl/certs|
96+
|Red Hat Enterprise Linux 7|1.0.1|/etc/pki/tls/cert.pem|
97+
|Red Hat Enterprise Linux 6|1.0.0-10|/etc/pki/tls/cert.pem|
98+
|SuSE Linux Enterprise 12 |1.0.1|/etc/ssl/certs|
99+
|SuSE Linux Enterprise 11 |0.9.8|/etc/ssl/certs|
100+
|Ubuntu 17.10 |1.0.2|/etc/ssl/certs|
101+
|Ubuntu 16.10 |1.0.2|/etc/ssl/certs|
102+
|Ubuntu 16.04 |1.0.2|/etc/ssl/certs|
108103

109104
You can also specify encryption in the connection string using the `Encrypt` option when using **SQLDriverConnect** to connect.
110105

docs/connect/odbc/linux-mac/programming-guidelines.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Programming Guidelines | Microsoft Docs"
2+
title: "Programming Guidelines (ODBC Driver for SQL Server) | Microsoft Docs"
33
ms.custom: ""
44
ms.date: "01/11/2018"
55
ms.prod: "sql-non-specified"
@@ -23,7 +23,7 @@ ms.workload: "On Demand"
2323

2424
The programming features of the [!INCLUDE[msCoName](../../../includes/msconame_md.md)] ODBC Driver for [!INCLUDE[ssNoVersion](../../../includes/ssnoversion_md.md)] on macOS and Linux are based on ODBC in [!INCLUDE[ssNoVersion](../../../includes/ssnoversion_md.md)] Native Client ([SQL Server Native Client (ODBC)](http://go.microsoft.com/fwlink/?LinkID=134151)). [!INCLUDE[ssNoVersion](../../../includes/ssnoversion_md.md)] Native Client is based on ODBC in Windows Data Access Components ([ODBC Programmer's Reference](http://go.microsoft.com/fwlink/?LinkID=45250)).
2525

26-
An ODBC application can use Multiple Active Result Sets (MARS) and other [!INCLUDE[ssNoVersion](../../../includes/ssnoversion_md.md)] specific features by including `/usr/local/include/msodbcsql.h` after including the unixODBC headers (`sql.h`, `sqlext.h`, `sqltypes.h`, and `sqlucode.h`). Then use the same symbolic names for [!INCLUDE[ssNoVersion](../../../includes/ssnoversion_md.md)]-specific items that you would in your Windows ODBC applications.
26+
An ODBC application can use Multiple Active Result Sets (MARS) and other [!INCLUDE[ssNoVersion](../../../includes/ssnoversion_md.md)] specific features by including `/usr/local/include/msodbcsql.h` after including the unixODBC headers (`sql.h`, `sqlext.h`, `sqltypes.h`, and `sqlucode.h`). Then use the same symbolic names for [!INCLUDE[ssNoVersion](../../../includes/ssnoversion_md.md)]-specific items that you would use in your Windows ODBC applications.
2727

2828
## Available Features
2929
The following sections from the [!INCLUDE[ssNoVersion](../../../includes/ssnoversion_md.md)] Native Client documentation for ODBC ([SQL Server Native Client (ODBC)](http://go.microsoft.com/fwlink/?LinkID=134151)) are valid when using the ODBC driver on macOS and Linux:
@@ -50,7 +50,7 @@ The following sections from the [!INCLUDE[ssNoVersion](../../../includes/ssnover
5050
The following features have not been verified to work correctly in this release of the ODBC driver on macOS and Linux:
5151

5252
- Failover Cluster Connection
53-
- [Transparent Network IP Resolution](https://docs.microsoft.com/en-us/sql/connect/odbc/linux/using-transparent-network-ip-resolution)
53+
- [Transparent Network IP Resolution](https://docs.microsoft.com/en-us/sql/connect/odbc/linux/using-transparent-network-ip-resolution) (before ODBC Driver 17)
5454
- [Advanced Driver Tracing](https://blogs.msdn.microsoft.com/mattn/2012/05/15/enabling-advanced-driver-tracing-for-the-sql-native-client-odbc-drivers/)
5555

5656
The following features are not available in this release of the ODBC driver on macOS and Linux:
@@ -102,15 +102,15 @@ For ODBC Driver 17, SQLCHAR data in one of the following character sets/encoding
102102
|ISO-8859-13|Latin-7|
103103
|ISO-8859-15|Latin-9|
104104

105-
Upon connection, the driver detects the current locale of the process it is loaded in. If it uses one of the encodings above, the driver will use that encoding for SQLCHAR (narrow-character) data; otherwise, it defaults to UTF-8. Since all processes start in the "C" locale by default (and thus cause the driver to default to UTF-8), if an application needs to use one of the encodings above, it should use the **setlocale** function to set the locale appropriately before connecting; either by specifying the desired locale explicitly, or using an empty string e.g. `setlocale(LC_ALL, "")` to use the locale settings of the environment.
105+
Upon connection, the driver detects the current locale of the process it is loaded in. If it uses one of the encodings above, the driver uses that encoding for SQLCHAR (narrow-character) data; otherwise, it defaults to UTF-8. Since all processes start in the "C" locale by default (and thus cause the driver to default to UTF-8), if an application needs to use one of the encodings above, it should use the **setlocale** function to set the locale appropriately before connecting; either by specifying the desired locale explicitly, or using an empty string for example `setlocale(LC_ALL, "")` to use the locale settings of the environment.
106106

107-
Thus, in a typical Linux or Mac environment where the encoding is UTF-8, users of ODBC Driver 17 upgrading from 13 or 13.1 will not observe any differences. However, applications which use a non-UTF-8 encoding in the above list via `setlocale()` will need to use that encoding for data to/from the driver instead of UTF-8.
107+
Thus, in a typical Linux or Mac environment where the encoding is UTF-8, users of ODBC Driver 17 upgrading from 13 or 13.1 will not observe any differences. However, applications that use a non-UTF-8 encoding in the above list via `setlocale()` need to use that encoding for data to/from the driver instead of UTF-8.
108108

109109
SQLWCHAR data must be UTF-16LE (Little Endian).
110110

111111
When binding input parameters with SQLBindParameter, if a narrow character SQL type such as SQL_VARCHAR is specified, the driver converts the supplied data from the client encoding to the default (typically codepage 1252) [!INCLUDE[ssNoVersion](../../../includes/ssnoversion_md.md)] encoding. For output parameters, the driver converts from the encoding specified in the collation information associated with the data to the client encoding. However, data loss is possible --- characters in the source encoding not representable in the target encoding will convert to a question mark ('?').
112112

113-
To avoid this data loss when binding input parameters, specify a Unicode SQL character type such as SQL_NVARCHAR. In this case, the driver will convert from the client encoding to UTF-16, which can represent all Unicode characters. Furthermore, the target column or parameter on the server must also be either a Unicode type (**nchar**, **nvarchar**, **ntext**) or one with a collation/encoding which can represent all the characters of the original source data. For avoiding data loss with output parameters, specify a Unicode SQL type, and either a Unicode C type (SQL_C_WCHAR), causing the driver to return data as UTF-16; or a narrow C type, and ensure that the client encoding can represent all the characters of the source data (this is always possible with UTF-8.)
113+
To avoid this data loss when binding input parameters, specify a Unicode SQL character type such as SQL_NVARCHAR. In this case, the driver converts from the client encoding to UTF-16, which can represent all Unicode characters. Furthermore, the target column or parameter on the server must also be either a Unicode type (**nchar**, **nvarchar**, **ntext**) or one with a collation/encoding, which can represent all the characters of the original source data. For avoiding data loss with output parameters, specify a Unicode SQL type, and either a Unicode C type (SQL_C_WCHAR), causing the driver to return data as UTF-16; or a narrow C type, and ensure that the client encoding can represent all the characters of the source data (this is always possible with UTF-8.)
114114

115115
For more information about collations and encodings, see [Collation and Unicode Support](../../../relational-databases/collations/collation-and-unicode-support.md).
116116

docs/connect/odbc/microsoft-odbc-driver-for-sql-server.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,29 @@ We have a small .zip file that contains the source code of a C++ program which u
3939

4040
## Documentation
4141

42+
### Features
43+
44+
- [Custom Keystore Providers](../../connect/odbc/custom-keystore-providers.md)
45+
- [DSN and Connection String Keywords and Attributes](dsn-connection-string-attribute.md)
46+
- [SQL Server Native Client](../../relational-databases/native-client/features/sql-server-native-client-features.md) (the features available also apply, without OLEDB, to the ODBC Driver for SQL Server)
47+
- [Using Always Encrypted](../../connect/odbc/using-always-encrypted-with-the-odbc-driver.md)
48+
- [Using Azure Active Directory](../../connect/odbc/using-azure-active-directory.md)
49+
- [Using Transparent Network IP Resolution](../../connect/odbc/using-transparent-network-ip-resolution.md)
50+
4251
### Linux and macOS
4352

4453
- [Installing the Driver](../../connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server.md)
54+
- [Connecting to SQL Server](../../connect/odbc/linux-mac/connection-string-keywords-and-data-source-names-dsns.md)
4555
- [Connecting with **bcp**](../../connect/odbc/linux-mac/connecting-with-bcp.md)
4656
- [Connecting with **sqlcmd**](../../connect/odbc/linux-mac/connecting-with-sqlcmd.md)
47-
- [Using Integrated Authentication (Kerberos)](../../connect/odbc/linux-mac/using-integrated-authentication.md)
48-
- [Connection String Keywords and Data Source Names](../../connect/odbc/linux-mac/connection-string-keywords-and-data-source-names-dsns.md)
4957
- [Data Access Tracing](../../connect/odbc/linux-mac/data-access-tracing-with-the-odbc-driver-on-linux.md)
5058
- [Frequently Asked Questions](../../connect/odbc/linux-mac/frequently-asked-questions-faq-for-odbc-linux.md)
5159
- [Installing the Driver Manager](../../connect/odbc/linux-mac/installing-the-driver-manager.md)
5260
- [Known Issues](../../connect/odbc/linux-mac/known-issues-in-this-version-of-the-driver.md)
5361
- [Programming Guidelines](../../connect/odbc/linux-mac/programming-guidelines.md)
5462
- [Release Notes](../../connect/odbc/linux-mac/release-notes.md)
5563
- [Support for High Availability and Disaster Recovery](../../connect/odbc/linux-mac/odbc-driver-on-linux-support-for-high-availability-disaster-recovery.md)
64+
- [Using Integrated Authentication (Kerberos)](../../connect/odbc/linux-mac/using-integrated-authentication.md)
5665

5766
### Windows
5867

@@ -63,13 +72,7 @@ We have a small .zip file that contains the source code of a C++ program which u
6372
- [Release Notes](../../connect/odbc/windows/release-notes.md)
6473
- [System Requirements, Installation, and Driver Files](../../connect/odbc/windows/system-requirements-installation-and-driver-files.md)
6574

66-
### Features
6775

68-
- [Custom Keystore Providers](../../connect/odbc/custom-keystore-providers.md)
69-
- [SQL Server Native Client](../../relational-databases/native-client/features/sql-server-native-client-features.md) (the features available also apply, without OLEDB, to the ODBC Driver for SQL Server)
70-
- [Using Always Encrypted](../../connect/odbc/using-always-encrypted-with-the-odbc-driver.md)
71-
- [Using Azure Active Directory](../../connect/odbc/using-azure-active-directory.md)
72-
- [Using Transparent Network IP Resolution](../../connect/odbc/using-transparent-network-ip-resolution.md)
7376

7477
## Community
7578
- [Microsoft ODBC Driver For SQL Server Team blog](http://blogs.msdn.com/sqlnativeclient/default.aspx)

docs/connect/odbc/windows/dsn-wizard-3.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ Alters the behavior of **Multi-subnet failover** to allow for faster reconnectio
7979

8080
Enables automatic decryption and encryption of data transfers to and from columns encrypted with the [Always Encrypted](../../../connect/odbc/using-always-encrypted-with-the-odbc-driver.md) feature available in SQL Server 2016 and later.
8181

82+
### Use FMTONLY metadata discovery:
83+
84+
Use the legacy SET FMTONLY metadata discovery method when connecting to SQL Server 2012 or newer. Enable this only when using queries not supported by [sp_describe_first_result_set](../../../relational-databases/system-stored-procedures/sp-describe-first-result-set-transact-sql.md), such as those containing temporary tables.
85+
8286
### Next
8387

8488
Proceeds to the next screen of the wizard.

docs/linux/quickstart-install-connect-suse.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: This quickstart shows how to install SQL Server 2017 on SUSE Linux
44
author: rothja
55
ms.author: jroth
66
manager: craigg
7-
ms.date: 10/02/2017
7+
ms.date: 02/09/2018
88
ms.topic: article
99
ms.prod: "sql-non-specified"
1010
ms.prod_service: "database-engine"
@@ -47,12 +47,17 @@ To configure SQL Server on SLES, run the following commands in a terminal to ins
4747

4848
```bash
4949
sudo zypper addrepo -fc https://packages.microsoft.com/config/sles/12/mssql-server-2017.repo
50-
sudo zypper --gpg-auto-import-keys refresh
5150
```
5251

5352
> [!NOTE]
5453
> This is the Cumulative Update (CU) repository. For more information about your repository options and their differences, see [Configure repositories for SQL Server on Linux](sql-server-linux-change-repo.md).
5554
55+
1. Refresh your repositories.
56+
57+
```bash
58+
sudo zypper --gpg-auto-import-keys refresh
59+
```
60+
5661
1. Run the following commands to install SQL Server:
5762

5863
```bash

0 commit comments

Comments
 (0)