Skip to content

Commit 7673ad0

Browse files
authored
Merge pull request #4423 from MicrosoftDocs/master
1/3 AM Publish
2 parents 2208a90 + 38b1a41 commit 7673ad0

12 files changed

Lines changed: 69 additions & 103 deletions

docs/integration-services/extending-packages-scripting/task/connecting-to-data-sources-in-the-script-task.md

Lines changed: 30 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -55,51 +55,39 @@ ms.workload: "On Demand"
5555
The following example demonstrates how to access connection managers from within the Script task. The sample assumes that you have created and configured an [!INCLUDE[vstecado](../../../includes/vstecado-md.md)] connection manager named **Test ADO.NET Connection** and a Flat File connection manager named **Test Flat File Connection**. Note that the [!INCLUDE[vstecado](../../../includes/vstecado-md.md)] connection manager returns a **SqlConnection** object that you can use immediately to connect to the data source. The Flat File connection manager, on the other hand, returns only a string that contains the path and file name. You must use methods from the **System.IO** namespace to open and work with the flat file.
5656

5757
```vb
58-
Public Sub Main()
59-
60-
Dim myADONETConnection As SqlClient.SqlConnection
61-
myADONETConnection = _
62-
DirectCast(Dts.Connections("Test ADO.NET Connection").AcquireConnection(Dts.Transaction), _
63-
SqlClient.SqlConnection)
64-
MsgBox(myADONETConnection.ConnectionString, _
65-
MsgBoxStyle.Information, "ADO.NET Connection")
66-
67-
Dim myFlatFileConnection As String
68-
myFlatFileConnection = _
69-
DirectCast(Dts.Connections("Test Flat File Connection").AcquireConnection(Dts.Transaction), _
70-
String)
71-
MsgBox(myFlatFileConnection, MsgBoxStyle.Information, "Flat File Connection")
72-
73-
Dts.TaskResult = ScriptResults.Success
74-
75-
End Sub
58+
Public Sub Main()
59+
60+
Dim myADONETConnection As SqlClient.SqlConnection =
61+
DirectCast(Dts.Connections("Test ADO.NET Connection").AcquireConnection(Dts.Transaction),
62+
SqlClient.SqlConnection)
63+
MsgBox(myADONETConnection.ConnectionString,
64+
MsgBoxStyle.Information, "ADO.NET Connection")
65+
66+
Dim myFlatFileConnection As String =
67+
DirectCast(Dts.Connections("Test Flat File Connection").AcquireConnection(Dts.Transaction),
68+
String)
69+
MsgBox(myFlatFileConnection, MsgBoxStyle.Information, "Flat File Connection")
70+
71+
Dts.TaskResult = ScriptResults.Success
72+
73+
End Sub
7674
```
7775

7876
```csharp
79-
using System;
80-
using System.Data.SqlClient;
81-
using Microsoft.SqlServer.Dts.Runtime;
82-
using System.Windows.Forms;
83-
84-
public class ScriptMain
85-
{
86-
87-
public void Main()
88-
{
89-
SqlConnection myADONETConnection = new SqlConnection();
90-
myADONETConnection = (SqlConnection)(Dts.Connections["Test ADO.NET Connection"].AcquireConnection(Dts.Transaction)as SqlConnection);
91-
MessageBox.Show(myADONETConnection.ConnectionString, "ADO.NET Connection");
92-
93-
string myFlatFileConnection;
94-
myFlatFileConnection = (string)(Dts.Connections["Test Flat File Connection"].AcquireConnection(Dts.Transaction) as String);
95-
MessageBox.Show(myFlatFileConnection, "Flat File Connection");
96-
97-
Dts.TaskResult = (int)ScriptResults.Success;
98-
99-
}
100-
101-
}
102-
77+
public void Main()
78+
{
79+
SqlConnection myADONETConnection =
80+
Dts.Connections["Test ADO.NET Connection"].AcquireConnection(Dts.Transaction)
81+
as SqlConnection;
82+
MessageBox.Show(myADONETConnection.ConnectionString, "ADO.NET Connection");
83+
84+
string myFlatFileConnection =
85+
Dts.Connections["Test Flat File Connection"].AcquireConnection(Dts.Transaction)
86+
as string;
87+
MessageBox.Show(myFlatFileConnection, "Flat File Connection");
88+
89+
Dts.TaskResult = (int)ScriptResults.Success;
90+
}
10391
```
10492

10593
## See Also

docs/integration-services/integration-services-ssis-variables.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,17 @@ ms.workload: "Active"
129129
When the system resets the **IncludeInDebugDump** option to **false**, this might override the value selected by the user.
130130

131131
**Value**
132-
The value of a user-defined variable can be a literal or an expression. A variable includes options for setting the variable value and the data type of the value. The two properties must be compatible: for example, the use of a string value together with an integer data type is not valid.
132+
The value of a user-defined variable can be a literal or an expression. The value of a variable can't be null. Variables have the following default values:
133+
134+
| Data type | Default value |
135+
|---|---|
136+
| Boolean | False |
137+
| Numeric and binary data types | 0 (zero) |
138+
| Char and string data types | (empty string) |
139+
| Object | System.Object |
140+
| | |
141+
142+
A variable has options for setting the variable value and the data type of the value. The two properties must be compatible: for example, the use of a string value together with an integer data type is not valid.
133143

134144
If the variable is configured to evaluate as an expression, you must provide an expression. At run time, the expression is evaluated, and the variable is set to the evaluation result. For example, if a variable uses the expression `DATEPART("month", GETDATE())` the value of the variable is the number equivalent of the month for the current date. The expression must be a valid expression that uses the [!INCLUDE[ssIS](../includes/ssis-md.md)] expression grammar syntax. When an expression is used with variables, the expression can use literals and the operators and functions that the expression grammar provides, but the expression cannot reference the columns from a data flow in the package. The maximum length of an expression is 4000 characters. For more information, see [Integration Services (SSIS) Expressions](../integration-services/expressions/integration-services-ssis-expressions.md).
135145

docs/integration-services/lesson-1-6-adding-and-configuring-the-lookup-transformations.md

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -58,34 +58,11 @@ In both cases, the Lookup transformation will utilize the OLE DB connection mana
5858
2. Select **Use results of an SQL query**, and then type or copy the following SQL statement:
5959

6060
```sql
61-
select * from (select * from [dbo].[DimCurrency]) as refTable
62-
where [refTable].[CurrencyAlternateKey] = 'ARS'
63-
OR
64-
[refTable].[CurrencyAlternateKey] = 'AUD'
65-
OR
66-
[refTable].[CurrencyAlternateKey] = 'BRL'
67-
OR
68-
[refTable].[CurrencyAlternateKey] = 'CAD'
69-
OR
70-
[refTable].[CurrencyAlternateKey] = 'CNY'
71-
OR
72-
[refTable].[CurrencyAlternateKey] = 'DEM'
73-
OR
74-
[refTable].[CurrencyAlternateKey] = 'EUR'
75-
OR
76-
[refTable].[CurrencyAlternateKey] = 'FRF'
77-
OR
78-
[refTable].[CurrencyAlternateKey] = 'GBP'
79-
OR
80-
[refTable].[CurrencyAlternateKey] = 'JPY'
81-
OR
82-
[refTable].[CurrencyAlternateKey] = 'MXN'
83-
OR
84-
[refTable].[CurrencyAlternateKey] = 'SAR'
85-
OR
86-
[refTable].[CurrencyAlternateKey] = 'USD'
87-
OR
88-
[refTable].[CurrencyAlternateKey] = 'VEB'
61+
SELECT * FROM [dbo].[DimCurrency]
62+
WHERE [CurrencyAlternateKey]
63+
IN ('ARS', 'AUD', 'BRL', 'CAD', 'CNY',
64+
'DEM', 'EUR', 'FRF', 'GBP', 'JPY',
65+
'MXN', 'SAR', 'USD', 'VEB')
8966
```
9067

9168
7. On the **Columns** page, make the following selections:

docs/linux/sql-server-linux-shared-disk-cluster-red-hat-7-configure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ On the NFS Server do the following:
175175

176176
Do the following steps on all cluster nodes.
177177

178-
1. From the NFS server, install `nfs-utils`
178+
1. Install `nfs-utils`
179179

180180
```bash
181181
sudo yum -y install nfs-utils

docs/relational-databases/indexes/columnstore-indexes-what-s-new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ms.workload: "On Demand"
5050
|Compression delay option for columnstore indexes in `CREATE TABLE` and `ALTER TABLE`|||yes|yes|yes|yes|
5151
|Columnstore index can have a non-persisted computed column||||yes|||
5252

53-
<sup>1</sup> To create a readable nonclustered columnstore index, store the index on a read-only filegroup.
53+
<sup>1</sup> To create a read-only nonclustered columnstore index, store the index on a read-only filegroup.
5454

5555
## [!INCLUDE[ssSQLv14_md](../../includes/sssqlv14-md.md)]
5656
[!INCLUDE[ssSQLv14_md](../../includes/sssqlv14-md.md)] adds these new features.

docs/relational-databases/json/json-data-sql-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ manager: "craigg"
2323
ms.workload: "Active"
2424
---
2525
# JSON Data (SQL Server)
26-
[!INCLUDE[appliesto-ss-asdb-xxxx-xxx-md](../../includes/appliesto-ss-asdb-xxxx-xxx-md.md)]
26+
[!INCLUDE[appliesto-ss2016-asdb-xxxx-xxx-md.md](../../includes/appliesto-ss2016-asdb-xxxx-xxx-md.md)]
2727

2828
JSON is a popular textual data format used for exchanging data in modern web and mobile applications. JSON is also used for storing unstructured data in log files or NoSQL databases like Microsoft Azure Cosmos DB. Many REST web services return results formatted as JSON text or accept data formatted as JSON. For example, most Azure services such as Azure Search, Azure Storage, and Azure Cosmos DB have REST endpoints that return or consume JSON. JSON is also the main format for exchanging data between web pages and web servers using AJAX calls.
2929

docs/relational-databases/lesson-1-create-stored-access-policy-and-shared-access-signature.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -113,21 +113,12 @@ To create a policy on container and generate a Shared Access Signature (SAS) key
113113
114114
# Creates a new container in blob storage
115115
$container = New-AzureStorageContainer -Context $storageContext -Name $containerName
116-
$cbc = $container.CloudBlobContainer
117116
118117
# Sets up a Stored Access Policy and a Shared Access Signature for the new container
119-
$permissions = $cbc.GetPermissions();
120-
$policyName = $policyName
121-
$policy = new-object 'Microsoft.WindowsAzure.Storage.Blob.SharedAccessBlobPolicy'
122-
$policy.SharedAccessStartTime = $(Get-Date).ToUniversalTime().AddMinutes(-5)
123-
$policy.SharedAccessExpiryTime = $(Get-Date).ToUniversalTime().AddYears(10)
124-
$policy.Permissions = "Read,Write,List,Delete"
125-
$permissions.SharedAccessPolicies.Add($policyName, $policy)
126-
$cbc.SetPermissions($permissions);
127-
118+
$policy = New-AzureStorageContainerStoredAccessPolicy -Container $containerName -Policy $policyName -Context $storageContext -StartTime $(Get-Date).ToUniversalTime().AddMinutes(-5) -ExpiryTime $(Get-Date).ToUniversalTime().AddYears(10) -Permission rwld
119+
128120
# Gets the Shared Access Signature for the policy
129-
$policy = new-object 'Microsoft.WindowsAzure.Storage.Blob.SharedAccessBlobPolicy'
130-
$sas = $cbc.GetSharedAccessSignature($policy, $policyName)
121+
$sas = New-AzureStorageContainerSASToken -name $containerName -Policy $policyName -Context $storageContext
131122
Write-Host 'Shared Access Signature= '$($sas.Substring(1))''
132123
133124
# Outputs the Transact SQL to the clipboard and to the screen to create the credential using the Shared Access Signature

docs/relational-databases/sqlxml-annotated-xsd-schemas-xpath-queries/bulk-load-xml/guidelines-and-limitations-of-xml-bulk-load-sqlxml-4-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ ms.workload: "Inactive"
168168
169169
- SchemaGen only provides basic functionality for generating the relational schema from annotated XSD. The user should modify the generated tables manually, if needed.
170170
171-
- Where more than relationship exists between tables,SchemaGen tries to create a single relationship that includes all the keys involved between the two tables. This limitation might be the cause of a [!INCLUDE[tsql](../../../includes/tsql-md.md)] error.
171+
- Where more than one relationship exists between tables, SchemaGen tries to create a single relationship that includes all the keys involved between the two tables. This limitation might be the cause of a [!INCLUDE[tsql](../../../includes/tsql-md.md)] error.
172172
173173
- When you are bulk loading XML data into a database, there must be at least one attribute or child element in the mapping schema that is mapped to a database column.
174174

docs/reporting-services/tools/rsconfig-utility-ssrs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ rsconfig {-?}
5555
|**-e**|Required if **-c** argument is not used.|Specifies the unattended report execution account.<br /><br /> This argument does not take a value. However, you must include additional arguments on the command line to specify that values that are encrypted in the configuration file.<br /><br /> Arguments that you can specify with **-e** include **-u** and **-p**. You can also set **-t**.|
5656
|**-m** *computername*|Required if you are configuring a remote report server instance.|Specifies the name of the computer that is hosting the report server. If this argument is omitted, the default is **localhost**.|
5757
|**-s** *servername*|Required.|Specifies the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] instance that hosts the report server database.|
58-
|**-i** *instancename*|Required if you are using named instances.|If you used a named [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] instance to host the report server database, this value specifies the named instance.|
58+
|**-i** *instancename*|Required if you are using named instances.|If you used a named Reporting Services instance, this value specifies the name of the Reporting Services instance.|
5959
|**-d** *databasename*|Required.|Specifies the name of the report server database.|
6060
|**-a** *authmethod*|Required.|Specifies the authentication method that the report server uses to connect to the report server database. Valid values are **Windows** or **SQL** (this argument is not case-sensitive).<br /><br /> **Windows** specifies that the report server use Windows Authentication.<br /><br /> **SQL** specifies that the report server use SQL Server Authentication.|
6161
|**-u** *[domain\\]username*|Required with **-e** Optional with **-c**.|Specifies a user account for the report server database connection or for the unattended account.<br /><br /> For **rsconfig -e**, this argument is required. It must be a domain user account.<br /><br /> For **rsconfig -c** and **-a SQL**, this argument must specify a [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] login.<br /><br /> For **rsconfig -c** and **-a Windows**, this argument may specify a domain user, a built-in account, or service account credentials. If you are specifying a domain account, specify *domain* and *username* in the format *domain\username*. If you are using a built-in account, this argument is optional. If you want to use service account credentials, omit this argument.|
@@ -75,9 +75,9 @@ rsconfig {-?}
7575

7676
- To configure a special account that the report server uses to log on to a remote database server when other credentials are not available.
7777

78-
You can run the**rsconfig** utility on a local or remote instance of [!INCLUDE[ssRSnoversion](../../includes/ssrsnoversion-md.md)]. You cannot use the **rsconfig** utility to decrypt and view values that are already set.
78+
You can run the **rsconfig** utility on a local or remote instance of [!INCLUDE[ssRSnoversion](../../includes/ssrsnoversion-md.md)]. You cannot use the **rsconfig** utility to decrypt and view values that are already set.
7979

80-
Before you can run this utility, Windows Management Instrumentation (WMI) must be installed on the computer that you are configuring.
80+
Before you can run this utility, Windows Management Instrumentation (WMI) must be installed on the computer that you are configuring.
8181

8282
## Examples
8383
The following examples illustrate ways of using **rsconfig**.

docs/t-sql/language-elements/null-and-unknown-transact-sql.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,23 @@ ms.workload: "On Demand"
3636

3737
- Null values cannot be used as information that is required to distinguish one row in a table from another row in a table, such as primary keys, or for information used to distribute rows, such as distribution keys.
3838

39-
When null values are present in data, logical and comparison operators can potentially return a third result of UNKNOWN instead of just TRUE or FALSE. This need for three-valued logic is a source of many application errors. These tables outline the effect of introducing null comparisons.
39+
When null values are present in data, logical and comparison operators can potentially return a third result of UNKNOWN instead of just TRUE or FALSE. This need for three-valued logic is a source of many application errors. Logical operators in a boolean expression that includes UNKNOWNs will return UNKNOWN unless the result of the operator does not depend on the UNKNOWN expression. These tables provide examples of this behavior.
4040

41-
The following table shows the results of applying an AND operator to two Boolean operands where one operand returns NULL.
41+
The following table shows the results of applying an AND operator to two Boolean expressions where one expression returns UNKNOWN.
4242

43-
|Operand 1|Operand 2|Result|
43+
|Expression 1|Expression 2|Result|
4444
|---------------|---------------|------------|
45-
|TRUE|NULL|FALSE|
46-
|NULL|NULL|FALSE|
47-
|FALSE|NULL|FALSE|
45+
|TRUE|UNKNOWN|UNKNOWN|
46+
|UNKNOWN|UNKNOWN|UNKNOWN|
47+
|FALSE|UNKNOWN|FALSE|
4848

49-
The following table shows the results of applying an OR operator to two Boolean operands where one operand returns NULL.
49+
The following table shows the results of applying an OR operator to two Boolean expressions where one expression returns UNKNOWN.
5050

51-
|Operand 1|Operand 2|Result|
51+
|Expression 1|Expression 2|Result|
5252
|---------------|---------------|------------|
53-
|TRUE|NULL|TRUE|
54-
|NULL|NULL|UNKNOWN|
55-
|FALSE|NULL|UNKNOWN|
53+
|TRUE|UNKNOWN|TRUE|
54+
|UNKNOWN|UNKNOWN|UNKNOWN|
55+
|FALSE|UNKNOWN|UNKNOWN|
5656

5757
## See Also
5858
[AND &#40;Transact-SQL&#41;](../../t-sql/language-elements/and-transact-sql.md)

0 commit comments

Comments
 (0)