Linked Servers

  • I am trying to implement Linked Servers. but I am having problems establishing connection to my two servers:

    I have already created the linked server SRV-AXDEV under SRV-APP1 with the following configurations:

    This is the list of my databases in SRV-AXDEV

    But when I try to run this query:

    Select * from [SRV-AXDEV].[GFII_AX2009_DB_LIVE].[dbo].[InventTable]

    I keep on getting this error:

    Msg 7314, Level 16, State 1, Line 1

    The OLE DB provider "SQLNCLI10" for linked server "SRV-AXDEV" does not contain the table ""GFII_AX2009_DB_LIVE"."dbo"."InventTable"". The table either does not exist or the current user does not have permissions on that table.

    I hope you could help me with this problem.

    Thank you very much!

    ---------------------------------------
    The more you learn, the more you realize how little you know…
  • it seems that this issue is "permission related". Check the login used in linked server should have appropriate credentials.

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • Bhuvnesh (1/21/2013)


    it seems that this issue is "permission related". Check the login used in linked server should have appropriate credentials.

    Hi, I'm not sure if I've done it right. But when I have set up my linked server (SRV-AXDEV),on the Properties under the Security tab, I chose the "be made using the security context" with the following details:

    the remote login, & password that I have set is exactly the same as the log in credentials that I am using whenever I connect to the Database Server SRV-AXDEV.

    ---------------------------------------
    The more you learn, the more you realize how little you know…
  • NaDi (1/21/2013)


    the remote login, & password that I have set is exactly the same as the log in credentials that I am using whenever I connect to the Database Server SRV-AXDEV.

    Does it have same permission on both servers ?

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • Bhuvnesh (1/21/2013)


    NaDi (1/21/2013)


    the remote login, & password that I have set is exactly the same as the log in credentials that I am using whenever I connect to the Database Server SRV-AXDEV.

    Does it have same permission on both servers ?

    Yes, I guess, but where in particular would I check that? Thanks. 🙂

    ---------------------------------------
    The more you learn, the more you realize how little you know…
  • Just out of curiosity, does the database actually contain the table InventTable?

    Not played with AX in over 18 months so cant remember if its a standard table or not.

    Also what is the collation of the AX database? If its case sensitive then you will need to ensure you query it case sensitive as your using the remote collation.

    So InventTable <> INVENTTABLE.

    Typically AX tables are all upper case.

  • Yes the login should be present in local and as well in the target server and with permission.

    "More Green More Oxygen !! Plant a tree today"

  • anthony.green (1/22/2013)


    Just out of curiosity, does the database actually contain the table InventTable?

    Not played with AX in over 18 months so cant remember if its a standard table or not.

    Also what is the collation of the AX database? If its case sensitive then you will need to ensure you query it case sensitive as your using the remote collation.

    So InventTable <> INVENTTABLE.

    Typically AX tables are all upper case.

    INVENTTABLE yes is a standard table of AX.

    The collation of my AX Dbase is SQL_Latin1_General_CP1_CI_AS

    I tried running the script again using uppercase letters but its still the same.

    I noticed something though, when I opened my Linked Servers in the server objects. I have not found the AX Databse in my catalogs.. see image below.

    This is my SRV-AXDEV list of databases:

    -----

    I tried doing it the other way around, that is, I created a linked server SRV-APP1 in my SRV-AXDEV server, and it worked. I also tried using the IP Address of AXDEV as a linked server instead of its logical name and it also worked.. It's odd, I don't know what's wrong..

    ---------------------------------------
    The more you learn, the more you realize how little you know…
  • I know this is an assumption, but the 'sa' account you are using to connect via the credentials...it is the actual "sa" account and it is a member of the sysadmin group, correct? YOu can check this by right clicking on the sa account until Security >> Logins.

    Then...go to the user mapping, just to be certain it has that database mapped for the account.

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply