SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Linked Servers


Linked Servers

Author
Message
NaDi
NaDi
Forum Newbie
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: General Forum Members
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…

Bhuvnesh
Bhuvnesh
SSCertifiable
SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)

Group: General Forum Members
Points: 5300 Visits: 4076
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;-)
NaDi
NaDi
Forum Newbie
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: General Forum Members
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…

Bhuvnesh
Bhuvnesh
SSCertifiable
SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)

Group: General Forum Members
Points: 5300 Visits: 4076
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;-)
NaDi
NaDi
Forum Newbie
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: General Forum Members
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…

anthony.green
anthony.green
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10139 Visits: 6367
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
When a question, really isn't a question - Jeff Smith
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


Minaz Amin
Minaz Amin
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1128 Visits: 1750
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"
NaDi
NaDi
Forum Newbie
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: General Forum Members
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…

MyDoggieJessie
MyDoggieJessie
SSCertifiable
SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)

Group: General Forum Members
Points: 6702 Visits: 7394
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" ;-)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search