SQL Server Remote connection settings

Source: Internet
Author: User
Tags microsoft sql server

(i) Enable SQL Server authentication mode

Log on as Windows authentication after you install SQL Server R2

Right-click on the server node, select Properties, select the Security page, radio SQL Server and Windows Authentication mode

(ii) Enable user SA

Right-click on "Security", "Login name", "sa", select "Properties", select "Status" page, "Enable" on "login" and "Allow connection to Database Engine" Radio "grant"

Select the General page, set the password

(iii) Setting the IP address and port of the TCP/IP protocol

Open SQL Server Configuration Manager, select the "SQLExpress Protocol" node, right click on "TCP/IP" and select "Enable"

Right-click on "TCP/IP", select "Properties", press ENTER "TCP port" value in the dialog box

Restarting the SQL Server service

If you do not have a TCP/IP port, you will be reported as an error at logon:

A network-related instance-specific error occurred while establishing a connection to SQL Server. The server was not found or could not be accessed. Verify that the instance name is correct, and that SQL Server is configured to allow remote connections.

(PROVIDER:TCP provider, error:0-Unable to connect because the target computer is actively rejecting.) ) (Microsoft SQL Server, error: 10061)

(iv) Setting database permissions, attaching databases

If the error in the attached database, the prompt does not have the appropriate permissions, then set the database access rights as follows

SQL Server Remote connection settings

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.