23
   MS SQL Server 2005 Express Edition   LAN (Step-by-Step)        MS SQL Server 2005 Express Edition   LAN                     Download MS SQL Server 2005 Express Edition  Components      .NET framework 2.0          

การติดตั้ง MS SQL Server 2005 Express Edition

  • Upload
    piti128

  • View
    227

  • Download
    0

Embed Size (px)

Citation preview

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 1/23

   MS SQL Server 2005 Express Edition   LAN (Step-by-Step)

    MS SQL Server 2005 Express Edition   LAN               Download

MS SQL Server 2005 Express Edition  Components     

.NET framework 2.0    

   

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 2/23

    Next

Install    

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 3/23

  next  

  Installation Wizard Next

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 4/23

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 5/23

      check box  

  default   LAN Next  

           DB Server Development Next    

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 6/23

  Instance Name Database Server Instance Name  

  Default Instance    Instance Name  Next  

   default service account   Service   Network Service  Local System  Next

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 7/23

      Mixed Mode    connect

 User Name Password     User Active Directory Domain Controller Password  sa  Next

Next default    

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 8/23

  Next  

Microsoft      Next

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 9/23

     Enterprise Edition

Install  

       

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 10/23

  Next  

   Finish   

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 11/23

   LAN           Services  

   SQL Service    port 1433    Service Command Prompt  netstat -an | find /i "listen"  enter

  netstat -an | find /i "1433"     Start menu  SQL Server 2005 Surface Area Configuration  MS SQL Server 2005

         LAN        Surface Area Configuration for Servicesand Connections   

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 12/23

 

 Tree  Remote Connections     Local connections only ( LAN )    Local and remote connections   Using TCP/IP only  name pipes    

  LAN   TCP/IP Apply OK  restart  Restart SQL Service

restart SQL Service         SQL Service Manager  SQL Server 2000   SQL Server Configuration Manager

 SQL Server 2005 Services  SQL Server    restart      

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 13/23

          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  arguments   netstat -an -p tcp | find /i "1433"    1  

  SQL Server Express Edition Database Server LAN   3  

1. Mixed Mode authentication      

2. Server Instance Name  

3.     

      default

   SQL Server Express       Database Engine   

**  Client Tools         SQL

CLient ODBC Connection     

 Enterprise Manager MS SQL Server 2000     SQL Server 05    Message      MS SQL Server Management Studio    Version   MS SQL Server Management studio Express    Download Microsoft Downloads link   Download SQL Server Management Studio Express 

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 14/23

**       MS SQL Server 2005 Express Edition  (remote connections)      

http://support.microsoft.com/default.aspx?scid=kb;EN-US;914277

       

Create exceptions in Windows Firewall

 These steps apply to the version of Windows Firewall that is included in Windows XP Service Pack 2 (SP2)and in Windows Server 2003. If you are using a different firewall system, see your firewall documentation

for more information.

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 communicatethrough the firewall. You must create an exception for each instance of SQL Server 2005 that you want toaccept 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 anexception for each instance of SQL Server, you must identify the correct instance ID. To obtain an instanceID, follow these steps:

1.Click Start , point to Programs , point to Microsoft SQL Server 2005 , point to Configuration

Tools , and then click SQL Server Configuration Manager . 

2.In SQL Server Configuration Manager, click the SQL Server Browser service in the right pane, right-click 

the instance name in the main window, and then click Properties .

3.On the SQL Server Browser Properties page, click the Advanced tab, locate the instance ID inthe 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 . 

3.

Click the C:\Program Files\Microsoft SQL Server\MSSQL.1 \MSSQL\Binn\sqlservr.exe executable program,

click Open , and then click OK .

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 thesesteps:

1. In Windows Firewall, click the Exceptions tab, and then click Add Program . 

2. In the Add a Program window, click Browse . 

3.

Click the C:\Program Files\Microsoft SQL Server\90\Shared\sqlbrowser.exe executable program, click 

Open , and then click OK .

Note The path may be different depending on where SQL Server 2005 is installed. 

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 15/23

    

  MS SQL Server 2005   Firewall    Windows Firewall   Personal Firewall       SQL Server     Instance        Instance  Path     

      Instance ID  

    path SQL Instance   1.  Start > Program > MS SQL Server 2005 > Configuration Tools > SQL ServerConfiguration Manager.2.   SQL Server 2005 Services   Instance    Click 

 Properties  Advanced Tab   Instance ID    

Instance ID  MSSQL.1   OK       Firewall  

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 16/23

     Windows Firewall SQL Server 2005 Services

1.  Windows Firewall  Control Panel  

 Start > Run   firewall.cpl   OK     Windows Firewall 2.    MS SQL Server       Exceptions   Tab Exceptions     Add program   Add a program   Browser   Path    3.  Path   C:\Program Files\Microsoft SQL Server\[Instance ID]\MSSQL\Binn\sqlservr.exe C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\sqlservr.exe * Instance   Add Program    

     Windows Firewall SQL Server 2005 Browser Services*   SQL Server  Instance name    1.      Add Program  Exceptions  Path  

2.  Path   C:\Program Files\Microsoft SQL Server\90\Shared\sqlbrowser.exe     OK    

**  Security Authentication Mode SQL Server     

   Management Studio Connect WindowsAuthentication      Administrator    Role Sysadmin SQL Server  

    Security Authentication Mode password sa    login login    

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 17/23

  

1. SQL Server Management Studio Server Instance   Properties.

2. Security   Server authentication   SQL Server and Authentication Mode

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 18/23

  OK   Restart  

3. Restart Mouse Server Instance   Restart YES     

  Login SQL Server  

 login   sa   password Disable   password Enable  

Login   

4.    New Query     SQL

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 19/23

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 20/23

    Subkey LoginMode      1 - Windows Authentication Mode2 - SQL Server Security Mode And Windows Authentication Mode

 1   2  Mode     

  Restart   1  

    Security Mode  Registry* login SQL Server Windows Authentication Mode  

 sa login Login          3 Reply 15   sa Login  

Account     SQL Staement   

USE MASTER sp_addLogin 'mie', 'secure_password_for_mie'GOsp_addsrvrolemember 'mie', 'sysadmin'GOUSE MYDATABASEEXEC sp_adduser 'mie'

 

    Firewall   Antivirus (  Firewall Firewall)    

  LAN         Services  

   SQL Service    port 1433   

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 21/23

Service Command Prompt  netstat -an | find /i "listen"  enter   netstat -an | find /i "1433"     Start menu  SQL Server 2005 Surface Area Configuration  MS SQL Server 2005

         LAN        Surface Area Configuration for Servicesand Connections   

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 22/23

  Tree  Remote Connections     Local connections only ( LAN )    Local and remote connections   Using TCP/IP only  name pipes      LAN   TCP/IP Apply

OK  restart  Restart SQL Service

restart SQL Service         SQL Service Manager  SQL Server 2000  SQL Server Configuration Manager  SQL Server 2005 Services  SQL Server    restart   

   

8/14/2019 MS SQL Server 2005 Express Edition

http://slidepdf.com/reader/full/-ms-sql-server-2005-express-edition 23/23

          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  arguments   netstat -an -p tcp | find /i "1433"    1  

  

   3  

1. Mixed Mode authentication

2. Server Instance Name  

3.     ( Windows Firewall Configuration + AntivirusFirewall)