Skip to content

Commit 37a2543

Browse files
authored
Merge pull request #3685 from MicrosoftDocs/master
10/26 PM Publish
2 parents 767ab30 + abd968d commit 37a2543

14 files changed

+98
-69
lines changed

docs/connect/jdbc/setting-the-connection-properties.md

Lines changed: 11 additions & 8 deletions
Large diffs are not rendered by default.

docs/integration-services/change-data-capture/apply-the-changes-to-the-destination.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ ms.workload: "On Demand"
5959

6060
For example, an UPDATE statement for a Customer table might have the following syntax:
6161

62-
```
62+
```sql
6363
update CDCSample.Customer
6464
set TerritoryID = ?,
6565
CustomerType = ?,
@@ -91,7 +91,7 @@ ms.workload: "On Demand"
9191

9292
For example, a DELETE statement for a Customer table might have the following syntax:
9393

94-
```
94+
```sql
9595
delete from Customer where CustomerID = ?
9696
9797
```

docs/integration-services/change-data-capture/prepare-to-query-for-the-change-data.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ ms.workload: "Inactive"
7070

7171
- If you are programming in C#, enter the following lines of code:
7272

73-
```
73+
```csharp
7474
int dataReady;
7575
System.DateTime extractStartTime;
7676
System.DateTime extractEndTime;
@@ -96,7 +96,7 @@ ms.workload: "Inactive"
9696

9797
- If you are programming in [!INCLUDE[vbprvb](../../includes/vbprvb-md.md)], enter the following lines of code:
9898

99-
```
99+
```vb
100100
Dim dataReady As Integer
101101
Dim extractStartTime As Date
102102
Dim extractEndTime As Date
@@ -144,7 +144,7 @@ ms.workload: "Inactive"
144144

145145
4. For **SQLStatement**, enter the following SQL statement:
146146

147-
```
147+
```sql
148148
declare @ExtractStartTime datetime,
149149
@ExtractEndTime datetime,
150150
@DataReady int

docs/integration-services/change-data-capture/the-oracle-cdc-service.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ms.workload: "Inactive"
3131

3232
When using the Oracle CDC Designer console, changes are automatically detected. When updating the Oracle CDC configuration directly using SQL, the following procedure should be called for the Oracle CDC Service to notice the configuration change:
3333

34-
```
34+
```sql
3535
DECLARE @dbname nvarchar(128) = 'HRcdc'
3636
EXECUTE [MSXDBCDC].[dbo].[xdbcdc_update_config_version] @dbname
3737
GO
@@ -60,7 +60,7 @@ GO
6060

6161
The log mining password is stored encrypted by means of an asymmetric key with the fixed name `xdbcdc_asym_key` that is automatically created with the following command:
6262

63-
```
63+
```sql
6464
USE [<cdc-database-name>]
6565
CREATE ASYMMETRIC KEY xdbcdc_asym_key
6666
WITH ALGORITHM = RSA_1024

docs/integration-services/control-flow/execute-process-task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ ms.workload: "On Demand"
6161

6262
- If you use Microsoft Visual Basic to write the application, set the **My.Application.CommandLineArgs** property. The following example sets the **My.Application.CommandLineArgs** property is to retrieve two arguments:
6363

64-
```
64+
```vb
6565
Dim variable1 As String = My.Application.CommandLineArgs.Item(0)
6666
Dim variable2 As String = My.Application.CommandLineArgs.Item(1)
6767
```

docs/integration-services/data-flow/cdc-source.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ ms.workload: "Inactive"
6464
### Use this script to isolate problems and reproduce them in SQL Server Management Studio
6565
The CDC source operation is governed by the operation of the CDC Control task executed before invoking the CDC source. The CDC Control task prepares the value of the CDC state package variable to contain the start and end LSNs. It performs function equivalent to the following script:
6666

67-
```
67+
```sql
6868
use <cdc-enabled-database-name>
6969
declare @start_lsn binary(10), @end_lsn binary(10)
7070
set @start_lsn = sys.fn_cdc_increment_lsn(

docs/integration-services/data-flow/use-a-recordset-destination.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ ms.workload: "On Demand"
107107

108108
3. For **SQL command text**, enter the following query:
109109

110-
```
110+
```sql
111111
SELECT Person.Contact.EmailAddress, Person.Contact.FirstName, CONVERT(float, Sales.SalesPerson.Bonus) AS Bonus
112112
FROM Sales.SalesPerson INNER JOIN
113113
Person.Contact ON Sales.SalesPerson.SalesPersonID = Person.Contact.ContactID

docs/integration-services/data-flow/walkthrough-publish-an-ssis-package-as-a-sql-view.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ ms.workload: "Inactive"
190190
### Create a Linked Server using the OLE DB Provider for SSIS
191191
Create a linked server using the OLE DB Provider for SSIS (SSISOLEDB) by running the following query in SQL Server Management Studio.
192192

193-
```
193+
```sql
194194

195195
USE [master]
196196
GO
@@ -211,7 +211,7 @@ GO
211211

212212
1. Before creating the view, type and run the following query in the new query window. OPENQUERY is a rowset function supported by SQL Server. It executes the specified pass-through query on the specified linked server using the OLE DB Provider associated with the linked server. OPENQUERY can be referenced in the FROM clause of a query as if it were a table name. See [OPENQUERY documentation on MSDN Library](http://msdn.microsoft.com/library/ms188427.aspx) for more information.
213213

214-
```
214+
```sql
215215
SELECT * FROM OPENQUERY(SSISFeedServer,N'Folder=Eldorado;Project=SSISPackagePublishing;Package=Package.dtsx')
216216
GO
217217
```
@@ -221,7 +221,7 @@ GO
221221

222222
2. Create a view in the database **TestDB** for the purpose of this walkthrough) by running the following query.
223223

224-
```
224+
```sql
225225
226226
USE [TestDB]
227227
GO
@@ -234,14 +234,14 @@ GO
234234

235235
3. Test the view by running the following query.
236236

237-
```
237+
```sql
238238
SELECT * FROM SSISPackageView
239239
```
240240

241241
### OPENQUERY Function
242242
The syntax for OPENQUERY function is:
243243

244-
```
244+
```sql
245245
SELECT * FROM OPENQUERY(<LinkedServer Name>, N’Folder=<Folder Name from SSIS Catalog>; Project=<SSIS Project Name>; Package=<SSIS Package Name>; Use32BitRuntime=[True | False];Parameters=”<parameter_name_1>=<value1>; parameter_name_2=<value2>”;Timeout=<Number of Seconds>;’)
246246
```
247247

docs/integration-services/extending-packages-scripting-data-flow-script-component-examples/creating-an-odbc-destination-with-the-script-component.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
---
2-
title: "Creating an ODBC Destination with the Script Component | Microsoft Docs"
3-
ms.custom: ""
4-
ms.date: "03/17/2017"
5-
ms.prod: "sql-server-2016"
6-
ms.reviewer: ""
7-
ms.suite: ""
8-
ms.technology:
9-
- "docset-sql-devref"
10-
ms.tgt_pltfrm: ""
11-
ms.topic: "reference"
12-
applies_to:
13-
- "SQL Server 2016 Preview"
14-
helpviewer_keywords:
15-
- "Script component [Integration Services], destination components"
16-
- "ODBC destination [Integration Services]"
17-
- "destinations [Integration Services], components"
18-
- "Script component [Integration Services], examples"
19-
ms.assetid: d198c866-78f4-4a50-ae15-333160645815
20-
caps.latest.revision: 42
21-
author: "douglaslMS"
22-
ms.author: "douglasl"
23-
manager: "jhubbard"
24-
---
25-
# Creating an ODBC Destination with the Script Component
1+
---
2+
title: "Creating an ODBC Destination with the Script Component | Microsoft Docs"
3+
ms.custom: ""
4+
ms.date: "03/17/2017"
5+
ms.prod: "sql-server-2016"
6+
ms.reviewer: ""
7+
ms.suite: ""
8+
ms.technology:
9+
- "docset-sql-devref"
10+
ms.tgt_pltfrm: ""
11+
ms.topic: "reference"
12+
applies_to:
13+
- "SQL Server 2016 Preview"
14+
helpviewer_keywords:
15+
- "Script component [Integration Services], destination components"
16+
- "ODBC destination [Integration Services]"
17+
- "destinations [Integration Services], components"
18+
- "Script component [Integration Services], examples"
19+
ms.assetid: d198c866-78f4-4a50-ae15-333160645815
20+
caps.latest.revision: 42
21+
author: "douglaslMS"
22+
ms.author: "douglasl"
23+
manager: "jhubbard"
24+
---
25+
# Creating an ODBC Destination with the Script Component
2626
In [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)], you typically save data to an ODBC destination by using an [!INCLUDE[vstecado](../../includes/vstecado-md.md)] destination and the [!INCLUDE[dnprdnshort](../../includes/dnprdnshort-md.md)] Data Provider for ODBC. However, you can also create an ad hoc ODBC destination for use in a single package. To create this ad hoc ODBC destination, you use the Script component as shown in the following example.
2727

2828
> [!NOTE]
@@ -45,7 +45,7 @@ manager: "jhubbard"
4545

4646
2. Create a destination table by running the following Transact-SQL command in the **AdventureWorks** database:
4747

48-
```
48+
```sql
4949
CREATE TABLE [Person].[Address2]([AddressID] [int] NOT NULL,
5050
[City] [nvarchar](30) NOT NULL)
5151
```

docs/integration-services/extending-packages-scripting-data-flow-script-component-types/creating-a-destination-with-the-script-component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ manager: "jhubbard"
112112

113113
2. Create a destination table by running the following [!INCLUDE[tsql](../../includes/tsql-md.md)] command in the **AdventureWorks** database:
114114

115-
```
115+
```sql
116116
CREATE TABLE [Person].[Address2]([AddressID] [int] NOT NULL,
117117
[City] [nvarchar](30) NOT NULL)
118118
```

docs/integration-services/extending-packages-scripting-data-flow-script-component-types/creating-a-synchronous-transformation-with-the-script-component.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ else
155155

156156
6. Create and configure a destination component that expects the **AddressID** and **City** columns, such as a [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] destination, or the sample destination component demonstrated in [Creating a Destination with the Script Component](../../integration-services/extending-packages-scripting-data-flow-script-component-types/creating-a-destination-with-the-script-component.md). Then connect the output of the transformation to the destination component. You can create a destination table by running the following [!INCLUDE[tsql](../../includes/tsql-md.md)] command in the **AdventureWorks** database:
157157

158-
```
158+
```sql
159159
CREATE TABLE [Person].[Address2]([AddressID] [int] NOT NULL,
160160
[City] [nvarchar](30) NOT NULL)
161161
```
@@ -209,7 +209,7 @@ public class ScriptMain:
209209

210210
7. Create and configure two destination components that expect the **AddressID** and **City** columns, such as a [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] destination, a Flat File destination, or the sample destination component demonstrated in [Creating a Destination with the Script Component](../../integration-services/extending-packages-scripting-data-flow-script-component-types/creating-a-destination-with-the-script-component.md). Then connect each of the outputs of the transformation to one of the destination components. You can create destination tables by running a [!INCLUDE[tsql](../../includes/tsql-md.md)] command similar to the following (with unique table names) in the **AdventureWorks** database:
211211

212-
```
212+
```sql
213213
CREATE TABLE [Person].[Address2](
214214
[AddressID] [int] NOT NULL,
215215
[City] [nvarchar](30) NOT NULL

docs/integration-services/extending-packages-scripting-data-flow-script-component-types/creating-an-asynchronous-transformation-with-the-script-component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ manager: "jhubbard"
126126

127127
7. Create and configure a destination component for the first output that expects the **AddressID** and **City** columns, such as a [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] destination, or the sample destination component demonstrated in [Creating a Destination with the Script Component](../../integration-services/extending-packages-scripting-data-flow-script-component-types/creating-a-destination-with-the-script-component.md), . Then connect the first output of the transformation, **MyAddressOutput**, to the destination component. You can create a destination table by running the following [!INCLUDE[tsql](../../includes/tsql-md.md)] command in the **AdventureWorks** database:
128128

129-
```
129+
```sql
130130
CREATE TABLE [Person].[Address2]([AddressID] [int] NOT NULL,
131131
[City] [nvarchar](30) NOT NULL)
132132
```

docs/integration-services/troubleshooting/debugging-data-flow.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,12 @@ manager: "jhubbard"
7474
7575
The following example displays the number of rows sent between components of a package.
7676

77-
```
77+
```sql
7878
use SSISDB
7979
select package_name, task_name, source_component_name, destination_component_name, rows_sent
8080
from catalog.execution_data_statistics
8181
where execution_id = 132
82-
order by source_component_name, destination_component_name
83-
82+
order by source_component_name, destination_component_name
8483
```
8584

8685
The following example calculates the number of rows per millisecond sent by each component for a specific execution. The calculated values are:
@@ -104,7 +103,6 @@ where execution_id = 132
104103
group by source_component_name, destination_component_name
105104
having (datediff(ms,min(created_time),max(created_time))) > 0
106105
order by source_component_name desc
107-
108106
```
109107

110108
## Configure an Error Output in a Data Flow Component
@@ -224,13 +222,11 @@ order by source_component_name desc
224222

225223
Here is a sample SQL script that performs the steps described in the above scenario:
226224

227-
```
228-
225+
```sql
229226
Declare @execid bigint
230227
EXEC [SSISDB].[catalog].[create_execution] @folder_name=N'ETL Folder', @project_name=N'ETL Project', @package_name=N'Package.dtsx', @execution_id=@execid OUTPUT
231228
EXEC [SSISDB].[catalog].add_data_tap @execution_id = @execid, @task_package_path = '\Package\Data Flow Task', @dataflow_path_id_string = 'Paths[Flat File Source.Flat File Source Output]', @data_filename = 'output.txt'
232229
EXEC [SSISDB].[catalog].[start_execution] @execid
233-
234230
```
235231

236232
The folder name, project name, and package name parameters of the create_execution stored procedure correspond to the folder, project, and package names in the Integration Services catalog. You can get the folder, project, and package names to use in the create_execution call from the SQL Server Management Studio as shown in the following image. If you do not see your SSIS project here, you may not have deployed the project to SSIS server yet. Right-click on SSIS project in Visual Studio and click Deploy to deploy the project to the expected SSIS server.
@@ -254,18 +250,16 @@ EXEC [SSISDB].[catalog].[start_execution] @execid
254250
### Removing a data tap
255251
You can remove a data tap before starting the execution by using the [catalog.remove_data_tap](../../integration-services/system-stored-procedures/catalog-remove-data-tap.md) stored procedure. This stored procedure takes the ID of data tap as a parameter, which you can get as an output of the add_data_tap stored procedure.
256252

257-
```
258-
253+
```sql
259254
DECLARE @tap_id bigint
260255
EXEC [SSISDB].[catalog].add_data_tap @execution_id = @execid, @task_package_path = '\Package\Data Flow Task', @dataflow_path_id_string = 'Paths[Flat File Source.Flat File Source Output]', @data_filename = 'output.txt' @data_tap_id=@tap_id OUTPUT
261256
EXEC [SSISDB].[catalog].remove_data_tap @tap_id
262-
263257
```
264258

265259
### Listing all data taps
266260
You can also list all the data taps by using the catalog.execution_data_taps view. The following example extracts data taps for a specification execution instance (ID: 54).
267261

268-
```
262+
```sql
269263
select * from [SSISDB].[catalog].execution_data_taps where execution_id=@execid
270264
```
271265

docs/linux/sql-server-linux-setup.md

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,18 @@ To rollback or downgrade SQL Server to a previous release, use the following ste
9191
> [!IMPORTANT]
9292
> Downgrade is only supported between RTM, RC2, and RC1 at this time.
9393
94+
## <a id="versioncheck"></a> Check installed SQL Server version
95+
96+
To verify your current version and edition of SQL Server on Linux, use the following procedure:
97+
98+
1. If not already installed, install the [SQL Server command-line tools](sql-server-linux-setup-tools.md).
99+
100+
1. Use **sqlcmd** to run a Transact-SQL command that displays your SQL Server version and edition.
101+
102+
```bash
103+
sqlcmd -S localhost -U SA -Q 'select @@VERSION'
104+
```
105+
94106
## <a id="uninstall"></a> Uninstall SQL Server
95107

96108
To remove the **mssql-server** package on Linux, use one of the following commands based on your platform:
@@ -121,6 +133,22 @@ There are two main types of repositories for each distribution:
121133

122134
Each CU and GDR release contains the full SQL Server package and all previous updates for that repository. Updating from a GDR release to a CU release is supported by changing your configured repository for SQL Server. You can also [downgrade](#rollback) to any release within your major version (ex: 2017). Updating from a CU release to a GDR release is not supported.
123135

136+
### Check your configured repository
137+
138+
If you want to verify what repository is configured, use the following platform-dependent techniques.
139+
140+
| Platform | Procedure |
141+
|-----|-----|
142+
| RHEL | 1. View the files in the **/etc/yum.repos.d** directory: `sudo ls /etc/yum.repos.d`<br/>2. Look for a file that configures the SQL Server directory, such as **mssql-server.repo**.<br/>3. Print out the contents of the file: `sudo cat /etc/yum.repos.d/mssql-server.repo`<br/>4. The **name** property is the configured repository.|
143+
| SLES | 1. Run the following command: `sudo zypper info mssql-server`<br/>2. The **Repository** property is the configured repository. |
144+
| Ubuntu | 1. Run the following command: `sudo cat /etc/apt/sources.list`<br/>2. Examine the package URL for mssql-server. |
145+
146+
The end of the repository URL confirms the repository type:
147+
148+
- **mssql-server**: preview repository.
149+
- **mssql-server-2017**: CU repository.
150+
- **mssql-server-2017-gdr**: GDR repository.
151+
124152
### Change the source repository
125153

126154
To configure the CU or GDR repositories, use the following steps:
@@ -130,11 +158,15 @@ To configure the CU or GDR repositories, use the following steps:
130158
131159
1. If necessary, remove the previously configured repository.
132160

133-
| Platform | Repository removal command |
134-
|-----|-----|
135-
| RHEL | `sudo rm -rf /etc/yum.repos.d/mssql-server.repo` |
136-
| SLES | `sudo zypper removerepo 'packages-microsoft-com-mssql-server'` |
137-
| Ubuntu | `sudo add-apt-repository -r 'deb [arch=amd64] https://packages.microsoft.com/ubuntu/16.04/mssql-server xenial main'` |
161+
| Platform | Repository | Repository removal command |
162+
|---|---|---|
163+
| RHEL | **All** | `sudo rm -rf /etc/yum.repos.d/mssql-server.repo` |
164+
| SLES | **CTP** | `sudo zypper removerepo 'packages-microsoft-com-mssql-server'` |
165+
| | **CU** | `sudo zypper removerepo 'packages-microsoft-com-mssql-server-2017'` |
166+
| | **GDR** | `sudo zypper removerepo 'packages-microsoft-com-mssql-server-2017-gdr'`|
167+
| Ubuntu | **CTP** | `sudo add-apt-repository -r 'deb [arch=amd64] https://packages.microsoft.com/ubuntu/16.04/mssql-server xenial main'`
168+
| | **CU** | `sudo add-apt-repository -r 'deb [arch=amd64] https://packages.microsoft.com/ubuntu/16.04/mssql-server-2017 xenial main'` |
169+
| | **GDR** | `sudo add-apt-repository -r 'deb [arch=amd64] https://packages.microsoft.com/ubuntu/16.04/mssql-server-2017-gdr xenial main'` |
138170

139171
1. For **Ubuntu only**, import the public repository GPG keys.
140172

0 commit comments

Comments
 (0)