RE: Linked Databases



This was more of a best practices question. When I have lots of
dbs/applications on servers and they needs to read data from another server
(enterprise data). What is the best practice from a configuration management
standpoint to grant access to the remote data.

I was hoping to limit the permission assignments and account generatrion on
the enterprise data server(sql2000). I wanted to do that because lots of
applications/other servers need to access the enterprise data (sql2000).
There is no way I will every assign dbreader to an account to read data on
the linked server. That would allow them to read lots of tables they have no
buisiness seeing. I don't like the administrative headaches of setting up
and maintaining sql accounts on multiple servers.







"Charles Wang[MSFT]" wrote:

Hi Chunk,
From your description, I understand that:
You wanted to retrieve data on your SQL Server 2005 from your SQL Server
2000.
You had created a linked server to the SQL Server 2000 with a sql login,
however you found that it did not work. You want to know what the best way
is to grant the
data access without having permissions spewed all over the place.
If I have misunderstood, please let me know.

I performed a test but unfortunately could not reproduce your issue. I
write my test steps here and hope that you can confirm if it is helpful to
your scenario:
Intent
============================
Access the table [orders] in the Northwind database of MyServer2\S2000 from
MyServer1\SQL2K5.

Server Conditions
============================
Server1:
OS: Windows 2003 Ent Edition SP1
SQL Server: SQL Server 2005 Ent SP1
Instance Name: MyServer1\SQL2K5

Server2:
OS: Windows 2003 Ent Edition SP1
SQL Server: SQL Server 2000 Ent SP4
Instance Name: MyServer2\S2000

Test Steps
============================
1. On Server2, create a SQL login 'usr_test' under MyServer2\S2000 and
assign it with public, db_datareader and db_datawriter permissions on the
Northwind database;
2. On Server1, ensure you can access MyServer2\S2000 with the SQL login
usr_test;
3. On Server1, use sp_addlinkedserver and sp_addlinkedsrvlogin to add
MyServer2\S2000 as a linked server:
use master
go
exec sp_addlinkedserver 'MyServer2\s2000',N'SQL Server'
exec sp_addlinkedsrvlogin 'MyServer2\s2000','false',
NULL,'usr_test','Password!'

After above steps, I can use any login account to execute the SQL
statements without having permissions spewed all over the place:
Update [sha-chlwang-03\s2000].Northwind.dbo.orders set ShipRegion='RJ'
where OrderID=10248
select * from [MyServer2\s2000].Northwind.dbo.orders

As you can see, I just create a login account with read and write
permissions under the SQL Server 2000. No extra permissions need to be
assigned here.

Hope this helpful. Please feel free to let me know if you have any other
questions or concerns.

Sincerely yours,
Charles Wang
Microsoft Online Community Support

======================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from this issue.
======================================================
Your posting back to let us know the issue status is greatly appreciated.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================


.



Relevant Pages

  • Re: Virtual Directory - Permission Denied with fso CopyFile
    ... TestUser (normal user account with same credentials on all machines). ... I created a share on a remote server. ... reviewing it's sharing permissions and security tab permissions "everyone" ... "directory security" tab on the vdir and selecting, edit, edit and manually ...
    (microsoft.public.inetserver.iis)
  • RE: SBS 2003/member Web Server and ISUR access
    ... NTFS permissions for the directories and files ... the IIS content directories have the following permissions. ... Server Extensions, ASPNET, SQL Server and other software is installed. ... The IUSR_MachineName account has the following permissions. ...
    (microsoft.public.windows.server.sbs)
  • Re: Virtual Directory - Permission Denied with fso CopyFile
    ... TestUser (normal user account with same credentials on all machines). ... I logged into the IIS server as vdirUser and simply typed ... open and I had read and write permissions to the share. ... I logged off and back into the IIS server as the administrator and deleted ...
    (microsoft.public.inetserver.iis)
  • Re: Server Unavailable - ASP.NET 2.0 on Windows XP
    ... The error message is "Server Application Unavailable". ... The user account I've ... Please review the permissions outlined in this article. ... So I switched to that directory in Command Prompt and tried the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Compromise?
    ... Yes, if you don't provide a password on your SA account, anybody able to run ... and connect now has complete control over your SQL Server. ... Server has. ...
    (microsoft.public.sqlserver.security)