You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ssms/ssms-utility.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ ms.date: 07/24/2020
25
25
26
26
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.
27
27
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)].
29
29
30
30
> [!NOTE]
31
31
> 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
64
64
[**-U**_username_]
65
65
User name when connecting with 'SQL Authentication'
66
66
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.
69
71
70
72
[**-E**]
71
73
Connect using Windows Authentication
@@ -98,37 +100,37 @@ The following table maps server types to file extensions.
98
100
99
101
The following script opens [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)] from a command prompt with the default settings:
100
102
101
-
```
103
+
```console
102
104
Ssms
103
105
```
104
106
105
107
The following scripts opens [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)] from a command prompt using *Active Directory - Integrated*:
106
108
107
-
```
109
+
```console
108
110
Ssms.exe -S servername.database.windows.net -G
109
111
```
110
112
111
113
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:
112
114
113
-
```
115
+
```console
114
116
Ssms -E -S ACCTG -d AdventureWorks2012 -nosplash
115
117
```
116
118
117
119
The following script opens [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)] from a command prompt, and opens the MonthEndQuery script.
118
120
119
-
```
121
+
```console
120
122
Ssms "C:\Documents and Settings\username\My Documents\SQL Server Management Studio Projects\FinanceScripts\FinanceScripts\MonthEndQuery.sql"
121
123
```
122
124
123
125
The following script opens [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)] from a command prompt, and opens the NewReportsProject project on the computer named `developer`:
The following script opens [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)] from a command prompt, and opens the MonthlyReports solution:
0 commit comments