microsoft sql server 2005 express edition & sql server management studio express installation...

95
Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Upload: kaylynn-homans

Post on 28-Mar-2015

250 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Microsoft SQL Server 2005 Express Edition

&

SQL Server Management Studio Express

Installation and Configuration Guides

Page 2: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

System RequirementsPrerequisite software Microsoft .NET Framework

Microsoft Internet Explorer 6.0 SP1 or later (prerequisite for .NET Framework)

RAM Minimum: 192 MBRecommended: 512 MB or higher

Hard Disk space 600 MB free space

Processor Pentium III Compatible or higher Minimum: 500 MHz Recommended: 1 GHz or higher

Operating System Windows Server 2003 SP1Windows Server 2003 Enterprise Edition SP1Windows Server 2003 Datacenter Edition SP1Windows Small Business Server 2003 Standard Edition SP1Windows Small Business Server 2003 Premium Edition SP1Windows XP Professional SP2Windows XP Home Edition SP2Windows XP Tablet Edition SP2Windows XP Media Edition SP2Windows 2000 Professional Edition SP4Windows 2000 Server Edition SP4Windows 2000 Advanced Edition SP4Windows 2000 Datacenter Server Edition SP4`

Page 3: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

We have two separate Installers setup files for:

Microsoft SQL Server 2005 Express Edition SQL Server Management Studio Express

Microsoft SQL Server 2005 Express Edition (SQL Server Express) is a powerful and reliable data management product that delivers rich features, data protection, and performance for embedded application clients, light Web applications, and local data stores.

Microsoft SQL Server Management Studio Express (SSMSE) is a free, easy-to-use graphical management tool for managing SQL Server 2005 Express Edition and SQL Server 2005 Express Edition with Advanced Services. SSMSE can also manage instances of the

SQL Server Database Engine created by any edition of SQL Server 2005.

Installation Guide

Page 4: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Installation Guide for

Microsoft SQL Server 2005 Express Edition

Page 5: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

When you click on the “SQLEXPR” icon to start the Installation of “Microsoft SQL Server 2005 Express Edition”, You would see the following extractor dialogue first

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 6: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Once the self-extractor would finish extracting the files, the Setup would be started. In the first step, End User License Agreement dialogue would appear … You MUST tick the checkbox for “I accept the licensing terms and conditions”Then click on Next button to proceed further …

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 7: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Next would appear the dialogue box for “Installing Prerequisites”..Indicating a couple of supporting components for “SQL Server EE”..The setup would install these component by itself …

Click on “Install” button to continue

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 8: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Once the setup would install the required supporting components, it would give a success message ….

When these components are installed, click on Next button to proceed …

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 9: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

In the next step, The setup would scan the computer configuration to determine if your machine is fulfilling the minimal installation requirements

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 10: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Once the computer configuration is done,, Installation Wizard would appear

click on “Next” button to further proceed the setup …

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 11: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

In the next step, The setup would do some System Configuration CheckThis would be an automatic step and it would do all the checking by itselfIf there would be no issue or problem,, it would give the success messageOnce Successful, click on Next button to further proceed …

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 12: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

The setup would do some Installation preparation before actual Installation would begin …

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 13: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Registration Information dialogue box would appear..Name is the mandatory field, which MUST be filled with some valid valuewhereas, the Company field is optional

click on “Next” button

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 14: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Next would be the Feature Selection Dialogue boxThere would be two types of Features

• Database Services• Client Components

You can click on “+” sign to expand a certain category..

If any of the subcomponent for a feature would be unavailable, it would appear to be a gray icon

If all of the subcomponents for a feature would be unavailable, it would appear to be a white icon with a Red color cross ….

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 15: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Click on “+” sign to expand the each Feature category..

Subcomponents for each category would appear …

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 16: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Click on the small arrow, appearing on the sub-component iconit would display an option menu for that sub-component …

To include that subcomponent, click on the first option “will be installed on local hard drive”

Choose this option for each Subcomponent, separately clicking on The little arrow against each of it ..

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 17: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Once all features are made available locally, it would appear to be like this ..

You can click on “Browse” button if you need to change the Installation path But it is recommended that you continue with default …

Click on “Next” button to continue the setup …

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 18: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Just one step back, you might have noticed that there was an option“Hide advanced configuration options” If you would check that, some of the advance options would not appear during the setup,, but it is recommended to uncheck this and continue the setup …

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 19: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

The “Instance Name” dialogue box would appearHere you can specify if you want to create a named instance with any name

But it is recommended to keep it Default ..

Note: This dialogue box would only appear If you had uncheck the “Hide advance configuration option“

at Registration Information dialogue box

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 20: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Next, Service Account dialogue box would appear

As you can See, there are various types of Services AccountsIn the next few slides, I have tried to describe about each of the service type

Note: This dialogue box would only appear If you had uncheck the “Hide advance configuration option“ at Registration Information dialogue box

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 21: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Service Accounts

Installation GuideMicrosoft SQL Server 2005 Express Edition

Customize the logon for each service account

Select the Customize for each service account check box to customize settings for individual services.This option assigns specific logon accounts to individual services. Click this check box to implement the principle of least privileges, where SQL Server services are granted the minimum permissions they need to complete their tasks.

If this check box is not selected, the same account and settings are used for all SQL Server services.

Select any of the following services to customize its settings.

Select this service To configure authentication settings for

SQL Server The SQL Server Database Engine

SQL Server Agent The service that executes jobs, monitors, SQL Server, and allows automation of administrative tasks.

Analysis Services Analysis Services

Reporting Services Reporting Services. Service accounts are used to configure a report server database connection. Choose a domain user account if you want to connect to a report server database on a remote SQL Server instance. If you are using a local report server database, you can use a domain user account or Local System to run the service.

SQL Server Browser SQL Server Browser is the name resolution service that provides SQL Server connection information to client computers. This service is shared across multiple SQL Server and Integration Services instances.

Page 22: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Installation GuideMicrosoft SQL Server 2005 Express Edition

Service Accounts

Use the built-in System account You can assign Local System, Network Service, or Local Service to the logon for the configurable SQL Server services.

The Local System option specifies a local system account that does not require a password to connect to SQL Server on the same computer. However, the local system account may restrict the SQL Server installation from interacting with other servers, depending on the privileges granted to the account.

The Network Service account is a special, built-in account that is similar to an authenticated user account. The Network Service account has the same level of access to resources and objects as members of the Users group. Services that run as the Network Service account access network resources using the credentials of the computer account.

The Local Service account is a special, built-in account that is similar to an authenticated user account. The Local Service account has the same level of access to resources and objects as members of the Users group. This limited access helps safeguard your system if individual services or processes are compromised. Services that run as the Local Service account access network resources as a null session with no credentials.

Important:

We recommend that you do not use the Network Service account for the SQL Server or the SQL Server Agent services. Local User or Domain User accounts are more appropriate for these SQL Server services.

Page 23: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Installation GuideMicrosoft SQL Server 2005 Express Edition

Service Accounts

Use a domain user account

Specifies a domain user account that uses Windows Authentication to set up and connect to SQL Server. Microsoft recommends using a domain user account with minimal rights for the SQL Server service, as the SQL Server service does not require administrator account privileges.

The SQL Server Agent account must have administrator privileges if you create CmdExec and ActiveScript jobs that belong to someone other than a SQL Server administrator, or if you use the AutoRestart feature. If the above features are requirements in your environment, consider using separate service accounts for the SQL Server and SQL Server Agent services.

Page 24: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Installation GuideMicrosoft SQL Server 2005 Express Edition

Service Accounts

For best practice, it is recommended to choose “Use the Built-in System Account” and “Local Service”

Also check the “SQL Server” and “SQL Browser” services to be started at the end of setup

Click on Next button to continue the setup

Page 25: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

In the next step, “Authentication Mode” dialogue box would appear

If you choose “Windows Authentication Mode”, SQL Server Authentication would be only dependent on your Windows Authentication, which means if anyone can login to your window account, He/She can use your SQL Server …

Thus, it is recommended to choosethe “Mixed Mode”, which would alsoinclude the SQL Server’s ownauthentication mode …

The default application administratorfor SQL Server is “sa”, and when youchoose the “Mixed Mode” you arerequired to give a new password for the default administrator account.

click on Next button to continue

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 26: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Collation Settings dialogue box would only appear if you had unchecked the “hide advance configuration option” at Registration Information dialogue box

Keep this all as default and click Next button to continue the setup …

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 27: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

User Instance dialogue box would only appear if you had unchecked the “hide advance configuration option” at Registration Information dialogue box

If you want to allow the other usersto use the SQL Server, without theadministrative privileges, or to let them connect as a SQL clientfrom a remote machine, you cancheck the “Enable User Instance”checkbox option …

click “Next” to continue the setup

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 28: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Next would be the “Error and Usage Report Settings” …This is an optional part where you can check if you want to sent the report to Microsoft, if anything goes wrong with the product during the usage …click on Next button to continue..

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 29: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Once the setup has collected the necessary informationit is now ready to begin the installation

click on “Install” button

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 30: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Next the Setup Process would be doing some component configuration …

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 31: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Once all the components would be configured successfully, it would show green checks against each component in the list

click on Next button to continue the setup

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 32: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Now the setup has almost done the installation process, thus it would now be the last dialogue box for the SQL Server setup

click on Finish button to complete the Installation Process

Installation GuideMicrosoft SQL Server 2005 Express Edition

Page 33: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Configuration Guide for

Microsoft SQL Server 2005 Express Edition

Page 34: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Once you have completed the Installation for Microsoft SQL Server 2005 Express Edition, It’s configuration tools would be available in Program menu of your computer

you can browse throughStart Programs Microsoft SQL Server 2005 Configuration Tools

Configuration GuideMicrosoft SQL Server 2005 Express Edition

Page 35: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

To open the SQL Server Configuration Manager tool

Start Programs Microsoft SQL Server 2005 Configuration Tools SQL Server Configuration Manager

Configuration GuideMicrosoft SQL Server 2005 Express Edition

Page 36: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

In SQL Server Configuration Manager, you would find three types of Configuration tools

• SQL Server 2005 Services• SQL Server 2005 Network Configuration• SQL Native Client Configuration

Configuration GuideMicrosoft SQL Server 2005 Express Edition

Page 37: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

click on “SQL Server 2005 Services” from the left-side navigation menu

It would show the list of SQL Server 2005 services on right side panel, in detailed view, which is usually comprised of Name, State, Start Mode, Log On As, Process ID and Service Type …

When you select a particular service, it’s specific action icons such as; start, pause, stop, refresh/restart are shown on the menu bar ..

Configuration GuideMicrosoft SQL Server 2005 Express Edition

Page 38: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Services action options can also be available by Right clicking on that particular service ..

for further advance settings, you can choose Properties option

Configuration GuideMicrosoft SQL Server 2005 Express Edition

Page 39: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

If you choose properties option for a particular service, it’s properties dialogue box would appear like this:

This property dialogue box is for the alteration of the “Service Account” settings which were adjust during theinstallation process, means if you need tochange those settings later, you can doit here …

Configuration GuideMicrosoft SQL Server 2005 Express Edition

Page 40: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

click on “Service” tab of Properties dialogue box for some service settings

Here you can change the Start Mode of the selected service to be “Automatic”, “Manual” or “Disabled”

Configuration GuideMicrosoft SQL Server 2005 Express Edition

Page 41: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

click on “Advanced” tab of Properties dialogue box for some advance settings …

Here, you can indicate weather theservice is listening and also you can enable or disable “Customer FeedbackReporting” and “Error Reporting” options

Once you have made necessary adjustmenton all three tabs, click on Apply button and thenclick on OK button to apply the changes

Configuration GuideMicrosoft SQL Server 2005 Express Edition

Page 42: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Now expand the “SQL Server 2005 Network Configuration” option from left hand menu and select “Protocols for SQLEXPRESS” option

On right panel, a list of SQL Express Protocols, along with their current status would be shown ….

Configuration GuideMicrosoft SQL Server 2005 Express Edition

Page 43: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Right click on a particular protocol to enable or disable that particular protocol service …

Configuration GuideMicrosoft SQL Server 2005 Express Edition

Page 44: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

You can also choose Properties option to adjust some other options for that particular protocol

Configuration GuideMicrosoft SQL Server 2005 Express Edition

Page 45: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Now expand the “SQL Native Client Configuration” option from the left side navigation menu, and select “Client Protocol” option

Right click on a particular protocol to enable or disable it ..

You can also select Properties option for some advance settings …

Configuration GuideMicrosoft SQL Server 2005 Express Edition

Page 46: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Note:

You shall enable “TCP/IP” and“Name Pipes” protocols for both “Network Configurations” and “Client Configurations” specially when you need touse the SQL Server serviceswith external applicationsuch as a Project in Java or .NET environment

Configuration GuideMicrosoft SQL Server 2005 Express Edition

Page 47: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

To open the SQL Server Surface Area Configuration

Start Programs Microsoft SQL Server 2005 Configuration Tools SQL Server Surface Area Configuration

Configuration GuideMicrosoft SQL Server 2005 Express Edition

Page 48: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

SQL Server Surface Area Configuration Dialogue box would appear …Click on “Surface Area Configuration for Services and Connections” option

Configuration GuideMicrosoft SQL Server 2005 Express Edition

Page 49: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Here you can adjust various options and Settings for Database Engine services and SQL Server Browser services …

Specifically, if you need touse your SQL Serverservices from a Remotelocation or you need todo connectivity withexternal application projects,it is recommended thatyou shall adjust “RemoteConnections” option, underDatabase Engine category.

Select “Local and RemoteConnections” and “Using bothTCP/IP and Name Pipes”

click on Apply button and thenOK button to apply changes

Configuration GuideMicrosoft SQL Server 2005 Express Edition

Page 50: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Installation Guide for

SQL Server Management Studio Express

Page 51: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

When you click on SQLServer2005_SSMSEE icon to start the Installation of“SQL Server Management Studio Express” … It shows the “Microsoft SQLServer Management StudioExpress Setup”

Click on “Next” button to continue the setup .

Installation GuideSQL Server Management Studio Express

Page 52: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Next, License Agreement dialogue box would appearCheck “I accept the terms in the license agreement” optionClick Next button to continue the setup

Installation GuideSQL Server Management Studio Express

Page 53: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Next, Registration Information dialogue box would appear

Here, Name is a mandatory field, where as you can optionally mention The Company Name as well …

Installation GuideSQL Server Management Studio Express

Page 54: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Next, Feature Selection dialogue box would appear,,If the Management Studio Express feature is set to be unavailable by default, click on the adjacent small arrow to bring up the option menu, and select “This feature will be installed on local hard drive” option …

click on “Next” buttonto continue the setup

Installation GuideSQL Server Management Studio Express

Page 55: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Now the Setup wizard is ready to Install the Program ..

Click on “Install” button to start the Application Installation

Installation GuideSQL Server Management Studio Express

Page 56: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

The setup has began the Installation of Microsoft SQL Server Management Studio Express …

Installation GuideSQL Server Management Studio Express

Page 57: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

When the setup would be done with the Installation of SQL Server Management Studio Express, It would show the completion dialogue box.

click on “Finish” button

Installation GuideSQL Server Management Studio Express

Page 58: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

SQL Server Management Studio Express

In a Nutshell

Page 59: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Once you have successfully installed SQL Server Management Studio Express,, you can access the application by

start Programs Microsoft SQL Server 2005 SQL Server Management Studio Express

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 60: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

When you click on SQL Server Management Studio Express option from the start menu, The application would be started …It would show the Connect to Server Wizard

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 61: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

The convention of the Server name field is normally as <<server-machine-name>>\<<Instance-name>>

If you are working in a network environment and SQL Server application is installed on a central server, and you need to access it, you can browse it using <<Browse for more>>

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 62: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Next parameter is about Authentication mode,you can choose any of the mode, according to your needs …

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 63: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

If you have selected SQL Server Authentication, provide the username and password which you had mentioned during the Installation of Microsoft SQL Server 2005 Express Edition

The default username is “sa” as mentioned before …

once done with all of the necessary parameters,click on Connect button

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 64: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Microsoft SQL Server Management Studio Express have two panels,on left hand is Object Explorer, where you can explore various objects of the application, and on right side the detailed view of selected object is shown

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 65: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Expanding the Databases category would show you the databases of SQL Server … if you don’t have any custom database yet, there would be some default databases in System Databases sub-category …

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 66: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

When you expand on any database, it would show the database objects like Tables, Views, Synonyms, Programmability and Security ….

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 67: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

When you expand the Table category, it would show you the tables of that Database,, and like Databases, there might be some System Tables,, specially under a System Database ..

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 68: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

You can also notice that as System Tables sub-category is selected from left-side Object explorer, The tables residing under that sub-category are enlisted on right-side Summary view panel …

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 69: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Under the Security category, there are Logins, Server Roles and Credentials

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 70: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Expanding the Login Category would show some default and custom logins of the SQL Server MSE … You can also see ‘sa’ login in the list

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 71: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

If you need to make some changes in a login, right click on that login and select Properties option

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 72: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Login property windowwould appear,

You can not change The login name or user id,but you can change it’sPassword, default Databaseand Default language ..

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 73: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

From left-hand menu of Login Properties, selectServer Roles page..

Here you can change theRoles assigned to the Selected login ..

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 74: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

From the Status page,You can adjust the Permission of the selectedLogin, and you can alsoEnable or disable the Login

Once you are done withnecessary changes,Click on OK button toApply the changes ….

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 75: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Adding a new (custom) database:Right click on “Databases” and click on “New Database” option from the menu..

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 76: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

New Database dialogue box would appear..Give the desired name to your database in “Database name” field …

If you need to change the ownerof the database, click on the Button, adjacent to ‘owner’ field

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 77: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

“Select Database Owner” wizard would appear …Here you can specify the username to whom you want to give the ownership of the database …

Click on Browse button to see the list of Database valid users

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 78: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

When you click on Browse button, a list of available list of database users appear,,, select the required users and click on OK button

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 79: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

After you have clicked OK button on Object Browser window,, The selected users would appear in the Object /User panel …

click on OK button to continue

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 80: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

The selected userappears on Owner field.

Click on OK button tocreate the new database

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 81: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Your newly created database is now visible under the Databases category …

Like the other databases,The objects of this databaseare visible through the right-side Summary panel, and also by expending theDatabase as well …

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 82: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

To create a new table in a database:Expand that database Right click on Tables object select New Table option

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 83: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

A table generator wizard would be embedded on the right-side panelHere you can mention the Column Names of the new Table, their data types and if you want to allow null values in that column

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 84: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Once you have added the desired columns in your table, click on SAVE button, (which appears to be like a floppy symbol on the task bar)

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 85: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

When you click on Save button, it would ask you to Enter a name for the Table … Provide a valid Table name following the standard naming conventions and press OK button …

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 86: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

You can see that your new table is appearing within your Database ..When you expand your table, it would show you the table objects ..Specifically when you further expand the Column category, it would show you the columns of the selected table …

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 87: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

To Create a New Authorized Login for SQL Server:expand Security Right click on Logins

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 88: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

New Login wizard would appear …

Provide the login name / UserID

in Login Name field ..

Select if you want to make it Windows Authenticated orSQL Server Authenticated…

If you select SQL Server Authentication, you need to provide a Password to your New login …

You can also change theDefault database of the New user, by selecting any other database from the dropdown menu…

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 89: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Click on Server Roles page from left-side menu to Assign the Roles to the new User …

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 90: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Click on User Mapping page to map the database specific roles to the new User

In the upper-right section, You can map databasesto the User, and in the lowerright section, roles for eachDatabase case be separatelyassigned to the new User …

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 91: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Once done with the necessary User settings, click on OK button to create the new Login …

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 92: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

In some cases / some versions of SQL Server, you might get such exception, while trying to create a new User Login for SQL Server …

as indicated in this error window, “MUST_CHANGE option is not supported in this version”

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 93: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

In case of such error, uncheck the “Enforce password expiration” and “User must change password at next login” …

Then press OK button

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 94: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

You can see the newly created user in the Logins list now …

SQL Server GuideSQL Server Management Studio Express in a Nutshell

Page 95: Microsoft SQL Server 2005 Express Edition & SQL Server Management Studio Express Installation and Configuration Guides

Microsoft SQL Server 2005 Microsoft SQL Server 2005

Express EditionExpress Edition&&

SQL Server SQL Server

Management Studio ExpressManagement Studio Express

Installation and Configuration GuidesInstallation and Configuration Guides

Prepared by:

Virtual University Open Source Software Community(VOSS Com.) [email protected]

VIRTUAL UNIVERSITY OF PAKISTAN