Skip to content

Commit 38639b6

Browse files
authored
Merge pull request #15309 from MicrosoftDocs/master
6/05 AM Publish
2 parents a6eef20 + 99ca99b commit 38639b6

8 files changed

Lines changed: 310 additions & 255 deletions

File tree

docs/index.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
### YamlMime:Hub
22
title: Microsoft SQL documentation
3-
summary: Learn how to use Azure SQL Services and SQL Server to manage your database needs, both on-premises and in the cloud.
3+
summary: "Learn how to use SQL Server and Azure SQL to manage your database needs, both on-premises and in the cloud."
44
brand: sql
55
metadata:
66
title: Microsoft SQL documentation | Microsoft Docs
7-
description: Learn how to use Azure SQL Services and SQL Server to manage your database needs, both on-premises and in the cloud.
7+
description: "Learn how to use SQL Server and Azure SQL to manage your database needs, both on-premises and in the cloud."
88
ms.topic: hub-page
99

1010
# itemType: architecture | concept | deploy | download | get-started | how-to-guide | learn | overview | quickstart | reference | tutorial | video | whats-new
@@ -26,28 +26,32 @@ highlightedContent:
2626

2727
productDirectory:
2828
items:
29-
- title: SQL on Azure
30-
imageSrc: media/index/azure.svg
31-
links:
32-
- url: https://docs.microsoft.com/azure/sql-database/
33-
text: Azure SQL Database
34-
- url: https://docs.microsoft.com/azure/sql-data-warehouse/sql-data-warehouse-overview-what-is/
35-
text: Azure Synapse Analytics (SQL DW)
3629
- title: SQL Server on Windows
3730
imageSrc: media/index/windows.svg
3831
links:
3932
- url: sql-server/index.yml
4033
text: On-premises
41-
- url: https://docs.microsoft.com/azure/virtual-machines/windows/sql/virtual-machines-windows-sql-server-iaas-overview/
34+
- url: https://docs.microsoft.com/azure/azure-sql/virtual-machines/windows/
4235
text: On an Azure VM
4336
- url: https://docs.microsoft.com/previous-versions/sql/
44-
text: Previous Versions (SQL 2005-2012)
37+
text: Previous Versions (SQL 2005-2012)
38+
- title: SQL on Azure
39+
imageSrc: media/index/azure.svg
40+
links:
41+
- url: https://docs.microsoft.com/azure/azure-sql/database/
42+
text: Azure SQL Database
43+
- url: https://docs.microsoft.com/azure/azure-sql/managed-instance/
44+
text: Azure SQL Managed Instance
45+
- url: https://docs.microsoft.com/azure/azure-sql-edge/overview
46+
text: Azure SQL Edge (preview)
47+
- url: https://docs.microsoft.com/azure/sql-data-warehouse/sql-data-warehouse-overview-what-is/
48+
text: Azure Synapse Analytics (SQL DW)
4549
- title: SQL Server on Linux
4650
imageSrc: media/index/linux.svg
4751
links:
4852
- url: linux/sql-server-linux-overview.md
4953
text: On-premises
50-
- url: linux/quickstart-install-connect-clouds.md
54+
- url: https://docs.microsoft.com/azure/azure-sql/virtual-machines/linux/
5155
text: On an Azure VM
5256

5357

docs/relational-databases/server-management-objects-smo/tasks/creating-and-updating-statistics.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static void CreatingAndUpdatingStatistics()
6565
var db = srv.Databases["AdventureWorks"];
6666

6767
// Reference the CreditCard table.
68-
var tb = db.Tables["CreditCard", "dbo"];
68+
var tb = db.Tables["CreditCard", "Sales"];
6969

7070
// Define a Statistic object by supplying the parent table and name
7171
// arguments in the constructor.
@@ -81,10 +81,12 @@ public static void CreatingAndUpdatingStatistics()
8181

8282
// List all the statistics object on the table (you will see the newly created one)
8383
foreach (var s in tb.Statistics.Cast<Statistic>())
84-
Console.WriteLine($"{s.ID}\t{s.Name}");
84+
Console.WriteLine($"{s.ID}\t{s.Name}");
8585

86-
// Output:
87-
// 2 Test_Statistics
86+
// Output:
87+
// 2 AK_CreditCard_CardNumber
88+
// 1 PK_CreditCard_CreditCardID
89+
// 3 Test_Statistics
8890
}
8991
```
9092

@@ -118,4 +120,12 @@ $stat.Create()
118120
119121
# Finally dump all the statistics (you can see the newly created one at the bottom)
120122
$tb.Statistics
121-
```
123+
124+
# Output:
125+
# Name Last Updated Is From Index Statistic Columns
126+
# Creation
127+
# ---- ------------ -------------- -----------------
128+
# AK_CreditCard_CardNumber 10/27/2017 2:33 PM True {CardNumber}
129+
# PK_CreditCard_CreditCardID 10/27/2017 2:33 PM True {CreditCardID}
130+
# Test_Statistics 6/4/2020 8:11 PM False {CardType}
131+
```

docs/relational-databases/system-dynamic-management-views/sys-dm-db-partition-stats-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-s
6060
The total count for an individual table or an index can be obtained by adding the counts for all relevant partitions.
6161

6262
## Permissions
63-
Requires `VIEW DATABASE STATE` and `VIEW_DEFINITION` permissions to query the **sys.dm_db_partition_stats** dynamic management view. For more information about permissions on dynamic management views, see [Dynamic Management Views and Functions &#40;Transact-SQL&#41;](~/relational-databases/system-dynamic-management-views/system-dynamic-management-views.md).
63+
Requires `VIEW DATABASE STATE` and `VIEW DEFINITION` permissions to query the **sys.dm_db_partition_stats** dynamic management view. For more information about permissions on dynamic management views, see [Dynamic Management Views and Functions &#40;Transact-SQL&#41;](~/relational-databases/system-dynamic-management-views/system-dynamic-management-views.md).
6464

6565
## Examples
6666

Lines changed: 56 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,75 @@
11
---
2-
title: "Connect To Oracle (OracleToSQL) | Microsoft Docs"
2+
title: "Connect to Oracle (OracleToSQL) | Microsoft Docs"
33
description: Learn how to connect to an Oracle database to begin migration using SSMA for Oracle. Use the Connect to Oracle dialog box.
4+
authors: "nahk-ivanov"
5+
46
ms.prod: sql
57
ms.custom: ""
68
ms.date: "01/19/2017"
79
ms.reviewer: ""
810
ms.technology: ssma
911
ms.topic: conceptual
1012
ms.assetid: 23a48cb6-ff30-49bb-b4a7-603ebcab336f
11-
author: "Shamikg"
12-
ms.author: "Shamikg"
13-
manager: shamikg
13+
ms.author: "alexiva"
1414
---
15-
# Connect To Oracle (OracleToSQL)
16-
Use the **Connect to Oracle** dialog box to connect to the Oracle database that you want to migrate.
17-
18-
To access this dialog box, on the **File** menu, select **Connect to Oracle**. If you have previously connected, the command is **Reconnect to Oracle**.
19-
20-
## Options
15+
16+
# Connect to Oracle (OracleToSQL)
17+
18+
Use the **Connect to Oracle** dialog box to connect to the Oracle database that you want to migrate.
19+
20+
To access this dialog box, on the **File** menu, select **Connect to Oracle**. If you have previously connected, the command is **Reconnect to Oracle**.
21+
22+
## Options
23+
2124
**Provider**
22-
Select the data access provider for your connection to the Oracle database. Available providers are the Oracle Client Provider and the OLE DB Provider. The default is Oracle Client Provider.
23-
25+
Select the data access provider for your connection to the Oracle database. Available providers are the Oracle Client Provider and the OLE DB Provider. The default is Oracle Client Provider.
26+
2427
**Mode**
25-
Select either Standard, TNSNAME, or Connection String mode.
26-
27-
- In Standard mode, you enter or select values for the provider, server name, server port, Oracle SID, user name, and password.
28-
29-
- In TNSNAME mode, you enter the connect identifier (TNS alias) of the Oracle database, user name, and password.
30-
31-
- In Connection String mode, you provide a connection string.
32-
33-
> [!IMPORTANT]
34-
> We do not recommend that you use Connection String mode because the text might include passwords, and it is sent as clear text.
35-
36-
The default is Standard mode.
37-
28+
Select either Standard, TNSNAME, or Connection String mode.
29+
30+
- In Standard mode, you enter or select values for the provider, server name, server port, Oracle SID, user name, and password.
31+
- In TNSNAME mode, you enter the connect identifier (TNS alias) of the Oracle database, user name, and password.
32+
- In Connection String mode, you provide a connection string.
33+
34+
> [!IMPORTANT]
35+
> We do not recommend that you use Connection String mode because the text might include passwords, and it is sent as clear text.
36+
37+
The default is Standard mode.
38+
3839
**Server name**
39-
Enter the Oracle server name. The default server name is the same as the computer name. This is a Standard mode option.
40-
40+
Enter the Oracle server name. The default server name is the same as the computer name. This is a Standard mode option.
41+
4142
**Server port**
42-
If you are using a port number other than 1521 (default) for connections to Oracle, enter the port number. This is a Standard mode option.
43-
43+
If you are using a port number other than 1521 (default) for connections to Oracle, enter the port number. This is a Standard mode option.
44+
4445
**Connect identifier**
45-
Enter the Oracle connect identifier. This is the alias of the database as defined in local tnsnames.ora file.
46-
47-
This is a TNSNAME mode option.
48-
46+
Enter the Oracle connect identifier. This is the alias of the database as defined in local tnsnames.ora file.
47+
48+
This is a TNSNAME mode option.
49+
4950
**Oracle SID**
50-
Enter the SID for the database. The SID is an identifier that distinguishes the Oracle database on a computer. The default SID for a database is the first eight characters of the database name.
51-
52-
This is a Standard mode option.
53-
51+
Enter the SID for the database. The SID is an identifier that distinguishes the Oracle database on a computer. The default SID for a database is the first eight characters of the database name.
52+
53+
This is a Standard mode option.
54+
5455
**User name**
55-
Enter the user name that SSMA will use to connect to the Oracle database.
56-
56+
Enter the user name that SSMA will use to connect to the Oracle database.
57+
5758
**Password**
58-
Enter the password for the user name.
59-
59+
Enter the password for the user name.
60+
6061
**Connection string**
61-
> [!IMPORTANT]
62-
> We do not recommend that you use Connection String mode because the text might include passwords, and it is sent as clear text.
63-
64-
If you use the Connection String mode, enter the full connection string for the connection to Oracle.
65-
66-
Connection strings consist of parameter name and value pairs.
67-
68-
- For OLE DB connection string information, see [Microsoft OLE DB Provider for Oracle](https://go.microsoft.com/fwlink/?LinkId=85640) article at the MSDN Library.
69-
70-
For SSMA connection strings, always include the Provider parameter. Also, make sure that you include the Port parameter when you connect to Oracle.
71-
62+
> [!IMPORTANT]
63+
> We do not recommend that you use Connection String mode because the text might include passwords, and it is sent as clear text.
64+
65+
If you use the Connection String mode, enter the full connection string for the connection to Oracle.
66+
67+
Connection strings consist of parameter name and value pairs.
68+
69+
- For OLE DB connection string information, see [Microsoft OLE DB Provider for Oracle](https://go.microsoft.com/fwlink/?LinkId=85640) article at the MSDN Library.
70+
71+
For SSMA connection strings, always include the Provider parameter. Also, make sure that you include the Port parameter when you connect to Oracle.
72+
73+
## Next steps
74+
75+
The next step in the migration process is to [Connect to SQL Server](connect-to-sql-server-oracletosql.md).

0 commit comments

Comments
 (0)