Install SQL 2005 Express

download Install SQL 2005 Express

of 14

Transcript of Install SQL 2005 Express

  • 7/29/2019 Install SQL 2005 Express

    1/14

    1

    SQL 2005 ExpressSQL 2005 Express may be installed from the Supplemental Components V2 CD Mar 07. SQL2005 Express is a reliable storage engine and query processor that runs on most operatingsystems and is redistributed royalty free. It is a low cost option for a database server. SQL 2005Express is compatible with SQL Server 2000 databases.

    Installing SQL 2005 Express from the Supplemental Components V2 CD Mar 07

    If you currently have a version of SQL Server, MSDE, SQL Server Express or SQL 2005 Server,or have any existing SQL or MSDE databases, it is highly recommended to create a backup ofthese existing databases before proceeding with this installation.

    For MSDE you can use the SQL/MSDE Backup utility in the AccuMark Explorer. For SQL 2005Server and SQL 2005 Express use the Microsoft SQL Server Management Studio Expressapplication. For SQL Server 2000 it is recommended to use the Enterprise Manager to performthe backups.

    SQL 2005 Express compared to MSDE

    SQL Server Express replaces Microsoft SQL Server Desktop Engine in SQL Server 2005. MSDEis based on SQL 2000 technology and SQL Server Express is based on SQL Server 2005technology. The following information was taken from the Microsoft MSDN websitehttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsse/html/sseoverview.asp :

    SQL Server Express 2005 MSDE 2000

    User instance support Feature not present

    DTS in separate download DTS runtime present

    Easy deployment because of no MDAC MDAC is part of install

    MSE only, good servicing story MSI and MSM, servicing of MSM hard

    Subscriber replication for Transactional, Merge,and snapshot

    Merge/snapshot publication supported inaddition to replication subscription

    Robust setup UI Basic setup UI

    No agent Agent presentSupports Windows 2000 SP4, Windows XP SP1,and Windows 2003

    Supports Windows 98, Windows ME,Windows 2000, Windows XP, WindowsNT4, and Windows 2003

    CLR Support No CLR Support

    GUI tools available No GUI tools

    Database size limit: 4GB Database size limit: 2 GB

    1 CPU, 1 GB RAM 2 CPU, 2 GB RAM

    No throttle Workload throttle enforced for 5 concurrentworkloads

    Deep integration with Visual Studio Basic integration with Visual Studio

    There is no hard-coded limit to the number of users that can attach to SQL Server Express but

    their CPU and memory limits impose practical limits on the number of users that can achieveacceptable response times from a SQL Server Express database.

    SQL Server Express can install and run on multiprocessor machines, but only a single CPU usused at any time. 1GB RAM limit is the memory limit for the buffer pool.

    System RequirementsYou will need to have administrator permissions on the computer where SQL 2005 Express willbe installed. You mayneed to shutdown anti-virus software while installing SQL 2005 Express.You mayalso need to shut down any services that depend on SQL Server.

  • 7/29/2019 Install SQL 2005 Express

    2/14

    2

    In addition to the requirements for operating systems as listed in the AccuMark Release Notes,SQL 2005 Express also requires:

    .NET Framework 2.0 and the presence of Internet Explorer with Service Pack 1. The.NET Framework 2.0 redistributable file is available on the Supplemental Components V2CD Mar 07

    Processor A minimum of a 600-MHz processor is required and a 1-GHz processor isrecommended.

    RAM A minimum of 256 MB of RAM is required and 512 MB of RAM is recommended.

    Disk Space A minimum of 170 MB of free disk space is required, with the Microsoft.NET Framework V2.0 as a prerequisite.

    o Note: You can run SQL Server 2005 Express as a 32-bit application on the 64-bitMicrosoft Windows XP Professional x64 Edition or the Microsoft WindowsServer 2003 x64 editions. Windows on Windows 64 (WOW64) support enablesrunning 32-bit SQL Server 2005 Express on 64-bit machines. SQL Server 2005Express will not install on IA64 machines.

    Windows XP Professional SP2, Windows 2000 Professional Edition SP4, WindowsServer 2003 Service Pack 1 (other operating systems may be supported, see completelist in the Installation Requirements)

    Windows Vista is supported with SQL 2005 Server SP2 or SQL 2005 Express with SP2 On networked XP Professional systems, the user logins must have a password

    associated with the user names. This applies for PC to PC network or accessing SQL2005 Express. The standard behavior for XP requires a password

    Systems with a network card installed and enabled must have a physical networkconnection

    The language of the MSDE installation determines the language of the SQL Server 2005 Expressyou are upgrading to. If you are performing an in-place upgrade by installing SQL Server 2005Express over the top of an existing MSDE installation, the language of SQL Server 2005 Expressmust be the same language of the MSDE installation or it must be set to English.Note: You can detach a user database from an MSDE instance and attach it to a SQLServer 2005 Express instance installed with any language.

    Notes:

    SQL 2005 Express by default uses Windows Authentication

    SQL Server may also be used to access AccuMark SQL storage areas and isrecommended for use with large AccuMark systems. Refer to the section, SupportedSQL Server Configurations for details. Additional setup information can be found in thedocument SQL Server 2005 and AccuMark.pdf on the AccuMark Family CD in theTraining Docs folder.

    Database size is limited to 2GB

    Runs best with 5 or fewer concurrent users when using database transactions (read,write, moving of data, order process or similar operations). You can have more than 5concurrent users manipulating data. However, when the SQL 2005 Express reading andwriting transactions are run simultaneously, limitations are invoked.

    SQL 2005 Express InstancesSQL Server 2005 can be installed as a default instance or a named instance. Named instancesallow the ability to have different editions of SQL Server (Enterprise, Developer, Express) ordifferent version of SQL Server (2000 sp3 required, 2005).

    The default installation of SQL 2005 Express will install with an instance name calledSQLEXPRESS. This is the desired method to use for both new installations and for upgradingfrom MSDE to SQL 2005 Express. When upgrading this new instance name helps provide theability to easily copy your existing MSDE storage areas to new SQL 2005 Express storage areas.

  • 7/29/2019 Install SQL 2005 Express

    3/14

    3

    The default instance of SQL 2005 will install into %Program Files%\Microsoft SQLServer\90\MSSQL.1. It will create different instance directories for different services. Thedirectory naming convention was changed to support high-availability upgrades.

    sa passwordIt is highly recommended to enter a sa password when prompted during the install (do not leavethe SQL 2005 Express instance with a blank password). Entering an sa password will helpprevent disastrous worms from trying to log into the default instance of a SQL/MSDE/SQL 2005Express server with a blank (null) sa password, thus helping to prevent it from infecting yourserver. Refer to Microsoft Knowledge Base Article 313418 for details.

    Supported SQL UpgradesWhile you may upgrade MSDE directly to SQL 2005 Express as described in the followingparagraphs, this information is provided solely for the purpose of identifying SQL upgrade paths.It is recommended to install SQL 2005 Express as a separate instance as described in the SQL2005 Express Installation Procedure section below.

    If you are upgrading directly you may also need upgrade or convert any existing AccuMark SQLstorage areas (databases). You can upgrade to SQL Server 2005 from SQL Server 2000 SP4

    and later. It will upgrade the previous SQL Server instance to a new folder and registry locations.Analysis Services will require a migration of data to a new instance as part of the upgrade.

    A direct upgrade from SQL Sever 6.5/7.0 is not supported. You must upgrade to 2000 first, andthen upgrade to 2005.

    Direct upgrades from MSDE to SQL Server 2005 are not supported. Desktop Engine installationscan be upgraded to Express, Standard, Developer and Enterprise editions. The existing instanceof SQL Server can be upgraded during setup if supported. If you need to upgrade outside ofsetup, then you will need to either detach and attach the database(s), backup and restore thedatabases, or use the copy database wizard. The attaching or restoring of SQL Server 7.0 orSQL Server 2000 user databases is supported, but is not supported for the systems databases(master, model, msdb). The copy database wizard can be used to upgrade 7.0 and 2000

    databases.

    For more information about upgrading from MSDE see the Microsoft technical article MicrosoftSQL Server 2005 Upgrading MSDE 2000 to SQL Server 2005 Express (writer Michael Otey,published April 2006). This document covers how to upgrade an existing MSDE installation toSQL Server 2005 Express and also presents criteria to help you decide when to upgrade yourMSDE installation to other editions of SQL Server 2005.

    SQL Service PacksIt is recommended to use the latest SQL Server Services Pack for best security and reliability.The current Service Pack for SQL 2000 is SP4The current Service Pack for SQL 2005 is SP2The current Service Pack for MSDE 2000 is SP4

    The service packs are downloadable from Microsoft.Please check the level of your SQL Service Pack. Refer to this Microsoft Link for direction on howto check the level.http://support.microsoft.com/default.aspx?scid=kb;en-us;q321185

  • 7/29/2019 Install SQL 2005 Express

    4/14

    4

    SQL 2005 Express Installation ProcedureThe following installation instructions for Microsoft SQL Server 2005 Express Edition with

    Advanced Services (includes SP2) will be use for installing on a system with no previous versionof SQL or MSDE and for upgrading a system with MSDE to SQL 2005 Express.

    Microsoft SQL Server 2005 Express Edition with Advanced Services includes SQL Server

    Management Studio Express, a graphical management tool based on SQL Server ManagementStudio that makes it easy to manage and administer SQL Express databases.

    To install SQL Server 2005 Express and SQL Server Management Studio Express you must firstuninstall any beta or Community Technology Preview (CTP) versions of SQL Server 2005, VisualStudio 2005, and the .NET Framework. Perform the steps listed below in the exact orderpresented. You must have administrative rights on the computer.

    You must install the Microsoft .NET Framework 2.0 and Microsoft Core XML Services (MSXML)6.0 before installing SSMSE. These are also available on the Supplemental Components CD. OnWindows Vista .NET 2.0 is already installed as part of the operating system (so you will not seean entry for this in the Add/Remove Programs in the Control Panel).

    Before beginning an upgrade from MSDE to SQL 2005 Express, ensure that there is enough freespace on the hard disk. Keep in mind if you are upgrading from MSDE to SQL 2005 Express youwill have double copies of your storage areas during this upgrade, so space must be allowed.

    The SQL 2005 Express Edition with Advanced Servicesinstallation begins by extracting its files. An End UserLicense Agreement is displayed. Check to accept the licenseterms and conditions and click Next to continue.

    The Installing Prerequisites dialog indicates which software

    components are required and install them prior to installingSQL 2005 Express. Select the Install button to continue. Thedialog will be updated to reflect the status of the componentsit is installing.

    The next dialog will indicate in the components wereinstalled successfully. Select Next.

    The Welcome dialog will display next. Select Next to continue.

    The installation will start to check your systemconfiguration as shown in the System Configuration Checkdialog.

    The installation will perform some checking to see if yousystem meets certain requirements, for instance, theminimum operating system and service pack levels andinstallation path permissions as shown in the SystemConfiguration Check dialog. It will indicate the status ofeach Action and create a link to any messages where yoursystem does not meet the requirements.

  • 7/29/2019 Install SQL 2005 Express

    5/14

    5

    You can click on the Messages link to view the reportdetails:

    After selecting Next, the installation will continue if you do not have any errors (warnings are ok).You will be prompted for a Name (required) and Company(optional). Leave the Hide advanced configuration optionschecked on.

    The Feature Selection dialog will indicate the features that arebeing installed by default.

    Change the selections by selecting the down-arrow next to thefeature called Connectivity Components and choose theoption Entire feature will be installed on local hard drive.

    Then change the selection for Management Studio Expressby selecting the down-arrow next to this feature and choose

    the option Entire feature will be installed on local hard drive.

    Once these options are selected the red X should be removed.

    Select Next to continue.

  • 7/29/2019 Install SQL 2005 Express

    6/14

    6

    You may be prompted for entering an instance name in theInstance Name dialog. This dialog will appear if you haveanother instance of SQL 2005 or SQL 2005 Express installed.

    The Authentication Mode dialog appears next. You canoptionally change to use Mixed Mode (Windows authenticationand SQL Server authentication). Then specify the sa passwordto be used.

    It is highly recommended to enter a sa password whenprompted during the install (do not leave the SQL 2005Express instance with a blank password). Entering an sapassword will help prevent disastrous worms from trying to loginto the default instance of a SQL/MSDE/SQL 2005 Expressserver with a blank (null) sa password, thus helping to preventit from infecting your server. Refer to Microsoft KnowledgeBase Article 313418 for details.

    Select Next to continue.

    The Configuration Options dialog displays next. Leave thedefault of Enable User Instances checked on.

    On Microsoft Vista even though you may be an administratoryou may not be added to the SQL Server Administrator roleby default, especially if you had selected Mixed Modeauthentication. Selecting the Mixed Mode authentication andentering a password for the sa account will assign this userthe sysadmin role.

    To add yourself (the installer) to the SQL sysadmin role selectthe Add user to the SQL Server Administrator role

    checkbox.

    The Error and Usage Report Settings dialog displays. You do not need to check any of theoptions, simply select Next to continue.

  • 7/29/2019 Install SQL 2005 Express

    7/14

    7

    The Ready to Install dialog display next indicating that the setup has enough information to startcopying the program files. Click the Install button to continue.

    Subsequent setup process dialogs are displayed indicating thesetup is installing the program features that were selected andthe progress of the installation. Select Next when prompted.

    Note that SQL 2005 Express is installed as a service. Whenthe installation is setting up the SQL Server DatabaseServices you will notice in the Status area the name of theSQL Service (SQL 2005 Express will install with a defaultinstance name of SQLEXPRESS).

    A Completing Microsoft SQL Server 2005 Setup dialog displays next. This dialog provides a link

    to the Summary Log where any errors encountered during the installation can be viewed. You willnot need to run the Surface Area Configuration tool. Simply select Finish to complete theinstallation.

    Notes:Any installation errors, failures and successes are reported in a summary file called %ProgramFiles%\Microsoft SQL Server\90\Setup Bootstrap\LOG\Summary.txt. This file is saved and can beviewed at any time during or after the installation.

    Note that for security reasons by default SQL Server 2005 disables the following features orcomponents: Analysis Services, Database Mirroring, Debugging, DTS Service, Notification

    Services, Replication, Reporting Services, Service Broker, SQLiMail, Sample Databases andXp_Web.

    Older protocols like Banyan Vines SPP, Multi-protocol, AppleTalk and NWLink IPX/SPX are notsupported.

    Note there will not be a server icon in the system tray. You will see it as a service called SQLServer (SQLEXPRESS). Check to see that the SQL Server service is running through theControl Panel, [System/Performance and Maintenance], Administrative Tools, Services and lookfor your corresponding service name.

    It is recommended to use the Backup and Restore utility in SSMSE for backing up and restoringAccuMark storage areas with SQL 2005 Express. See the Backup and Restore for SQL 2005

    Express.pdf in the Training Docs folder on the AccuMark Family CD. The SQL/MSDE Backuputility that is provided in the AccuMark Explorer will only work for MSDE (or SQL 2000) storageareas.

  • 7/29/2019 Install SQL 2005 Express

    8/14

    8

    Setup SQL 2005 Express for use with AccuMarkRun the AccuMark Utilities, Configuration, SQL Support. You will need to enter your system namefollowed by the SQL 2005 Express instance name. You can view the instance name in theControl Panel, [Performance and Maintenance], Administrative Tools, Services:

    Enter the full system name and the instance name in any device slot in the SQL Support dialogbox. In this example, the system name is testlab77 and the SQL 2005 Express instance name isSQLEXPRESS. Enter the system name followed by a forward slash and then the instance name,for example: testlab77/SQLEXPRESS. Then select the Test button:

    If no errors are reported, select the OK button to complete.

  • 7/29/2019 Install SQL 2005 Express

    9/14

    9

    SQL Support then creates the appropriate database tables in this location in the SQL 2005Express data folder. There will be a combination of system and user databases.

    On Windows Vista you most likely will not have permission to access this folder, however a dialogprompt will be displayed allowing you the option to view these folders. Select Continue to invokethe viewing of the files.

  • 7/29/2019 Install SQL 2005 Express

    10/14

    10

    In AccuMark Explorer you will now see the SQL 2005 Express device. Continue to create newstorage areas and data items as desired.

    Subfolders (sub-storage areas) are also supported (Description is optional):

    To allow other users access to your SQL storage areas, you may need to enable the followingprotocols through the SQL Server Configuration Manager.

  • 7/29/2019 Install SQL 2005 Express

    11/14

    11

    Upgrading Existing AccuMark MSDE 2000 Storage Areas to New SQL Server 2005 ExpressStorage Areas

    This procedure describes a method of upgrading any existing stand-alone AccuMark MSDE 2000storage areas to new SQL Server 2005 Express storage areas. By installing SQL 2005 Expressas a separate instance as described in the installation procedure above, you maintain yourexisting MSDE storage areas that can easily be copied or moved into newly created SQL 2005Express storage areas through the AccuMark Explorer. Then you can remove the MSDE storageareas once you have verified the data was copied successfully.

    Be sure you have backed up the AccuMark MSDE storage areas (databases).

    In the AccuMark Utilities, verify that you have an entry for the SQL device that has yourexisting MSDE storage areas and an entry for the device for SQL 2005 Express for yournew storage areas. Be sure to include the instance name where appropriate.

    If you are using a Relational Database, enter the device for SQL 2005 Express (usually inthe form of computer name\SQLEXPRESS) in the Relational Database field.

    Select the Test Button and after the Test Successful message appears, select the OKbutton. This will close the SQL Configuration Window.

    Close the AccuMark Utilities window.

    Open AccuMark Explorer from the Launchpad. Both SQL devices for MSDE and SQL2005 Express should be displayed.

    Storage areas can now be copied from the MSDE SQL Device to the new SQL 2005Express Device.

    Simply right click and select copy on each storage area you wish to move. Right clickthe destination device and select paste to complete the copy. It is possible to multi-select storage areas and paste them to the new SQL device. Depending on the sizeand number of storage areas, it may take a substantial amount of time to move thestorage areas.

    Use the SQL Server Management Studio Express to manage SQL Express StorageAreas using the instructions below.

    It is recommended that the new instances of SQL Storage Areas be backed up by usingthe SQL Server 2005 Express tool. This is done by opening the SQL Server ManagementStudio Express, and selecting one database at a time.

    The MSDE instance may be uninstalled, if there are no other applications using it.

  • 7/29/2019 Install SQL 2005 Express

    12/14

    12

    Microsoft SQL Server Management Studio Express (SSMS-EE)Microsoft SQL Server Management Studio Express provides a graphical management tool forSQL Server 2005 Express Edition (SQL Server Express) instances. SSMS-EE can also managerelational engine instances created by any edition of SQL Server 2005.

    SSMS-EE will support connections to SQL Server Express and other SQL Server 2005 Editions,SQL Server 2000, and MSDE 2000. Both local and remote connections will be possible. Itsupplies features like creating and modifying databases, tables, views, logins, and users.

    To open SSMSE, click Start, click All Programs, click Microsoft SQL Server 2005 and thenclick SQL Server Management Studio Express.

    The first time you connect you will be prompted for theserver information to connect to:

    You can use the Windows Authentication where it will useyour login name and password. Select the Connect button.

    Optionally you could use the SQL Server Authenticationand specify sa as the User name and enter the passwordyou specified during the installation. Selecting theRemember password is optional.

    An example of the SQL Server Management Studio Express application is given below.

  • 7/29/2019 Install SQL 2005 Express

    13/14

    13

    To connect to a SQL Server Express Database Engine instance, in the Connect to Serverdialogbox, specifyany of the following:

    .\sqlexpress, (local)\sqlexpress, or \sqlexpress

    Note The default installation of SQL Server Express uses an instance name (SQLExpress). Thisinstance name must be supplied to connect to SQL Server Express by using SSMSE. If you havean instance name other than SQLExpress, connect by using computer name\instance name.

    There are many functions you can use in SSMSE that are not described in this document. It isrecommended to use the Backup and Restore functionality in SSMSE to backup and restore your

    AccuMark SQL 2005 Express storage areas (do not use the SQL/MSDE Backups in theAccuMark Explorer for this). Refer to the document Backup and Restore with SQL Express

    2005.pdf on the AccuMark Family CD for details.

  • 7/29/2019 Install SQL 2005 Express

    14/14

    14

    Configuring Remote Access to SQL Server Express

    NOTE: These instructions were taken from the Read Me document that accompanies theinstallation of SSMSE on the Supplemental Components CD V2.

    SQL Server Express listens on local named pipes and shared memory. With a default installation,you cannot remotely connect to SQL Server Express. You will have to enable TCP/IP anddetermine if the firewall is enabled.

    To enable TCP/IP and Named Pipes:

    1. From the Start menu, point to All Programs, point to Microsoft SQL Server 2005, pointto Configuration Tools, and then click SQL Server Configuration Manager.

    Optionally, you can open Computer Manager by right-clicking My Computerand choosingManage. In Computer Management, expand Services and Applications, and then expandSQL Server Configuration Manager.

    2. Expand SQL Server 2005 Network Configuration, and then click ProtocolsforInstanceName.

    3. In the list of protocols, right-click Named Pipes, and then click Enable.

    4. Right-click TCP/IP, and then click Enable.

    The icon for the protocol will change to show that the protocol is enabled.

    To enable the firewall:

    1. Click Start, click Control Panel, and then click Network Connections.

    2. From the navigation bar on the left, click Change Windows Firewall settings.

    3. On the Exceptions tab, in the Programs and Services box, you will probably see thatSQL Server is listed, but not selected as an exception. If you select the check box, Windowswill open port 1433 to let in TCP requests. Alternatively, if you do not see SQL Server listed,do the following:

    a. Click Add Program.

    b. Click Browse.

    c. Navigate to drive:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\BINN

    d. Add the file sqlservr.exe to the list of exceptions.

    e. Select SQL Server Browser as an exception.