Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Microsoft SQL Server is a relational database management system developed by Microsoft. As a database server, its primary function is to store storing and retrieve retrieving data, as requested by other software applications request. These applications may run either on the same computer or on another computer across a network, including the Internet.

SQL Server is available in multiple editions, each with distinct feature sets tailored to different users. This document focuses on SQL Server Express Edition, a scaled-down, free version of SQL Server that includes the core database engine.

On this page:

Table of Contents
maxLevel3


SQL

QL Server Management Studio

SQL Server Management Studio is a GUI tool included with SQL Server 2005 and later that is used for configuring, managing, and administering all components within Microsoft SQL Server. The tool includes both comprises script editors and graphical tools that work with objects and features of the server. SQL Server Management Studio You can also be used use it to create a new database, change any existing database schema by adding or modifying tables and indexes, or analyze performance , including the query windows, which provide a GUI-based interface to write and execute queries.

Creating a New Account

SQL Server Authentication is a default mechanism to connect to MS SQL Server. However, but there are times that when you need to use SQL Server Authentication to connect to the server. In order to use SQL Server Authentication, you need To use it, follow the steps below to create a SQL Server Authentication Login ID.1.

  1. Run Microsoft SQL Server Management Studio.
2. Expand the Security item in
  1. In the Object Explorer,
right
  1. access Security.
  2. Right-click Logins, and choose New Login
..
  1. .
.

Click New Login...Image Removed
  1. Image Added
3.
  1. Enter an account name in the Login name field
and choose
  1. .
  2. Select the SQL Server

authentication. Then,
  1. Authentication option and enter a password for the account.

    Note

    Uncheck the following options to set the password as you want:

    • Enforce password policy
    • Enforce password expiration
    • User must change password at next login

    If the options are checked, you should set the password according to the security policy in Windows.

4. Choose master from
  1. Set the Default database
drop-down list
  1. to master.

Remember to uncheck the options aforementionedImage Removed

5. Go to the Server Roles page and select
  1. Image Added
  2. Access Server Roles.
  3. Check sysadmin.

Image Removed

6. Go to the User Mapping page and choose master and
  1. Image Added
  2. Access User Mapping.
  3. Check Master.
  4. Select db_
db
  1. owner.

Choose master and db owner.Image Removed

7. Go to the Status page. Set the
  1. Image Added
  2. Access Status.
  3. Set Permission to connect to database engine
to
  1.  to Grant and
set
  1. Login to Enabled.
  2. Click OK.
Status page optionsImage Removed

  1. Image Added
  2. Disconnect the database server an reconnect to it 
    Image Added





8. Disconnect the database server in the Object Explorer and reconnect to it using the ID you have just created.

Connect and disconnect buttons


9. Choose SQL Server Authentication from the Authentication drop-down list and enter the ID and password. Then, click Connect.

Enter your login and password, then click Connect



Connecting With Dataset Module

1. Go to Datasets → DBs on the Available Providers ListBox select SqlClient Data Provider and choose SQL Server.

Create new Database connection options


Info
titleAdministrator Privileges

The configurations described below necessitate that the user is logged in with Administrator privileges.

2. In the LogonName column, insert the newly created user. In the LogonPassword column, insert the password.

LogonName and LogonPassword columns

3. In the ConnectionString column, the fields are configured as in the image.

Tip
titleTesting the Connection
You must always use the Test button to make sure the connection is correctly configured.



In this section...

Page Tree
root@parent
spacesV10