Skip to content

Commit 7a3acdb

Browse files
authored
Merge pull request #17485 from markingmyname/gh5345
[SSMS Utility] Removed -P
2 parents 82352b1 + 5dbf673 commit 7a3acdb

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

docs/ssms/ssms-utility.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ms.date: 07/24/2020
2525

2626
The **SSMS** utility opens [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)]. If specified, **Ssms** also establishes a connection to a server, and opens queries, scripts, files, projects, and solutions.
2727

28-
You can specify files that contain queries, projects, or solutions. Files that contain queries are automatically connected to a server if connection information is provided and the file type is associated with that type of server. For instance, .sql files open a SQL Query Editor window in [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)], and .mdx files open an MDX Query Editor window in [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)]. **SQL Server Solutions and Projects** open in [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)].
28+
You can specify files that contain queries, projects, or solutions. Files that contain queries are automatically connected to a server if connection information is provided and the file type is associated with that type of server. For instance, .sql files open a SQL Query Editor window in [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)], and .mdx files open an MDX Query Editor window in [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)]. **SQL Server Solutions and Projects** open in [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)].
2929

3030
> [!NOTE]
3131
> The **Ssms** utility does not run queries. To run queries from the command line, use the **sqlcmd** utility.
@@ -64,8 +64,10 @@ Connect using Active Directory Authentication. The type of connection is determi
6464
[**-U** _username_]
6565
User name when connecting with 'SQL Authentication'
6666

67-
[**-P** _password_]
68-
Password when connecting with 'SQL Authentication'
67+
> [!Note]
68+
> **-P** was removed in SSMS version 18.0.
69+
>
70+
> Workaround: Try to connect to the server once using the UI and save your password.
6971
7072
[**-E**]
7173
Connect using Windows Authentication
@@ -98,37 +100,37 @@ The following table maps server types to file extensions.
98100

99101
The following script opens [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)] from a command prompt with the default settings:
100102

101-
```
103+
```console
102104
Ssms
103105
```
104106

105107
The following scripts opens [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)] from a command prompt using *Active Directory - Integrated*:
106108

107-
```
109+
```console
108110
Ssms.exe -S servername.database.windows.net -G
109111
```
110112

111113
The following script opens [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)] from a command prompt, with Windows Authentication, with the Code Editor set to the server `ACCTG and the database AdventureWorks2012,` without showing the splash screen:
112114

113-
```
115+
```console
114116
Ssms -E -S ACCTG -d AdventureWorks2012 -nosplash
115117
```
116118

117119
The following script opens [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)] from a command prompt, and opens the MonthEndQuery script.
118120

119-
```
121+
```console
120122
Ssms "C:\Documents and Settings\username\My Documents\SQL Server Management Studio Projects\FinanceScripts\FinanceScripts\MonthEndQuery.sql"
121123
```
122124

123125
The following script opens [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)] from a command prompt, and opens the NewReportsProject project on the computer named `developer`:
124126

125-
```
127+
```console
126128
Ssms "\\developer\fin\ReportProj\ReportProj\NewReportProj.ssmssqlproj"
127129
```
128130

129131
The following script opens [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)] from a command prompt, and opens the MonthlyReports solution:
130132

131-
```
133+
```console
132134
Ssms "C:\solutionsfolder\ReportProj\MonthlyReports.ssmssln"
133135
```
134136

0 commit comments

Comments
 (0)