Professional Documents
Culture Documents
MS SQL Server 2005 Express Edition
! LAN " #
%&" '
(") *
, Download
MS SQL Server 2005 Express Edition !- Components .
,/
.NET framework 2.0 ! %
Install
/
, //
% next
"4 User ) Active Directory Domain Controller
,
Password ,
sa Next
#67
, restart SQL Service (
#67!
')",
3 /
SQL Service Manager SQL Server 2000 # // SQL Server Configuration Manager
& SQL Server 2005 Services ) SQL Server /6 restart !#
# 3 % %
, %
6 )
' #67 % ! #67 !
"/ %
Query Analyser, Server Explorer Visual Studion ". "#
-
! # Enterprise manager ) MS SQL Server 2000
')",
SQL Server Management Studio # ,
Express &-
Download # ' %
Service ) SQL Server Express
,
/ Command Prompt #,
netstat -an -p tcp | find /i "listening"
) port 1433
! %
,
*-# ,
command netstat #67 !/ arguments "#
netstat -an -p tcp | find /i "1433" ' %# " #'( 1
# ,
SQL Server Express Edition
!
,/ Database Server LAN
,#4 . 3 #
1. Mixed Mode authentication &- "
,
/4
'
2. Server " Instance Name
!3 "
3.
, #/
!'# )
/
# >" Database Engine
" % Enterprise Manager ) MS SQL Server 2000
! ) SQL Server 05
" " Message 7 MS SQL Server Management Studio
Version
3
MS SQL Server Management studio Express / #
#
! Download * %) Microsoft Downloads link #
Download SQL Server Management Studio Express
**
,))#67 /4
MS SQL Server 2005 Express Edition
# 3 (remote connections)
,)
http://support.microsoft.com/default.aspx?scid=kb;EN-US;914277
If you are running a firewall on the computer that is running SQL Server 2005, external connections to SQL
Server 2005 will be blocked unless SQL Server 2005 and the SQL Server Browser service can communicate
through the firewall. You must create an exception for each instance of SQL Server 2005 that you want to
accept remote connections and an exception for the SQL Server Browser service.
SQL Server 2005 uses an instance ID as part of the path when you install its program files. To create an
exception for each instance of SQL Server, you must identify the correct instance ID. To obtain an instance
ID, follow these steps:
Click Start , point to Programs , point to Microsoft SQL Server 2005 , point to Configuration
1.
Tools , and then click SQL Server Configuration Manager .
In SQL Server Configuration Manager, click the SQL Server Browser service in the right pane, right-click
2.
the instance name in the main window, and then click Properties .
On the SQL Server Browser Properties page, click the Advanced tab, locate the instance ID in
3.
the property list, and then click OK .
To open Windows Firewall, click Start , click Run , type firewall.cpl, and then click OK .
Create an exception for SQL Server 2005 in Windows Firewall
To create an exception for SQL Server 2005 in Windows Firewall, follow these steps:
1. In Windows Firewall, click the Exceptions tab, and then click Add Program .
2. In the Add a Program window, click Browse .
Click the C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\sqlservr.exe executable program,
click Open , and then click OK .
3.
Note The path may be different depending on where SQL Server 2005 is installed. MSSQL.1
is a placeholder for the instance ID that you obtained in step 3 of the previous procedure.
4. Repeat steps 1 through 3 for each instance of SQL Server 2005 that needs an exception.
Create an exception for the SQL Server Browser service in Windows Firewall
To create an exception for the SQL Server Browser service in Windows Firewall, follow these
steps:
1. In Windows Firewall, click the Exceptions tab, and then click Add Program .
2. In the Add a Program window, click Browse .
Click the C:\Program Files\Microsoft SQL Server\90\Shared\sqlbrowser.exe executable program, click
Open , and then click OK .
3.
Note The path may be different depending on where SQL Server 2005 is installed.
(/ 6// 85
"#
,
Instance ID
** / Security Authentication Mode ) SQL Server ! , "#
# )/ /( @ Management Studio Connect Windows
Authentication
3 6 Administrator )#
Role Sysadmin ) SQL Server #
, / Security Authentication Mode "
, ,
password ,
sa #
! login ) " % ! login #
2.
Security
3
Server authentication %
SQL Server and Authentication Mode
#: OK "
Restart -"'
6. /6 F5
#,
, %"
, %
)
/ Registry Editor
Start > Run > regedit [OK]
!-
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer
)
3
Subkey
LoginMode
#
// ##
#
1 - Windows Authentication Mode
2 - SQL Server Security Mode And Windows Authentication Mode
,
#
/ 1
2 Mode
"#
/
, Restart # 1
#
,
Account
%
, # / SQL Staement #
USE MASTER
sp_addLogin 'mie', 'secure_password_for_mie'
GO
sp_addsrvrolemember 'mie', 'sysadmin'
GO
USE MYDATABASE
EXEC sp_adduser 'mie'
"#
% # Firewall
Antivirus ( " Firewall "/ Firewall)
/
% " !' LAN #
," #67 !))
! 33!- 3 Services
,
#67
, restart SQL Service (
#67!
')",
3 /
SQL Service Manager SQL Server 2000 # // SQL Server Configuration Manager
& SQL Server 2005 Services ) SQL Server /6 restart !#
# 3 % %
, %
6 )
' #67 % ! #67 !
"/ %
Query Analyser, Server Explorer Visual Studion ". "#
-
! # Enterprise manager ) MS SQL Server 2000
')",
SQL Server Management Studio # ,
Express &-
Download # ' %
Service ) SQL Server Express
,
/ Command Prompt #,
netstat -an -p tcp | find /i "listening"
) port 1433
! %
,
*-# ,
command netstat #67 !/ arguments "#
netstat -an -p tcp | find /i "1433" ' %# " #'( 1
# "#