Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Linked Servers Expand / Collapse
Author
Message
Posted Monday, January 21, 2013 8:22 PM


Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, January 31, 2013 12:02 AM
Points: 6, Visits: 36
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…
Post #1409766
Posted Monday, January 21, 2013 11:09 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 5:31 AM
Points: 2,841, Visits: 3,985
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
Post #1409790
Posted Monday, January 21, 2013 11:29 PM


Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, January 31, 2013 12:02 AM
Points: 6, Visits: 36
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…
Post #1409799
Posted Monday, January 21, 2013 11:36 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 5:31 AM
Points: 2,841, Visits: 3,985
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
Post #1409802
Posted Tuesday, January 22, 2013 12:17 AM


Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, January 31, 2013 12:02 AM
Points: 6, Visits: 36
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…
Post #1409819
Posted Tuesday, January 22, 2013 1:11 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Monday, December 8, 2014 1:45 AM
Points: 5,221, Visits: 5,120
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.




Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1 & Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger

Post #1409847
Posted Tuesday, January 22, 2013 2:04 AM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Wednesday, December 17, 2014 1:31 AM
Points: 553, Visits: 1,573
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"
Post #1409866
Posted Tuesday, January 22, 2013 6:08 PM


Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, January 31, 2013 12:02 AM
Points: 6, Visits: 36
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…
Post #1410306
Posted Tuesday, January 22, 2013 8:43 PM


SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Monday, November 24, 2014 5:46 AM
Points: 4,031, Visits: 7,172
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; They'll drag you down to their level and beat you with experience"
Post #1410320
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse