Skip to content

Commit 4c8421b

Browse files
authored
Merge pull request #21205 from MicrosoftDocs/FromPublicRepo
Confirm merge from FromPublicRepo to main to sync with https://github.com/MicrosoftDocs/sql-docs (branch live)
2 parents 0f9ed97 + e83cb34 commit 4c8421b

2 files changed

Lines changed: 9 additions & 15 deletions

File tree

docs/connect/jdbc/using-the-jdbc-driver.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This section provides quickstart instructions to make a simple connection to a [
2323

2424
The Microsoft JDBC Driver provides different Jars to be used in correspondence with your preferred Java Runtime Environment (JRE) settings, as under:
2525

26-
The Microsoft JDBC Driver 9.4 for SQL Server provides **mssql-jdbc-10.2.0.jre8.jar**, **mssql-jdbc-10.2.0.jre11.jar**, and **mssql-jdbc-10.2.0.jre17.jar** class library files.
26+
The Microsoft JDBC Driver 10.2 for SQL Server provides **mssql-jdbc-10.2.0.jre8.jar**, **mssql-jdbc-10.2.0.jre11.jar**, and **mssql-jdbc-10.2.0.jre17.jar** class library files.
2727

2828
The Microsoft JDBC Driver 9.4 for SQL Server provides **mssql-jdbc-9.4.1.jre8.jar**, **mssql-jdbc-9.4.1.jre11.jar**, and **mssql-jdbc-9.4.1.jre16.jar** class library files.
2929

docs/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -156,23 +156,17 @@ sudo zypper install -y unixODBC-devel
156156
### <a id="ubuntu17"></a> Ubuntu
157157

158158
```bash
159-
sudo su
160-
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
161159

162-
#Download appropriate package for the OS version
163-
#Choose only ONE of the following, corresponding to your OS version
160+
if ! [[ "16.04 18.04 20.04 21.04" == *"$(lsb_release -rs)"* ]];
161+
then
162+
echo "Ubuntu $(lsb_release -rs) is not currently supported.";
163+
exit;
164+
fi
164165

165-
#Ubuntu 16.04
166-
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
167-
168-
#Ubuntu 18.04
169-
curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
170-
171-
#Ubuntu 20.04
172-
curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
166+
sudo su
167+
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
173168

174-
#Ubuntu 21.04
175-
curl https://packages.microsoft.com/config/ubuntu/21.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
169+
curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list > /etc/apt/sources.list.d/mssql-release.list
176170

177171
exit
178172
sudo apt-get update

0 commit comments

Comments
 (0)