SQL Server 2005 Express Edition Readme
On This PageINTRODUCTIONMicrosoft
SQL Server 2005 Express Edition (SQL Server Express) is a free and easy-to-use
version of SQL Server 2005 that replaces the Microsoft Desktop Engine (MSDE).
Integrated with Microsoft Visual Studio 2005, SQL Server Express makes it easy
to develop powerful, secure, data-driven applications and deploy them quickly.
SQL Server Express can be redistributed (subject to agreement), and can
function as the client database as well as a basic server database. SQL Server
Express is an ideal choice for independent software vendors (ISVs), server
users, non-professional developers, Web application developers, Web site
hosters, and hobbyists building client applications. Any information relevant to SQL Server Express that was not available in time to be included in this Readme file will be published in the following Microsoft Knowledge Base article. 907284 (http://support.microsoft.com/kb/907284/) Changes to the readme file for SQL Server 2005
For information about providing feedback using the SQL Server Express newsgroup, see 3.6 Newsgroup Support. MORE INFORMATION1.0 Downloading and Installing SQL Server ExpressThis section covers information about installing .NET Framework 2.0, SQL Server Express, and tools that can be used to connect to SQL Server Express.1.1 Installation Requirements for SQL Server Express1.1.1 System requirementsThe following table lists the prerequisite software and minimum hardware and software requirements for running Microsoft SQL Server 2005 Express Edition (SQL Server Express). To determine if the computer meets the system requirements, from the Start menu, right-click My Computer, and then click Properties. The General tab displays the CPU type and speed, and the amount of installed memory (RAM).
1.1.2 Before You Install SQL Server ExpressBefore you install Microsoft SQL Server 2005 Express Edition (SQL Server Express), make sure that you install the correct version of .NET Framework associated with SQL Server Express.
1.1.3 How to Identify the .NET Framework Version on your ComputerYou can identify which .NET Framework version is on your computer in one of two ways:
1.1.4 Using Command Prompt Options to Install SQL Server ExpressSQL Server 2005 Express Edition (SQL Server Express) Setup provides a command prompt interface in addition to the graphical user interface. See "Running Setup from the Command Prompt" in SQL Server 2005 Books Online to customize how Setup installs SQL Server Express. Note SQL Server Express is a limited edition of SQL Server 2005. The setup experience using the command prompt for SQL Server Express is similar to that of SQL Server 2005. 1.1.5 Modifying SQL Server Express Installed ComponentsIf you install SQL Server Express from the download center on the SQL Server Express Web site (http://go.microsoft.com/fwlink/?LinkId=31401), you will use Sqlexpr.exe to run Setup. If Sqlexpr.exe is run directly without saving to a folder, the temporary directory where the binary files are extracted is deleted after the installation is complete. If you try to modify the SQL Server Express components by using Add or Remove Programs in Control Panel, the Change button will look for a setup directory but will not find it. To modify the installed SQL Server Express components, you will have to download Sqlexpr.exe again from the Web site, and save the .exe to a folder. At the command prompt, change the path to the folder where the .exe is stored, and run Setup by using the Sqlexpr.exe –x parameter. You will be prompted to select an extraction/installation directory. When you have extracted the Setup files, you can use the Change button to make modifications to your SQL Server Express installation by specifying the extraction directory when prompted. Note This scenario is not true when SQL Server Express is installed as part of Visual Studio 2005 Express. For more information about Visual Studio Express, see Visual Studio 2005 Express Products (http://msdn2.microsoft.com/en-us/express/default.aspx). 1.1.6 Upgrading MSDE to SQL Server ExpressIf MDSE was installed with an MSI setup, the existing MSDE instance is upgraded when you install Microsoft SQL Server 2005 Express Edition (SQL Server Express) with the same instance name. Use the Default instance option when you run SQL Server Express Setup. The exception to this is if the version of SQL Server Express you are installing is not English. Then, the MSDE installation you are upgrading must either be the same language as the SQL Server Express version, or it must be English. If MSDE was installed as part of another application that used its own install program, the SQL Server Express installation program will not know about it. In this scenario, the only way to upgrade SQL Server Express is to install SQL Server Express under another instance name. Use the Named Instance option to specify a new instance name when you run SQL Server Express Setup, and then detach the databases from MSDE and attach them to SQL Server Express. To know if MSDE was installed as part of another application, go to Add or Remove Programs in Control Panel. If MSDE does not appear in Add or Remove Programs, it was installed as part of another application. In this scenario, the only way to remove MSDE is to uninstall the application that installed MSDE. In most situations, the application users will let the application vendor deal with the upgrade. 1.2 SQL Server ExpressSQL Server Express is available for download at this Microsoft Web site (http://go.microsoft.com/fwlink/?LinkId=31401). Note Be sure to follow the instructions provided at the download site for downloading and extracting the product. After you install SQL Server Express, use the following command to connect to SQL Server Express by using the command prompt: sqlcmd -S Server\Instance Where Server is the name of the computer and Instance is the name of the instance you want to connect to. If you have used the default named instance during setup, specify the instance as "SQLExpress". 1.3 Tools to Manage SQL Server ExpressFor more information about connecting to and managing a SQL Server, click the following article number to view the article in the Microsoft Knowledge Base: 907716 (http://support.microsoft.com/kb/907716/)
How to connect to SQL Server Express Edition
1.4 Accessing Setup DocumentationHardware and software requirements are summarized in the section. 1.5 SQL Server 2005 ReadmeSQL Server 2005 readme file is available online at this Microsoft Web site (http://go.microsoft.com/fwlink/?LinkId=52285). For more information about SQL Server 2005 and SQL Server Express that was not available in time to be included in the Readme file, click the following article number to view the article in the Microsoft Knowledge Base: 907284 (http://support.microsoft.com/kb/907284/)
Changes to the readme file for SQL Server 2005
2.0 Setup IssuesThis section details Setup issues in this release. 2.1 Existing SQL Native Client Installation May Cause Setup to FailSetup might fail and roll back with the following error message: An installation package for the product Microsoft SQL Native Client cannot be found. Try the installation again using a valid copy of the installation package 'Sqlncli.msi'. To work around this problem, uninstall SQL Native Client by using Add or Remove Programs. On a cluster, uninstall SQL Native Client from all nodes. Then, run SQL Server Setup again. 2.2 System Configuration Checker Fails with "Performance Monitor Counter Check Failed" MessageSystem Configuration Checker (SCC) verifies the value of the Performance Monitor Counter registry key before SQL Server installation begins. If SCC cannot verify the existing registry key, or if SCC cannot run the Lodctr.exe system program, the SCC check fails, and Setup is blocked. To complete setup, you must manually increment the registry key. Note Incorrectly editing the registry can cause serious problems that might require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from editing the registry incorrectly can be resolved. Before editing the registry, back up any valuable data. For more information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base: 256986 (http://support.microsoft.com/kb/256986/)
Description of the Microsoft Windows registry
To manually increment the counter registry key,
follow these steps:
2.3 SQL Server Express Books Online Has Incorrect Information on Operating System SupportThe "Hardware and Software Requirements (SQL Server Express)" topic in SQL Server Express Books Online does not have an accurate list of operating systems. The following operating systems are supported by SQL Server Express.
2.4 If Cryptographic Services Are Disabled on Windows Server 2003, Setup Fails with Windows Logo Requirement DialogWindows Cryptographic Service Provider (CSP) is code that performs authentication, encoding, and encryption services that Windows-based applications access through CryptoAPI on Windows Server 2003. If the CSP service is stopped or disabled, SQL Server Setup fails and displays a Windows Logo Requirement message. Note Before running SQL Server Setup on a Windows Server 2003 failover cluster, the CSP service must be started on all cluster nodes. To enable the Windows CSP service on Windows Server 2003, follow these steps:
2.5 MSDTC Is Not Fully Enabled on WindowsBecause the Microsoft Distributed Transaction Coordinator (MS DTC) is not completely configured in Windows, applications might fail to enlist SQL Server Express resources in a distributed transaction. This problem can affect linked servers, distributed queries, and remote stored procedures that use distributed transactions. To prevent such problems, you must fully enable MS DTC services on the server where SQL Server Express is installed. To fully enable MS DTC, follow these steps:
2.6 Sample Databases Are Not Installed by DefaultThe sample databases are not installed by default in SQL Server Express. The Northwind and pubs sample databases can be downloaded from this Microsoft Web site (http://go.microsoft.com/fwlink/?LinkId=31995). The Adventureworks sample database can be installed from this Microsoft Web site (http://go.microsoft.com/fwlink/?LinkId=31046). 2.7 "Force Encryption" Configuration Might Cause SQL Server Express Setup to FailSetup might fail if an existing SQL Server client installation is configured with the "force encryption" option enabled. To work around this issue, disable the option on any SQL Server clients. For Microsoft Data Access Components (MDAC) clients in SQL Server 2000, use the SQL Server 2000 Client Network Utility. For SQL Native Client, uninstall SQL Native Client by using Add or Remove Programs. On a cluster, uninstall SQL Native Client from all nodes. Then run SQL Server 2005 Setup again. 2.8 Settings For sp_configure Might Cause Setup to Fail When Upgrading System DatabasesSetup from the command prompt might fail when you uninstall an earlier Community Technology Preview (CTP) release of SQL Server Express using SAVESYSDB and then install this release using USESYSDB, if the sp_configure options SMO and DMO XPs are disabled on the earlier instance. To resolve this issue, ensure that these options are enabled before using Setup to upgrade system databases. For more information, see "Setting Server Configuration Options" in SQL Server Books Online at this Microsoft Web site (http://go.microsoft.com/fwlink/?LinkId=44375). 2.9 Installing a Default Instance of SQL Server 2000 May Disable SQL Server ExpressIf your computer has SQL Server 2000 Management Tools and a default instance of SQL Server Express is installed, SQL Server Setup will permit you to install a SQL Server 2000 default instance. However, doing so will disable the installed instance of SQL Server Express. Therefore, do not install a default instance of SQL Server 2000 when SQL Server 2000 Management Tools and a default instance of SQL Server Express already exist on the computer. 2.10 Installing SQL Server Express on a Windows Domain ControllerSecurity Note We recommend against running SQL Server Express on a domain controller. It is possible to install SQL Server Express on a Windows domain controller; however, it cannot run on a Windows Server 2003 domain controller as Local Service or Network Service. SQL Server service accounts should run as Windows domain user accounts. It is also possible to install SQL Server service accounts to run as Local System, but this option is not recommended. Do not change the role of the server after you install SQL Server Express. For example, if you install SQL Server Express on a member server, do not use the Dcpromo tool to promote the server to a domain controller. Or, if you install SQL Server Express on a domain controller, do not use Dcpromo to demote the server to a member server. Changing the role of a server after you install SQL Server Express can result in loss of functionality and is not supported. 2.11 Existing SQL Native Client Installation May Cause Setup to FailSetup might fail and roll back with the following error message: An installation package for the product Microsoft SQL Native Client cannot be found. Try the installation again using a valid copy of the installation package 'Sqlncli.msi'. To work around this problem, uninstall SQL Native Client by using Add or Remove Programs. On a cluster, uninstall SQL Native Client from all nodes. Then, run SQL Server Setup again. 2.12 Uninstalling Pre-release Versions SQL Server Express and Visual Studio 2005You must remove all previous builds of SQL Server Express, Visual Studio 2005, and the .NET Framework 2.0 before installation. Because both products depend on the same version of the .NET Framework, they must be uninstalled in the following order:
2.13 Maintenance Mode Prompts for Path to Setup.exeIf you install a new SQL Server 2005 component in maintenance mode, you will be prompted for the location of Setup.exe on the SQL Server 2005 installation media. When specifying the location, make sure that the path includes "Setup.exe." For example, the path "D:\" will fail, but "D:\Setup.exe" will succeed. 2.14 Troubleshooting Failure of Setup Command Shell ScriptsSetup command shell scripts can generate Windows script errors when path variables contain parentheses. This occurs because command shell scripts do not support parentheses in path variables, which can occur when installing 32-bit components to the Windows on Windows (WOW64) 32-bit subsystem on a 64-bit computer. For example, the following script, with a path value of "C:\Program Files (x86)\", generates an error because the shell script interpreter misinterprets the parentheses in the expanded PATH variable as part of the IF/ELSE statement: To work around this issue, change the script to remove the parentheses. For example: Or remove the SQL entry containing parentheses from the path. 3.0 Additional Information3.1 Service Account and Network ProtocolsFor SQL Server Express, the Local System Account is Network Service Account. 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 need to enable TCP/IP and check if the firewall is enabled. 3.1.1 To enable TCP/IP, follow these steps:
3.1.2 To enable the firewall, follow these steps:
3.2 User Instance FunctionalitySQL Server Express allows non-administrator users to copy or move databases (using Xcopy deployment) without requiring DBCreator privileges. For more information, see “User Instances for Non-Administrators” in SQL Server Express Books Online at this Microsoft Web site (http://go.microsoft.com/fwlink/?LinkId=52327). 3.3 WMI provider and User Instance functionalityWMI Provider for Server Events will not be supported on the dynamically spawned user instances. This should still work on the parent SQL Server Express instance. 3.4 Books OnlineSQL Server Express Books Online is available for download from this Microsoft Web site (http://go.microsoft.com/fwlink/?LinkId=52327). Note Because SQL Server Express is a limited version of SQL Server 2005, the documentation in SQL Server Express Books Online is heavily dependent on the content present in SQL Server 2005 Books Online. SQL Server 2005 Books Online is available for download from this Microsoft Web site (http://go.microsoft.com/fwlink/?LinkId=52287). Microsoft periodically publishes downloadable updates to SQL Server Express Books Online and SQL Server 2005 Books Online. We recommend installing these updates to keep the information current in your local copy of the documentation. 3.5 Getting SQL Server Express AssistanceThere are four principal sources of information from Microsoft about SQL Server Express:
You can also get help from others either through the SQL Server community (http://go.microsoft.com/fwlink/?LinkId=47890) or directly from Microsoft support (http://go.microsoft.com/fwlink/?LinkId=52274). For more information, see "Getting SQL Server Express Assistance" in SQL Server Express Books Online. 3.6 Newsgroup SupportFor newsgroup support, visit the SQL Server Express newsgroup at this Microsoft Web site (http://go.microsoft.com/fwlink/?LinkId=47890). Do not use other Microsoft newsgroups for posting questions regarding SQL Server Express. The latest information from the SQL Server Express team can be found at the SQL Server Express Weblog (http://go.microsoft.com/fwlink/?LinkId=38092). Note Newsgroups are supported in English only. 3.7 Providing Feedback on SQL Server ExpressTo provide suggestions and bug reports on SQL Server Express:
For more information, see "Providing Feedback on SQL Server 2005" in SQL Server Books Online. 4.0 Database EngineThe notes in this section are late-breaking items for the SQL Server 2005 Database Engine and Database Engine-specific command prompt utilities that also apply to SQL Server Express. 4.1 Connections May Be Forcibly Closed When Running on Windows Server 2003 SP1If TCP/IP networking is turned on, client connections to an instance of the SQL Server Express Database Engine running on Windows Server 2003 Service Pack 1 might fail with the following error: ProviderNum: 7, Error: 10054, ErrorMessage: "TCP Provider: An existing connection was forcibly closed by the remote host". This might occur when you are testing scalability with a large number of client connection attempts. To resolve this issue, use the regedit.exe utility to add a new DWORD value named SynAttackProtect to the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\ with value data of 00000000. Security Note Setting this registry key might expose the server to a SYN flood denial-of-service attack. Remove this registry value when testing is complete. Note Incorrectly editing the registry can cause serious problems that might require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from editing the registry incorrectly can be resolved. Before editing the registry, back up any valuable data. For more information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base: 256986 (http://support.microsoft.com/kb/256986/)
Description of the Microsoft Windows registry
4.2 Secure Service Broker Dialogs Require a Database Master KeySQL Server 2005 Books Online incorrectly states that when a conversation using dialog security spans databases, SQL Server creates a session key encrypted with the master key for the database. Actually, the session key is encrypted with the master key for the database for all conversations that use dialog security. If a database master key is not available, messages for the conversation remain in the transmission_queue with an error until a database master key is created or the conversation times out. Either use the ENCRYPTION = OFF parameter to create an unencrypted dialog, or use the following command to create a database master key: 4.3 Common Language Runtime User-Defined Types Should Have Only One SerializationEach instance of a byte-ordered user-defined type (UDT) object can have only one serialized representation. If the serialize or de-serialize routines recognize more than one representation of a particular object, you may see errors in the following cases:
4.4 Network Connectivity Not Enabled by SetupTo enhance security, SQL Server Express disables network connectivity for some new installations. Network connectivity using TCP/IP is not disabled if you are using SQL Server Enterprise, Standard, or Workgroup Edition, or if a previous installation of SQL Server is present. Named Pipes connectivity is available only for local connections unless a previous installation of SQL Server is present. For all installations, the shared memory protocol is enabled to allow local connections to the server. The SQL Browser service might be stopped, depending on installation conditions and installation options. 4.5 Considerations for Assemblies That Contain User-Defined TypesThe following limitations apply to Common Language Runtime (CLR) assemblies that contain user-defined types. 4.5.1 Common Language Runtime User-Defined Types Should Have Only One SerializationEach instance of a byte-ordered user-defined type object can have only one serialized representation. If the serialize or de-serialize routines recognize more than one representation of a particular object, you may see errors in the following cases:
4.5.2 Updated Restrictions on Updating Assemblies That Hold User-Defined Type ClassesALTER ASSEMBLY can be used to update CLR user-defined types in the following ways:
Fields that are contained within a native-serialized user-defined type, including data members or base classes, cannot be changed by using ALTER ASSEMBLY. All other changes are unsupported. 4.6 SQL Server does not Guarantee Data Consistency when Updating AssembliesIf WITH UNCHECKED DATA is not specified, SQL Server attempts to prevent ALTER ASSEMBLY from executing if the new assembly version affects existing data in tables, indexes, or other persistent sites. SQL Server does not guarantee, however, that computed columns, indexes, indexed views or expressions will be consistent with the underlying routines and types when the Common Language Runtime (CLR) assembly is updated. Use caution when executing ALTER ASSEMBLY to ensure that there is not a mismatch between the result of an expression and a value based on that expression stored in the assembly. 4.7 Considerations for the Autorecovered Shadow Copy Feature of the Volume Shadow Copy ServiceThe autorecovered shadow copy feature of the Volume Shadow Copy Service (VSS) has the following limitations. 4.7.1 Multiple Persisted Autorecovered Shadow CopiesOn Windows Server 2003 Service Pack 1 (SP1) and later, you can create only a single persisted autorecovered shadow copy. To create an additional shadow copy, you must first apply the update described in Knowledge Base article 891957. For more information, click the following article number to view the article in the Microsoft Knowledge Base: 891957 (http://support.microsoft.com/kb/891957/)
Update is available that fixes various Volume Shadow Copy Service issues in Windows Server 2003
Note If you have not applied this update, you can create a new persisted autorecovered shadow copy by deleting the existing one first, and then creating the new one. 4.7.2 Autorecovered Shadow Copies and Full-Text CatalogsThe autorecovered shadow copy feature does not support full-text catalogs. When an autorecovered shadow copy is created, any full-text catalogs in the database on the shadow copy are taken offline. When the database is attached from the shadow copy, the full-text catalog remains offline permanently. All other data remains available in the attached database. When a database that contains a full-text catalog is attached directly from an autorecovered shadow copy, the attach operation returns the following error message: Server: Msg 7608, Level 17, State 1, Line 1 An unknown full-text failure (0xc000000d) occurred during "Mounting a full-text catalog". If you do not need to attach a database directly from the shadow copy, you can avoid this issue by copying the database files and full-text catalogs from the shadow copy to a regular drive-letter based volume, and then attaching the database from that location. As long as the attach command specifies the correct location of the copied full-text files, the full-text catalogs will work. 4.8 Restrictions for Registering Common Language Runtime AssembliesSQL Server does not allow registering different versions of an assembly with the same name, culture, and public key. If you plan to retain databases from a version of SQL Server Express earlier than the September CTP release, you must drop all but one instance of an assembly that has multiple registrations before you install this release. 4.9 Creating EXTERNAL_ACCESS and UNSAFE AssembliesTo create an EXTERNAL_ACCESS or UNSAFE assembly in SQL Server, or to load an assembly, one of the following two conditions must be met:
We recommend that the TRUSTWORTHY property on a database not be set to ON only to run common language runtime (CLR) code in the server process. Instead, we recommend that an asymmetric key be created from the assembly file in the master database. A logon mapped to this asymmetric key must then be created, and the logon must be granted EXTERNAL ACCESS ASSEMBLY or UNSAFE ASSEMBLY permissions. The following Transact-SQL statements perform the steps that are required to create an asymmetric key, map a logon to this key, and then grant EXTERNAL_ACCESS ASSEMBLY permission to the logon. You must execute the following Transact-SQL statements before executing the CREATE ASSEMBLY statement. 4.10 Application Role Compatibility with Metadata Visibility Restrictions and Dynamic Management ViewsThe behavior of programs that run under an application role might change because, by default, SQL Server Express limits the visibility of master database metadata to application roles. As a temporary workaround, you can enable trace flag #4616. For more information, click the following article number to view the article in the Microsoft Knowledge Base: 906549 (http://support.microsoft.com/kb/906549/)
You may receive a "Permission denied" error message when an application role-based application tries to select records from any one of the system tables in a SQL Server 2005 master database
4.11 SUPPLEMENTAL_LOGGING Database Option Is Not ImplementedThe SUPPLEMENTAL_LOGGING database option is not implemented in this release of SQL Server. This option can be set but has no effect. 4.12 sys.dm_clr_loaded_assemblies Shows Assemblies That Failed to LoadAssemblies that fail to load into the server address space for any reason will still appear in the sys.dm_clr_loaded_assemblies dynamic management view. 4.13 XQuery ChangesThe following aspects of the SQL Server Express XQuery implementation are not documented in Books Online:
4.14 Conversion From xsd:dateTime is Less Restrictive Than DocumentedA string representation of an xs:dateTime value that does not contain a date and time separator T or a time zone can be converted to an SQL datetime type in a value() method, as in the following example: 4.15 XML Schema SupportThe following aspects of the SQL Server 2005 support for XML Schema are not documented in SQL Server 2005 Books Online:
4.16 RC4 Encryption Should Not Be UsedDo not use RC4 encryption to protect your data in SQL Server 2005. Use a block cipher such as AES 256 or Triple DES instead. 5.0 ReplicationThe notes in this section are late-breaking items for replication. Replication is Disabled by Default Microsoft SQL Server 2005 Express Edition can serve as a Subscriber for all types of replication, but replication is not installed by default for this edition. To install replication components, follow these steps:
To install connectivity components and Replication Management Objects (RMO), follow these steps:
| Article Translations
|
Back to the top
