Sửa lỗi không đăng nhập được SQL 2005
Mai Thanh Bình Offline
#1 Đã gửi : 10/08/2012 lúc 04:39:01(UTC)

Danh hiệu: Quản trị viên

Nhóm: Quản trị viên
Gia nhập: 24-11-2011(UTC)
Bài viết: 61
Điểm: 165
Đến từ: Gia Lai

Enable remote connection to SQL Server 2005 Expres

By default, SQL Server 2005 doesn’t allow remote connection so you have to enable it manually. If you try to connect to remote SQL Server without enable remote connection first, you’ll see one of these error messages.

“An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connection. ….�?

“Login failed for user ‘sa’. The user is not associated with a trusted SQL Server connection.�?

To resolve these problems, you have 2 majors task. One is to enable both SQL Server and Windows authentication mode on SQL Server and the other is to allow remote connection and SQL Server Browser.

  • Check that you have allowed both SQL Server and Windows Authentication mode (If you’re not use Windows Authentication mode). For instance, user ‘sa’.
    1. Login to SQL Server using SQL Server Management Studio Express on local SQL Server with Windows Authentication user. This will use Windows account to authenticate to SQL Server.
    2. In Object Explorer, right click on the instance name and select Properties.
    3. On the left, select Security and change Server authentication to SQL Server and Windows Authentication mode. If the choice is already selected, that means you have already allowed SQL Server authentication.
    4. There’ll be an information window shows that you need to restart SQL Server to takes effect of the changes.
    5. Right-click on the instance name again, select Restart to restart SQL Server service.
    6. Select Yes.
    7. Wait for service stop and start.
    8. That’s it. You have enabled both SQL Server and Windows authentication so now you can login to SQL Server with your current Windows account or your created account.
  • Check that you have enabled remote connection on SQL Server Surface Area Configuration
    1. Open SQL Server Surface Area Configuration.
    2. Select Surface Area Configuration for Services and Connections.
    3. On the left side, expand your SQL Server instance -> Database Engine -> Remote Connections. On the right side, select Local and remote connections -> using both TCP/IP and named pipes.
    4. On the left side, select SQL Server Browser -> Service.
      On the right side, if the startup type is Disable, you need to change to Automatic and click Apply and click Start button to start the service. Then, click OK.
    5. You have finished configure. Now try to login to your SQL Server from remote computer using SQL Server authentication mode.
    6. Login to SQL Server succeeded.

This topic may be found on the Internet in many site or even Microsoft support but the purpose is to rearrange with easier to read and follow with graphic along with each step so it may help you reminder solution faster or even the person who have just start to use SQL Server 2005 Express Edition.

Đọc tin Rss  Atom Feed
Ai đang xem chủ đề này?
Di chuyển  
Bạn không thể tạo chủ đề mới trong diễn đàn này.
Bạn không thể trả lời chủ đề trong diễn đàn này.
Bạn không thể xóa bài của bạn trong diễn đàn này.
Bạn không thể sửa bài của bạn trong diễn đàn này.
Bạn không thể tạo bình chọn trong diễn đàn này.
Bạn không thể bỏ phiếu bình chọn trong diễn đàn này.