Skip to content

Commit b994ffa

Browse files
committed
[SCOPED] Update SQLCMD mode links
1 parent 0d9f14a commit b994ffa

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

docs/database-engine/availability-groups/windows/create-clustered-dtc-for-an-always-on-availability-group.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This article walks you through a complete configuration of a clustered DTC resou
1818

1919
The walkthrough creates a clustered DTC resource and the [!INCLUDE [ssnoversion-md](../../../includes/ssnoversion-md.md)] AGs to align with the requirements at [How to cluster the DTC service for an Always On availability group](cluster-dtc-for-sql-server-2016-availability-groups.md).
2020

21-
The walkthrough uses PowerShell and Transact-SQL (T-SQL) scripts. Many of the T-SQL scripts require **SQLCMD Mode** to be enabled. For more information on **SQLCMD Mode**, see [Edit SQLCMD Scripts with Query Editor](../../../tools/sqlcmd/edit-sqlcmd-scripts-query-editor.md). The PowerShell module `FailoverClusters` must be imported. For more information about importing a PowerShell module, see [Importing a PowerShell Module](/powershell/scripting/developer/module/importing-a-powershell-module). This walkthrough is based on the following configuration options:
21+
The walkthrough uses PowerShell and Transact-SQL (T-SQL) scripts. Many of the T-SQL scripts require **SQLCMD Mode** to be enabled. For more information on **SQLCMD Mode**, see [Edit SQLCMD scripts with Query Editor](/ssms/scripting/sqlcmd-scripts-query-editor). The PowerShell module `FailoverClusters` must be imported. For more information about importing a PowerShell module, see [Importing a PowerShell Module](/powershell/scripting/developer/module/importing-a-powershell-module). This walkthrough is based on the following configuration options:
2222

2323
- All requirements from [Prerequisites, restrictions, and recommendations for Always On availability groups](prereqs-restrictions-recommendations-always-on-availability.md) are met.
2424
- The domain is `contoso.lab`.

docs/relational-databases/replication/concepts/replication-system-stored-procedures-concepts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ GO
125125
### Creating a SQL Query File in SQL Server Management Studio
126126
A replication [!INCLUDE[tsql](../../../includes/tsql-md.md)] script file can be created as a SQL Query file in a [!INCLUDE[ssManStudioFull](../../../includes/ssmanstudiofull-md.md)] project. After the script is written, a connection can be made to the database for this query file and the script can be executed. For more information about how to create [!INCLUDE[tsql](../../../includes/tsql-md.md)] scripts by using [!INCLUDE[ssManStudioFull](../../../includes/ssmanstudiofull-md.md)], see [Query and Text Editors (SQL Server Management Studio)](/ssms/f1-help/database-engine-query-editor-sql-server-management-studio).
127127

128-
To use a script that includes scripting variables, [!INCLUDE[ssManStudioFull](../../../includes/ssmanstudiofull-md.md)] must be running in **sqlcmd** mode. In **sqlcmd** mode, the Query Editor accepts additional syntax specific to **sqlcmd**, such as `:setvar`, which is used to a value for a variable. For more information about **sqlcmd** mode, see [Edit SQLCMD Scripts with Query Editor](../../../tools/sqlcmd/edit-sqlcmd-scripts-query-editor.md). In the following script, `:setvar` is used to provide a value for the `$(DistPubServer)` variable.
128+
To use a script that includes scripting variables, [!INCLUDE[ssManStudioFull](../../../includes/ssmanstudiofull-md.md)] must be running in SQLCMD mode. In SQLCMD mode, the Query Editor accepts additional syntax specific to **sqlcmd**, such as `:setvar`, which is used to a value for a variable. For more information about SQLCMD mode, see [Edit SQLCMD scripts with Query Editor](/ssms/scripting/sqlcmd-scripts-query-editor). In the following script, `:setvar` is used to provide a value for the `$(DistPubServer)` variable.
129129

130130
```
131131
:setvar DistPubServer N'MyPublisherAndDistributor';

docs/tools/sqlcmd/sqlcmd-start-utility.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ monikerRange: ">=aps-pdw-2016 || =azuresqldb-current || =azure-sqldw-latest || >
1818

1919
[!INCLUDE [SQL Server Azure SQL Database Azure SQL Managed Instance Azure Synapse Analytics PDW FabricSQLDB](../../includes/applies-to-version/sql-asdb-asdbmi-asa-pdw-fabricsqldb.md)]
2020

21-
The [sqlcmd utility](sqlcmd-utility.md) lets you enter Transact-SQL statements, system procedures, and script files at the command prompt, in [Edit SQLCMD Scripts with Query Editor](edit-sqlcmd-scripts-query-editor.md) in [About SQL Server Management Studio](/ssms/menu-help/about-sql-server-management-studio), and in a Windows script file or in [an operating system (Cmd.exe) job step](/ssms/agent/create-a-cmdexec-job-step) of a SQL Server Agent job.
21+
The [sqlcmd utility](sqlcmd-utility.md) lets you enter Transact-SQL statements, system procedures, and script files at the command prompt, in [SQLCMD mode](/ssms/scripting/sqlcmd-scripts-query-editor) in [SQL Server Management Studio](/ssms/sql-server-management-studio-ssms), and in a Windows script file or in [an operating system (Cmd.exe) job step](/ssms/agent/create-a-cmdexec-job-step) of a SQL Server Agent job.
2222

2323
> [!NOTE]
2424
> Windows Authentication is the default authentication mode for **sqlcmd**. To use SQL Server Authentication, you must specify a user name and password by using the `-U` and `-P` options.
@@ -51,7 +51,7 @@ By default, [!INCLUDE [ssExpress](../../includes/ssexpress-md.md)] installs as t
5151

5252
## Related content
5353

54-
- [Edit SQLCMD Scripts with Query Editor](edit-sqlcmd-scripts-query-editor.md)
54+
- [Edit SQLCMD scripts with Query Editor](/ssms/scripting/sqlcmd-scripts-query-editor)
5555
- [Execute T-SQL from a script file with sqlcmd](sqlcmd-run-transact-sql-script-files.md)
5656
- [Use sqlcmd](sqlcmd-use-utility.md)
5757
- [SQL Server Utilities Statements - GO](../../t-sql/language-elements/sql-server-utilities-statements-go.md)

docs/tools/sqlcmd/sqlcmd-use-scripting-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,6 @@ These statements return the row.
356356
- [use the utility](sqlcmd-use-utility.md)
357357
- [Use sqlcmd with scripting variables](sqlcmd-use-scripting-variables.md)
358358
- [Connect to SQL Server with sqlcmd](sqlcmd-connect-database-engine.md)
359-
- [Edit SQLCMD Scripts with Query Editor](edit-sqlcmd-scripts-query-editor.md)
359+
- [Edit SQLCMD scripts with Query Editor](/ssms/scripting/sqlcmd-scripts-query-editor)
360360
- [Manage Job Steps](/ssms/agent/manage-job-steps)
361361
- [Create a CmdExec Job Step](/ssms/agent/create-a-cmdexec-job-step)

docs/tools/sqlcmd/sqlcmd-use-utility.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ monikerRange: ">=aps-pdw-2016 || =azuresqldb-current || =azure-sqldw-latest || >
3131

3232
- Submit a **sqlcmd** job either by specifying a single T-SQL statement to execute, or by pointing the utility to a text file that contains T-SQL statements to execute. The output is directed to a text file, but can also be displayed at the command prompt.
3333

34-
- [SQLCMD mode](edit-sqlcmd-scripts-query-editor.md) in SQL Server Management Studio (SSMS) Query Editor.
34+
- [SQLCMD mode](/ssms/scripting/sqlcmd-scripts-query-editor) in SQL Server Management Studio (SSMS).
3535
- SQL Server Management Objects (SMO).
3636
- SQL Server Agent CmdExec jobs.
3737

@@ -560,6 +560,6 @@ If the provider specifies `ForceProtocolEncryption = True`, then encryption is e
560560

561561
- [sqlcmd utility](sqlcmd-utility.md)
562562
- [Use sqlcmd with scripting variables](sqlcmd-use-scripting-variables.md)
563-
- [Edit SQLCMD Scripts with Query Editor](edit-sqlcmd-scripts-query-editor.md)
563+
- [Edit SQLCMD scripts with Query Editor](/ssms/scripting/sqlcmd-scripts-query-editor)
564564
- [Manage Job Steps](/ssms/agent/manage-job-steps)
565565
- [Create a CmdExec Job Step](/ssms/agent/create-a-cmdexec-job-step)

docs/tools/sqlcmd/sqlcmd-utility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,5 +1021,5 @@ Using `-V 16` in combination with checking the exit code and `DOS ERRORLEVEL` ca
10211021
- [Execute T-SQL from a script file with sqlcmd](sqlcmd-run-transact-sql-script-files.md)
10221022
- [Use sqlcmd](sqlcmd-use-utility.md)
10231023
- [Connect to SQL Server with sqlcmd](sqlcmd-connect-database-engine.md)
1024-
- [Edit SQLCMD Scripts with Query Editor](edit-sqlcmd-scripts-query-editor.md)
1024+
- [Edit SQLCMD scripts with Query Editor](/ssms/scripting/sqlcmd-scripts-query-editor)
10251025
- [Create a CmdExec Job Step](/ssms/agent/create-a-cmdexec-job-step)

0 commit comments

Comments
 (0)