Ask DBMS Expert


Home >> DBMS

Part -1:

Configuring the Authentication Mode in SSMS

In this exercise, you will configure the authentication mode for the SQL Server instance. You will ensure that the authentication mode is set to mixed mode so that the remaining exercises in this chapter will function properly. To do this:

1. Launch SSMS.

2. Right-click on the SQL Server instance you want to configure and select Properties.

3. Select the Security page to view the authentication mode settings.

4. Ensure that the authentication mode is set to SQL Server and Windows authentication mode, which is mixed mode.

620_view the authentication mode settings.png

5. Click OK to save the changes.

6. If you see a message indicating that the service must be restarted, right-click on the instance and select Restart.

Part -2:

Creating a SQL Login

In this exercise, you will create a SQL login for a user named Monty with a password of 7Pass8now.

1. Launch SSMS.

2. Expand the Security section in Object Explorer.

3. Right-click the Logins container and select New Login.

4. Enter the word Monty in the Login name field.

5. Check the SQL Server authentication radio button.

6. Enter 7Pass8now in both the Password and Confirm Password fields.

1822_view the authentication mode settings1.png

7. Accept all other defaults, click the selector arrow next to the Script button, and choose Script Action to New Query Window.

8. Click the OK button. (If you are running SQL Server on Windows XP, you may have to clear the User Must Change Password at Next Login check box.)

9. Notice the code in the new query window is similar to the following:

CREATE LOGIN [monty] WITH PASSWORD=N'7Pass8now ‘ MUST_CHANGE,

DEFAULT_DATABASE=[master], CHECK_EXPIRATION=ON, CHECK_POLICY=ON

Part- 3:

Viewing Local password policies

In this exercise, you will view the password policies on a non-domain member server that is running SQL Server 2008. Domain member SQL Servers receive their password policies from the domain. Only the Domain Admins and the Enterprise Admins group members can manage the domain password policies. To view the local password policies, follow these steps:

1. Click Start and select Run.

2. Type gpedit.msc into the Open field and click OK.

3. In the Local Computer Policy\Computer Configuration section, expand the Windows Settings container.

4. Expand the Security Settings container.

5. Expand the Account Policies container.

6. Click on the Password Policy container. From here, you can view and manage the local password policies.

Part -4:

Creating Windows Logins

In this exercise, you will create a Windows login by first creating a Windows user account and then a Windows group account. Next, you will map these accounts to a Windows login in SQL Server 2008. To do this, follow these steps. Please note that this exercise assumes the use of local users and groups on Windows Server 2008.

1. Right-click My Computer on your SQL Server machine's desktop and select Manage.

2. Expand the Configuration container and then the Local Users and Groups container.

889_view the authentication mode settings2.png

3. Right-click the Users container and select New User.

4. Enter Jeremy in the User Name field.

5. Enter 7pass8now in both the Password and Confirm Password fields.

6. Deselect the User Must Change Password at Next Logon check box.

359_view the authentication mode settings3.png

7. Click the Create button to create the user account. Click the Close button to close the dialog.

8. Right-click the Groups container and select New Group.

9. For the Group name field, enter sQLusers.

10. In the Description field, enter users with access to sQL server.

350_view the authentication mode settings4.png


11. Click the Create button to create the group.

12. Click the Close button to close the New Group dialog.

13. Close the Server Manager application.

14. Launch SQL Server Management Studio.

15. Expand the Security container in Object Explorer.

16. Right-click the Logins container and select New Login.

17. Click the Search button to find the account you created for Jeremy.

18. Type Jeremy in the Enter the Object Name to Select field and click the Check Names button. The dialog will automatically enter the full name for the user, which includes the server name and the username. A domain user would have a format like this: domainName\userName.

900_view the authentication mode settings5.png

19. Click OK.

20. In the New Login dialog, click OK again to create the mapping to the Windows user account.

21. To create the mapping for the SQLUsers group, right-click the Logins container and select New Login.

22. Click the Search button to search for the SQLUsers group.

23. Click the Object Types button to bring up the Object Types dialog box and then check the Groups check box (the other check boxes will already be checked) and then click OK.

188_view the authentication mode settings6.png

24. Type sQLusers in the Enter the Object Name to Select field and click the Check Names button.

25. Click the OK button.

26. Click the OK button in the New Login dialog to create the group-based login.

Part -5:

Creating a database role with SSMS

In this exercise, you will perform the simple steps required to create a database role using SSMS. To do this:

1. Expand the Databases container.

2. Expand the container for the database in which you want to create a custom or application role.

3. Expand the Security container and right-click on the Roles container to select New -> Database Role or New -> Application Role.

The following graphic shows the results of creating a new database role in SSMS.

2178_Databases container.png

Part -6:

Creating a database user

In this exercise, you will create a database user. You will create the user with the CREATE USER T-SQL command. You will also create an account for a user named Fred in the database named Books. To do this, follow these steps:

1. Launch SQL Server Management Studio.

2. Connect to the SQL Server instance containing the database in which you want to create a user. Log in as an administrator.

3. Click the New Query button.

4. In the new query window, enter the following code.

USE Books;
GO
CREATE USER fred;
GO

5. Click the Execute button to run the code.

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M91264489
  • Price:- $40

Priced at Now at $40, Verified Solution

Have any Question?


Related Questions in DBMS

Data mining assignment -in this assignment you are asked to

Data Mining Assignment - In this assignment you are asked to explore the use of neural networks for classification and numeric prediction. You are also asked to carry out a data mining investigation on a real-world data ...

Sql query assignment -for this assignment you are to write

SQL Query Assignment - For this assignment you are to write your answers in a word document. This assignment is in three parts: Part A (reporting queries), Part B (query performance), Part C (query design). For this assi ...

The groceries datasetimagine 10000 receipts sitting on your

The groceries Dataset Imagine 10000 receipts sitting on your table. Each receipt represents a transaction with items that were purchased. The receipt is a representation of stuff that went into a customer's basket. That ...

You are in a real estate business renting apartments to

You are in a real estate business renting apartments to customers. Your job is to define an appropriate schema using SQL DDL in MySQL. The relations are Property(Id, Address, NumberOfUnits), Unit(ApartmentNumber, Propert ...

Objectivethe objective of this lab is to be familiar with a

OBJECTIVE: The objective of this lab is to be familiar with a process in big data modeling. You're required to produce three big data models using the MS PowerPoint software. This tool is available on UMUC Virtual Deskto ...

The relation memberstudentid organizationid roleid stores

The relation Member(StudentId, OrganizationId, RoleId) stores the membership information of student joining organization. For example, ('S1', 'O2', 'R3') indicates that student with Id 'S1' joined the organization with i ...

Relational database exerciseyou have been assigned to a new

Relational Database Exercise: You have been assigned to a new development team. A client is requesting a relational database system to manage their present store with the anticipation of adding more stores in the future. ...

Relational database design a given the following business

Relational Database Design A) Given the following business rules, identify entity types, attributes (at least two attributes for each entity, including the primary key) and relationships, and then draw an Entity-Relation ...

We can represent a data set as a collection of object nodes

We can represent a data set as a collection of object nodes and a collection of attribute nodes, where there is a link between each object and each attribute, and where the weight of that link is the value of the object ...

Data model development and implementationpurpose of the

Data model development and implementation Purpose of the assessment (with ULO Mapping) The purpose of this assignment is to develop data models and map Database System into a standard development environment to gain unde ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As