Results 1 to 8 of 8

Thread: Failed to connect to SQL server 2005 instance

  1. #1
    Join Date
    Nov 2002
    Location
    Chicago
    Posts
    39

    Failed to connect to SQL server 2005 instance

    Hi:

    I have a SQL 2005 instance (standard edition with sp2 on windows 2003 server) located on different domain.

    I can connect to it by using sa only. I need to use SQL login.

    I created another user called 'test' and granted with sysadmin server role, but I got following error:

    Login failed for user 'test'. (Microsoft SQL Server, Error: 18456)

    I searched on the internet two days with no luck.

    Any idea?

    Thanks in advance.

    Theresa

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    Did you enter correct password?

  3. #3
    Join Date
    Nov 2002
    Location
    Chicago
    Posts
    39
    Yes, I tried many times.

    Theresa

  4. #4
    Join Date
    Sep 2002
    Posts
    5,938
    Double checked sql instance and the loginis there? Which tool did you use to connect to sql?

  5. #5
    Join Date
    Nov 2002
    Location
    Chicago
    Posts
    39
    Finally I found the sa successful login was feigned, though instance name is 2005. But in fact it pointed to 2000 instance in the same server. Because both instances have the same sa pw, but new test user only exist in 2005 instance.

    Anything I need to do to make a connection to remote SQL server in different domain?

    I alreary enabled local and remote connections.

    The network person told me that the 1433 port is open.

    Thank you very much for your following up.

    Theresa

  6. #6
    Join Date
    Sep 2002
    Posts
    5,938
    Each instance has its own port number, double check sql2k5 instance's port number in sql server configuration manager. To connect to named instance, have to reference it like host_name\instance_name.

  7. #7
    Join Date
    Nov 2002
    Location
    Chicago
    Posts
    39
    I use dynamic port - TCP/IP dynamic port = 0

    Is it necessary use static TCP port ?

    I did use host_name\instance_name.

    Thanks!

    Theresa

  8. #8
    Join Date
    Sep 2002
    Posts
    5,938
    You can find real port number in configuration manager, and can set static port number with it. If there is firewall, need open that port too.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •