Linked Server - Issue

From: Ganesan Subramanian (gansub_at_hotmail.com)
Date: 05/04/04


Date: Tue, 4 May 2004 21:09:53 +0530

I have a Server S1 (SQL 2000)(Windows Auth only) where there is a database
DB1
I have to access a Linked Server S2 (SQL 2000).

In S1 I have setup a linked server using sp_addlinkedserver pointing to S2.
S1 is running the MSSQLServer service using 'MyDomain\SpecialAccount'
My User Alias is 'MyDomain\MyAccount'
My friend's userAlias is 'MyDomain\FriendsAlias'

Both MyAccount and SpecialAccount has access permissions to S2. But
FriendsAlias does not have access.

I am performing these actions
1. I add the linked server using scripts and run them using osql/isqlw.
2. In DB1 I refer the server S2 by S2.databaseInS2.dbo.TableName1 in
procedure SP1.

(A) I login in the box S1 using either MyAccount or SpecialAccount. Both 1.
and 2. goes thru.

(B) I login in my box (not S1) using MyAccount. 1. fails with message "Login
Failed for User (null). Reason Not associated with a Trusted SQL
Connection.". - but - 2. goes thru.

(C) I login in my box (not S1) using 'FriendAlias'. Both 1. and 2. fails
with message "Login Failed for User (null). Reason Not associated with a
Trusted SQL Connection.".

I checked SETSSPN and have read the topics related to linked servers in SQL
BOL and google searches.

I would like to know why (B) and (C) fails.

Note : I cannot ask my IT Group to enable delegation for "SpecialAccount" or
S1 in Domain Controller.

Any Help/Pointers is much appreciated.

-- 
Ganesan Subramanian


Relevant Pages

  • RE: 0x80004005 - you need permission to view its data
    ... When creating the Access linked server, make sure the data source using UNC ... the SQL server(Both SQL authentication and Windows Authentication work). ... 262177 How to enable Kerberos event logging ...
    (microsoft.public.sqlserver.security)
  • Linked Servers - Real Post
    ... I am running SQL 2k on Win 2k. ... a front end for our SQL database. ... added the linked server I want, and SQL queries it fine, ... leaving the "local server login to remote server login" ...
    (microsoft.public.sqlserver.programming)
  • OLE DB provider MSIDXS reported an error. Access denied.
    ... I've added a linked server to a development box. ... I ran the same command on my local Sql box. ... OLE DB error trace [OLE/DB Provider 'MSIDXS' ICommandPrepare::Prepare ... The development sql instance is running under a local system account. ...
    (microsoft.public.sqlserver.fulltext)
  • Re: Transfering only updated data (from as400 to SQL2000)
    ... Rifat, ... Create a linked server of the AS400. ... > will identify rows that require moving at ETL time. ... >> as400 to SQL. ...
    (microsoft.public.sqlserver.dts)
  • Re: Connecting to FoxPro data
    ... Since you want to "mix" the Fox tables with the SQL tables it sounds like ... Note that when you select data from a VFP linked server you need the three ... the data source string in the example is for a FoxPro DBC or "database ...
    (microsoft.public.sqlserver.connect)