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
You can administer multiple servers by designating Central Management Servers and creating server groups.
22
-
23
-
## What is a Central Management Server and server groups?
24
-
An instance of SQL Server designated as a Central Management Server maintains server groups that contain the connection information for one or more instances. You can execute [!INCLUDE[tsql](../includes/tsql-md.md)] statements and Policy-Based Management policies at the same time against server groups. You can also view the log files on instances managed through a Central Management Server.
25
-
26
-
Basically, a Central Management Server is a central repository containing a list of your managed servers. Versions earlier than [!INCLUDE[sql2008-md](../includes/sql2008-md.md)] cannot be designated as a Central Management Server.
27
-
28
-
[!INCLUDE[tsql](../includes/tsql-md.md)] statements can also be executed against local server groups in Registered Servers.
29
-
30
-
## Create Central Management Server and server groups
31
-
To create a Central Management Server and server groups, use the **Registered Servers** window in [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)]. Note that the Central Management Server should not be a member of a group that it maintains, to prevent accidental audit policy application that could interfere with the CMS itself. SSMS enforces this by preventing a server of the same name as the Central Management Server from being added to a group.
32
-
33
-
Central Management Servers are [also available in Azure Data Studio](/azure-data-studio/extensions/sql-server-cms-extension).
34
-
35
-
For how to create Central Management Servers and server groups, see [Create a Central Management Server and Server Group (SQL Server Management Studio)](/ssms/register-servers/create-a-central-management-server-and-server-group).
36
-
37
-
## Next steps
38
-
39
-
-[Administer Servers by Using Policy-Based Management](../relational-databases/policy-based-management/administer-servers-by-using-policy-based-management.md)
You can administer multiple servers by designating Central Management Servers and creating server groups.
24
+
25
+
## What are a Central Management Server and server groups?
26
+
27
+
An instance of SQL Server that you designate as a Central Management Server (CMS) maintains server groups that contain the connection information for one or more instances. You can execute [!INCLUDE [tsql](../includes/tsql-md.md)] statements and Policy-Based Management policies at the same time against server groups. You can also view the log files on instances managed through a Central Management Server.
28
+
29
+
Think of a Central Management Server as a central repository containing a list of your managed servers.
30
+
31
+
You can also execute [!INCLUDE [tsql](../includes/tsql-md.md)] statements against local server groups in Registered Servers.
32
+
33
+
## Create Central Management Server and server groups
34
+
35
+
To create a Central Management Server and server groups, use the **Registered Servers** window in [!INCLUDE [ssManStudioFull](../includes/ssmanstudiofull-md.md)]. The Central Management Server shouldn't be a member of a group that it maintains, to prevent accidental audit policy application that could interfere with the CMS itself. SSMS enforces this restriction by preventing a server of the same name as the Central Management Server from being added to a group.
36
+
37
+
For more information about creating Central Management Servers and server groups, see [Create a Central Management Server and Server Group (SQL Server Management Studio)](/ssms/register-servers/create-a-central-management-server-and-server-group).
38
+
39
+
## Related content
40
+
41
+
-[Administer Servers by Using Policy-Based Management](policy-based-management/administer-servers-by-using-policy-based-management.md)
40
42
-[Create a Central Management Server and Server Group](/ssms/register-servers/create-a-central-management-server-and-server-group)
41
-
-[SQL Server Central Management Servers extension for Azure Data Studio](/azure-data-studio/extensions/sql-server-cms-extension)
When you install the [!INCLUDE [ssDEnoversion](../includes/ssdenoversion-md.md)], the tools that are installed depend upon the edition and your setup choices. This lesson describes the principal tools, demonstrating how to connect to the Database Engine and perform an essential function (authorizing more users).
21
+
When you install the [!INCLUDE [ssDEnoversion](../includes/ssdenoversion-md.md)], the tools that are installed depend upon the edition and your setup choices. This lesson describes the principal tools, and demonstrates how to connect to the Database Engine and perform an essential function (authorizing more users).
22
22
23
-
In this lesson, learn the following:
23
+
In this lesson, learn the following:
24
24
25
25
-[Tools to get started](#tools)
26
26
-[Connecting with Management Studio](#connect)
@@ -39,12 +39,9 @@ The following table describes some of the more common tools.
39
39
| Tool | Type | Operating system |
40
40
| --- | --- | --- |
41
41
|**[SSMS](/ssms/install/install)**| GUI | Windows |
42
-
|**[Azure Data Studio](/azure-data-studio/what-is-azure-data-studio)**| GUI | Windows, macOS, Linux |
43
42
|**[bcp](../tools/bcp-utility.md)**| CLI | Windows, macOS, Linux |
44
43
|**[sqlcmd](../tools/sqlcmd/sqlcmd-utility.md)**| CLI | Windows, macOS, Linux |
45
44
46
-
This article focuses on connecting via SSMS. If you're interested in connecting via Azure Data Studio, see [Quickstart: Use Azure Data Studio to connect and query SQL Server](/azure-data-studio/quickstart-sql-server).
@@ -71,21 +68,21 @@ It's easy to connect to the [!INCLUDE [ssDE](../includes/ssde-md.md)] from tools
71
68
72
69
1. If Registered Servers isn't displayed, on the **View** menu, select **Registered Servers**.
73
70
74
-
1.With **Database Engine** selected on the Registered Servers toolbar, expand **Database Engine**, right-click **Local Server Groups**, point to **Tasks**, and then select **Register Local Servers**. Expand **Local Server Groups** to see all the instances of the [!INCLUDE [ssDE](../includes/ssde-md.md)] installed on the computer. The default instance is unnamed and is shown as the computer name. A named instance displays as the computer name followed by a backward slash (\\) and then the instance's name. For [!INCLUDE [ssExpress](../includes/ssexpress-md.md)], the instance is named *<computer_name>*\sqlexpress unless the name was changed during setup.
71
+
1.From the **Registered Servers** toolbar, go to **Database Engine**, and right-click **Local Server Groups**. Go to **Tasks** > **Register Local Servers**, and expand **Local Server Groups** to see all the instances of the [!INCLUDE [ssDE](../includes/ssde-md.md)] installed on the computer. The default instance is unnamed and is shown as the computer name. A named instance displays as the computer name followed by a backward slash (`\`) and then the instance's name. For [!INCLUDE [ssExpress](../includes/ssexpress-md.md)], the instance is named *<computer_name>*\sqlexpress unless the name was changed during setup.
75
72
76
73
#### Verify that the Database Engine is running
77
74
78
75
- In Registered Servers, if the name of your instance of SQL Server has a green dot with a white arrow next to the name, the [!INCLUDE [ssDE](../includes/ssde-md.md)] is running and no further action is necessary.
79
76
80
-
- If the name of your instance of SQL Server has a red dot with a white square next to the name, the [!INCLUDE [ssDE](../includes/ssde-md.md)] is stopped. Right-click the name of the [!INCLUDE [ssDE](../includes/ssde-md.md)], select **Service Control**, and then select **Start**. After a confirmation dialog box, the [!INCLUDE [ssDE](../includes/ssde-md.md)]should start, and the circle should turn green with a white arrow.
77
+
- If the name of your instance of SQL Server has a red dot with a white square next to the name, the [!INCLUDE [ssDE](../includes/ssde-md.md)] is stopped. Right-click the name of the [!INCLUDE [ssDE](../includes/ssde-md.md)], select **Service Control**, and then select **Start**. After a confirmation dialog box, the [!INCLUDE [ssDE](../includes/ssde-md.md)]starts, and the circle turns green with a white arrow.
81
78
82
79
#### Connect to the Database Engine
83
80
84
-
At least one administrator account was selected when[!INCLUDE [ssNoVersion_md](../includes/ssnoversion-md.md)] was installed. Perform the following steps while signed in to Windows as an administrator.
81
+
Select at least one administrator account when you install[!INCLUDE [ssNoVersion_md](../includes/ssnoversion-md.md)]. Perform the following steps while signed in to Windows as an administrator.
85
82
86
83
1. In [!INCLUDE [ssManStudio](../includes/ssmanstudio-md.md)], on the **File** menu, select **Connect Object Explorer**.
87
84
88
-
The **Connect to Server** dialog opens. The **Server type** box displays the type of component that was last used.
85
+
The **Connect to Server** dialog opens. The **Server type** box displays the type of component that you last used.
89
86
90
87
1. Select **Database Engine**.
91
88
@@ -98,15 +95,15 @@ At least one administrator account was selected when [!INCLUDE [ssNoVersion_md](
98
95
1. Select **Connect**.
99
96
100
97
> [!NOTE]
101
-
> This article is written with the assumption that you're new to [!INCLUDE [ssNoVersion](../includes/ssnoversion-md.md)] and have no problems connecting. For detailed troubleshooting steps, see [Troubleshoot connecting to the SQL Server Database Engine](/troubleshoot/sql/connect/network-related-or-instance-specific-error-occurred-while-establishing-connection).
98
+
> This article assumes that you're new to [!INCLUDE [ssNoVersion](../includes/ssnoversion-md.md)] and have no problems connecting. For detailed troubleshooting steps, see [Troubleshoot connecting to the SQL Server Database Engine](/troubleshoot/sql/connect/network-related-or-instance-specific-error-occurred-while-establishing-connection).
102
99
103
100
<aid="additional"></a>
104
101
105
102
## Authorize extra connections
106
103
107
-
Now that you're connected to SQL Server as an administrator, one of your first tasks is authorizing other users to connect. You authorize users by creating a login and authorizing that login to access a database as a user. You can create logins by using Windows Authentication, SQL Server authentication, or Microsoft Entra authentication. Windows Authentication logins use credentials from Windows. SQL Server authentication logins store the authentication information in SQL Server and are independent of your Windows credentials. Logins from Microsoft Entra ID ([formerly Azure Active Directory](/entra/fundamentals/new-name)) use credentials from cloud-based identities. For more information about this method, see [Microsoft Entra authentication for SQL Server](security/authentication-access/azure-ad-authentication-sql-server-overview.md)
104
+
Now that you're connected to SQL Server as an administrator, you can authorize other users to connect. Create a login, and authorize that login to access a database as a user. You create logins using Windows Authentication, SQL Server authentication, or Microsoft Entra authentication. Windows Authentication logins use credentials from Windows. SQL Server authentication logins store the authentication information in SQL Server and are independent of your Windows credentials. Logins from Microsoft Entra ID ([formerly Azure Active Directory](/entra/fundamentals/new-name)) use credentials from cloud-based identities. For more information about this method, see [Microsoft Entra authentication for SQL Server](security/authentication-access/azure-ad-authentication-sql-server-overview.md).
108
105
109
-
Use Windows Authentication, or Microsoft Entra authentication whenever possible.
106
+
Use Windows Authentication or Microsoft Entra authentication whenever possible.
110
107
111
108
> [!TIP]
112
109
> Most organizations have domain users and use Windows Authentication. You can experiment by creating additional local users on your computer. Your computer authenticates local users, so the domain is the computer name. For example, if your computer is named `MyComputer` and you create a user named `Test`, the Windows description of the user is `Mycomputer\Test`.
@@ -123,7 +120,7 @@ Use Windows Authentication, or Microsoft Entra authentication whenever possible.
123
120
124
121
1. On the **Server Roles** page, if the new login is to be an administrator, select **sysadmin**. Otherwise, leave this blank.
125
122
126
-
1. On the **User Mapping** page, select **Map** for the [!INCLUDE [ssSampleDBobject](../includes/sssampledbobject-md.md)] database if it's available. Otherwise, select `master`. The **User** box is populated with the login. When the dialog is closed, the user is created in the database.
123
+
1. On the **User Mapping** page, select **Map** for the [!INCLUDE [ssSampleDBobject](../includes/sssampledbobject-md.md)] database if it's available. Otherwise, select `master`. The **User** box is populated with the login. When you close the dialog, the user is created in the database.
127
124
128
125
1. In the **Default Schema** box, enter **dbo** to map the login to the database owner schema.
129
126
@@ -137,7 +134,6 @@ Use Windows Authentication, or Microsoft Entra authentication whenever possible.
137
134
-[Connect to the Database Engine](../sql-server/connect-to-database-engine.md)
138
135
-[Troubleshoot connecting to the SQL Server Database Engine](/troubleshoot/sql/connect/network-related-or-instance-specific-error-occurred-while-establishing-connection)
139
136
-[Quickstart: Connect and query an Azure SQL Database or an Azure SQL Managed Instance by using SSMS](/ssms/quickstarts/ssms-connect-query-azure-sql)
140
-
-[Quickstart: Use Azure Data Studio to connect and query SQL Server](/azure-data-studio/quickstart-sql-server)
0 commit comments