PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.setup > Create Linked server user
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
ms.sqlserver.setup Questions about SQL Server.

Create Linked server user

Réponse
 
LinkBack Outils de la discussion
Vieux 15/10/2007, 14h57   #1
Mark Goldin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Create Linked server user

I am trying to create an SQL Server user that I will use to run linked
servers.
How do I create such account? What rights should I give to it?

Thanks


  Réponse avec citation
Vieux 17/10/2007, 18h45   #2
Russell Fields
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Create Linked server user

Mark,

I really do not quite understand your questions, since there are several
ways to access a linked server. As yourself, as a specific account, mapping
accounts between servers, etc. The commands you might use are:
sp_addlinkedserver
sp_serveroption
sp_addlinkedsrvlogin

These are also settable through the desktop tools, such as SQL Server 2000
Enterprise Manager or SQL Server 2005 Management Studio. Although the
position in the object tree is different between the two, the functionality
it pretty much the same.

If that does not , perhaps you could clarify:
1 - "run linked servers" - Do you mean access them through the link? Do you
mean what account the other server should be running under?
2 - "create such account" - See above for commands.
3 - "what rights" - It depends on the rights your functions need and (see
above) how you choose to connect. If you connect through the linked server
under you own credentials, no other accounts are needed, but your account
will need some rights.

You did not mention what version you are running, but the Books Online for
your version will discuss linked servers and their security. You might look
for topics like:
Linking Servers
Security for Linked Servers
Configuring Linked Servers for Delegation

RLF

"Mark Goldin" <mgoldin@ufandd.com> wrote in message
news:%23ZKplNzDIHA.3848@TK2MSFTNGP05.phx.gbl...
>I am trying to create an SQL Server user that I will use to run linked
>servers.
> How do I create such account? What rights should I give to it?
>
> Thanks
>



  Réponse avec citation
Vieux 18/10/2007, 13h08   #3
Mark Goldin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Create Linked server user

<your account will need some rights.
What are these?
<Do you mean access them through the link?
I am running the following:
select * from linkservername...remotetable


"Russell Fields" <russellfields@nomail.com> wrote in message
news:%23agDAWOEIHA.5208@TK2MSFTNGP04.phx.gbl...
> Mark,
>
> I really do not quite understand your questions, since there are several
> ways to access a linked server. As yourself, as a specific account,
> mapping accounts between servers, etc. The commands you might use are:
> sp_addlinkedserver
> sp_serveroption
> sp_addlinkedsrvlogin
>
> These are also settable through the desktop tools, such as SQL Server 2000
> Enterprise Manager or SQL Server 2005 Management Studio. Although the
> position in the object tree is different between the two, the
> functionality it pretty much the same.
>
> If that does not , perhaps you could clarify:
> 1 - "run linked servers" - Do you mean access them through the link? Do
> you mean what account the other server should be running under?
> 2 - "create such account" - See above for commands.
> 3 - "what rights" - It depends on the rights your functions need and (see
> above) how you choose to connect. If you connect through the linked
> server under you own credentials, no other accounts are needed, but your
> account will need some rights.
>
> You did not mention what version you are running, but the Books Online for
> your version will discuss linked servers and their security. You might
> look for topics like:
> Linking Servers
> Security for Linked Servers
> Configuring Linked Servers for Delegation
>
> RLF
>
> "Mark Goldin" <mgoldin@ufandd.com> wrote in message
> news:%23ZKplNzDIHA.3848@TK2MSFTNGP05.phx.gbl...
>>I am trying to create an SQL Server user that I will use to run linked
>>servers.
>> How do I create such account? What rights should I give to it?
>>
>> Thanks
>>

>
>



  Réponse avec citation
Vieux 18/10/2007, 16h21   #4
Russell Fields
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Create Linked server user

Mark,

Origin Machine -- The server you issue your query from
Linked Server -- The definition on the Origin Server granting an access path
the the Target Machine
Target Machine -- The server to be accessed from the above linked server.

A user account needs no special rights to use a linked server defined on the
origin machine. But he does need to have the appropriate rights granted on
the target machine. The rights on the target machine are not special to the
linked server access either; they simply are the same rights that someone
logged on directly to the target machine would need for the functionality to
work.

However you defined access to be passed through the linked server (you did
not mention how you did that) the account that accesses the target server
needs rights to the objects it is to access. If they authenticate as
themselves, then their login needs rights. If the linked server is defined
to force access to a specific account, that account needs the rights.

You can secure the linked server to a limited list of people by defining
each login that should be able to use the linked server and then setting the
linked security definition to deny rights to anybody not on your list. As I
understand it, the list must be logins not groups.

FWIW,
RLF

"Mark Goldin" <mgoldin@ufandd.com> wrote in message
news:%231eMx%23XEIHA.3712@TK2MSFTNGP02.phx.gbl...
> <your account will need some rights.
> What are these?
> <Do you mean access them through the link?
> I am running the following:
> select * from linkservername...remotetable
>
>
> "Russell Fields" <russellfields@nomail.com> wrote in message
> news:%23agDAWOEIHA.5208@TK2MSFTNGP04.phx.gbl...
>> Mark,
>>
>> I really do not quite understand your questions, since there are several
>> ways to access a linked server. As yourself, as a specific account,
>> mapping accounts between servers, etc. The commands you might use are:
>> sp_addlinkedserver
>> sp_serveroption
>> sp_addlinkedsrvlogin
>>
>> These are also settable through the desktop tools, such as SQL Server
>> 2000 Enterprise Manager or SQL Server 2005 Management Studio. Although
>> the position in the object tree is different between the two, the
>> functionality it pretty much the same.
>>
>> If that does not , perhaps you could clarify:
>> 1 - "run linked servers" - Do you mean access them through the link? Do
>> you mean what account the other server should be running under?
>> 2 - "create such account" - See above for commands.
>> 3 - "what rights" - It depends on the rights your functions need and (see
>> above) how you choose to connect. If you connect through the linked
>> server under you own credentials, no other accounts are needed, but your
>> account will need some rights.
>>
>> You did not mention what version you are running, but the Books Online
>> for your version will discuss linked servers and their security. You
>> might look for topics like:
>> Linking Servers
>> Security for Linked Servers
>> Configuring Linked Servers for Delegation
>>
>> RLF
>>
>> "Mark Goldin" <mgoldin@ufandd.com> wrote in message
>> news:%23ZKplNzDIHA.3848@TK2MSFTNGP05.phx.gbl...
>>>I am trying to create an SQL Server user that I will use to run linked
>>>servers.
>>> How do I create such account? What rights should I give to it?
>>>
>>> Thanks
>>>

>>
>>

>
>



  Réponse avec citation
Vieux 19/10/2007, 15h44   #5
Mark Goldin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Create Linked server user

I have got it working setting up SQL Server box as a trusted object for
deligation.
But it only works for me since I am a local admin of that box.
What do I need to do to have a regular user be able to run LS?

Thanks

"Russell Fields" <russellfields@nomail.com> wrote in message
news:uUbNEqZEIHA.3916@TK2MSFTNGP02.phx.gbl...
> Mark,
>
> Origin Machine -- The server you issue your query from
> Linked Server -- The definition on the Origin Server granting an access
> path the the Target Machine
> Target Machine -- The server to be accessed from the above linked server.
>
> A user account needs no special rights to use a linked server defined on
> the origin machine. But he does need to have the appropriate rights
> granted on the target machine. The rights on the target machine are not
> special to the linked server access either; they simply are the same
> rights that someone logged on directly to the target machine would need
> for the functionality to work.
>
> However you defined access to be passed through the linked server (you did
> not mention how you did that) the account that accesses the target server
> needs rights to the objects it is to access. If they authenticate as
> themselves, then their login needs rights. If the linked server is
> defined to force access to a specific account, that account needs the
> rights.
>
> You can secure the linked server to a limited list of people by defining
> each login that should be able to use the linked server and then setting
> the linked security definition to deny rights to anybody not on your list.
> As I understand it, the list must be logins not groups.
>
> FWIW,
> RLF
>
> "Mark Goldin" <mgoldin@ufandd.com> wrote in message
> news:%231eMx%23XEIHA.3712@TK2MSFTNGP02.phx.gbl...
>> <your account will need some rights.
>> What are these?
>> <Do you mean access them through the link?
>> I am running the following:
>> select * from linkservername...remotetable
>>
>>
>> "Russell Fields" <russellfields@nomail.com> wrote in message
>> news:%23agDAWOEIHA.5208@TK2MSFTNGP04.phx.gbl...
>>> Mark,
>>>
>>> I really do not quite understand your questions, since there are several
>>> ways to access a linked server. As yourself, as a specific account,
>>> mapping accounts between servers, etc. The commands you might use are:
>>> sp_addlinkedserver
>>> sp_serveroption
>>> sp_addlinkedsrvlogin
>>>
>>> These are also settable through the desktop tools, such as SQL Server
>>> 2000 Enterprise Manager or SQL Server 2005 Management Studio. Although
>>> the position in the object tree is different between the two, the
>>> functionality it pretty much the same.
>>>
>>> If that does not , perhaps you could clarify:
>>> 1 - "run linked servers" - Do you mean access them through the link? Do
>>> you mean what account the other server should be running under?
>>> 2 - "create such account" - See above for commands.
>>> 3 - "what rights" - It depends on the rights your functions need and
>>> (see above) how you choose to connect. If you connect through the
>>> linked server under you own credentials, no other accounts are needed,
>>> but your account will need some rights.
>>>
>>> You did not mention what version you are running, but the Books Online
>>> for your version will discuss linked servers and their security. You
>>> might look for topics like:
>>> Linking Servers
>>> Security for Linked Servers
>>> Configuring Linked Servers for Delegation
>>>
>>> RLF
>>>
>>> "Mark Goldin" <mgoldin@ufandd.com> wrote in message
>>> news:%23ZKplNzDIHA.3848@TK2MSFTNGP05.phx.gbl...
>>>>I am trying to create an SQL Server user that I will use to run linked
>>>>servers.
>>>> How do I create such account? What rights should I give to it?
>>>>
>>>> Thanks
>>>>
>>>
>>>

>>
>>

>
>



  Réponse avec citation
Vieux 19/10/2007, 15h46   #6
Mark Goldin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Create Linked server user

BTW, this is a message I am getting when I am trying to run query using LS
when I am not a local admin:
Cannot create an instance of OLE DB provider "VFPOLEDB" for linked server
"specifications".

"Russell Fields" <russellfields@nomail.com> wrote in message
news:uUbNEqZEIHA.3916@TK2MSFTNGP02.phx.gbl...
> Mark,
>
> Origin Machine -- The server you issue your query from
> Linked Server -- The definition on the Origin Server granting an access
> path the the Target Machine
> Target Machine -- The server to be accessed from the above linked server.
>
> A user account needs no special rights to use a linked server defined on
> the origin machine. But he does need to have the appropriate rights
> granted on the target machine. The rights on the target machine are not
> special to the linked server access either; they simply are the same
> rights that someone logged on directly to the target machine would need
> for the functionality to work.
>
> However you defined access to be passed through the linked server (you did
> not mention how you did that) the account that accesses the target server
> needs rights to the objects it is to access. If they authenticate as
> themselves, then their login needs rights. If the linked server is
> defined to force access to a specific account, that account needs the
> rights.
>
> You can secure the linked server to a limited list of people by defining
> each login that should be able to use the linked server and then setting
> the linked security definition to deny rights to anybody not on your list.
> As I understand it, the list must be logins not groups.
>
> FWIW,
> RLF
>
> "Mark Goldin" <mgoldin@ufandd.com> wrote in message
> news:%231eMx%23XEIHA.3712@TK2MSFTNGP02.phx.gbl...
>> <your account will need some rights.
>> What are these?
>> <Do you mean access them through the link?
>> I am running the following:
>> select * from linkservername...remotetable
>>
>>
>> "Russell Fields" <russellfields@nomail.com> wrote in message
>> news:%23agDAWOEIHA.5208@TK2MSFTNGP04.phx.gbl...
>>> Mark,
>>>
>>> I really do not quite understand your questions, since there are several
>>> ways to access a linked server. As yourself, as a specific account,
>>> mapping accounts between servers, etc. The commands you might use are:
>>> sp_addlinkedserver
>>> sp_serveroption
>>> sp_addlinkedsrvlogin
>>>
>>> These are also settable through the desktop tools, such as SQL Server
>>> 2000 Enterprise Manager or SQL Server 2005 Management Studio. Although
>>> the position in the object tree is different between the two, the
>>> functionality it pretty much the same.
>>>
>>> If that does not , perhaps you could clarify:
>>> 1 - "run linked servers" - Do you mean access them through the link? Do
>>> you mean what account the other server should be running under?
>>> 2 - "create such account" - See above for commands.
>>> 3 - "what rights" - It depends on the rights your functions need and
>>> (see above) how you choose to connect. If you connect through the
>>> linked server under you own credentials, no other accounts are needed,
>>> but your account will need some rights.
>>>
>>> You did not mention what version you are running, but the Books Online
>>> for your version will discuss linked servers and their security. You
>>> might look for topics like:
>>> Linking Servers
>>> Security for Linked Servers
>>> Configuring Linked Servers for Delegation
>>>
>>> RLF
>>>
>>> "Mark Goldin" <mgoldin@ufandd.com> wrote in message
>>> news:%23ZKplNzDIHA.3848@TK2MSFTNGP05.phx.gbl...
>>>>I am trying to create an SQL Server user that I will use to run linked
>>>>servers.
>>>> How do I create such account? What rights should I give to it?
>>>>
>>>> Thanks
>>>>
>>>
>>>

>>
>>

>
>



  Réponse avec citation
Vieux 19/10/2007, 16h52   #7
Russell Fields
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Create Linked server user

Mark,

Oh, you are trying to connect to Visual FoxPro, not another SQL Server. I
should have asked when I saw the "..." in "linkservername...remotetable". I
don't have experience with a non-sysadmin using a linked server to FoxPro.
When I did it, I was using a server job to load tables in SQL Server.
However, looking around in Google, I found:

http://www.eggheadcafe.com/aspnet_an...st27424513.asp
Cindy Winegarden (a Visual FoxPro MVP) had the guidance to allow the
provider to run 'in process' as shown below:

USE [master]
GO
EXEC master.dbo.sp_MSset_oledb_prop N'VFPOLEDB', N'AllowInProcess', 1
GO

HTH,
RLF

"Mark Goldin" <mgoldin@ufandd.com> wrote in message
news:eNEoN7lEIHA.1208@TK2MSFTNGP05.phx.gbl...
> BTW, this is a message I am getting when I am trying to run query using LS
> when I am not a local admin:
> Cannot create an instance of OLE DB provider "VFPOLEDB" for linked server
> "specifications".
>
> "Russell Fields" <russellfields@nomail.com> wrote in message
> news:uUbNEqZEIHA.3916@TK2MSFTNGP02.phx.gbl...
>> Mark,
>>
>> Origin Machine -- The server you issue your query from
>> Linked Server -- The definition on the Origin Server granting an access
>> path the the Target Machine
>> Target Machine -- The server to be accessed from the above linked server.
>>
>> A user account needs no special rights to use a linked server defined on
>> the origin machine. But he does need to have the appropriate rights
>> granted on the target machine. The rights on the target machine are not
>> special to the linked server access either; they simply are the same
>> rights that someone logged on directly to the target machine would need
>> for the functionality to work.
>>
>> However you defined access to be passed through the linked server (you
>> did not mention how you did that) the account that accesses the target
>> server needs rights to the objects it is to access. If they authenticate
>> as themselves, then their login needs rights. If the linked server is
>> defined to force access to a specific account, that account needs the
>> rights.
>>
>> You can secure the linked server to a limited list of people by defining
>> each login that should be able to use the linked server and then setting
>> the linked security definition to deny rights to anybody not on your
>> list. As I understand it, the list must be logins not groups.
>>
>> FWIW,
>> RLF
>>
>> "Mark Goldin" <mgoldin@ufandd.com> wrote in message
>> news:%231eMx%23XEIHA.3712@TK2MSFTNGP02.phx.gbl...
>>> <your account will need some rights.
>>> What are these?
>>> <Do you mean access them through the link?
>>> I am running the following:
>>> select * from linkservername...remotetable
>>>
>>>
>>> "Russell Fields" <russellfields@nomail.com> wrote in message
>>> news:%23agDAWOEIHA.5208@TK2MSFTNGP04.phx.gbl...
>>>> Mark,
>>>>
>>>> I really do not quite understand your questions, since there are
>>>> several ways to access a linked server. As yourself, as a specific
>>>> account, mapping accounts between servers, etc. The commands you might
>>>> use are:
>>>> sp_addlinkedserver
>>>> sp_serveroption
>>>> sp_addlinkedsrvlogin
>>>>
>>>> These are also settable through the desktop tools, such as SQL Server
>>>> 2000 Enterprise Manager or SQL Server 2005 Management Studio. Although
>>>> the position in the object tree is different between the two, the
>>>> functionality it pretty much the same.
>>>>
>>>> If that does not , perhaps you could clarify:
>>>> 1 - "run linked servers" - Do you mean access them through the link?
>>>> Do you mean what account the other server should be running under?
>>>> 2 - "create such account" - See above for commands.
>>>> 3 - "what rights" - It depends on the rights your functions need and
>>>> (see above) how you choose to connect. If you connect through the
>>>> linked server under you own credentials, no other accounts are needed,
>>>> but your account will need some rights.
>>>>
>>>> You did not mention what version you are running, but the Books Online
>>>> for your version will discuss linked servers and their security. You
>>>> might look for topics like:
>>>> Linking Servers
>>>> Security for Linked Servers
>>>> Configuring Linked Servers for Delegation
>>>>
>>>> RLF
>>>>
>>>> "Mark Goldin" <mgoldin@ufandd.com> wrote in message
>>>> news:%23ZKplNzDIHA.3848@TK2MSFTNGP05.phx.gbl...
>>>>>I am trying to create an SQL Server user that I will use to run linked
>>>>>servers.
>>>>> How do I create such account? What rights should I give to it?
>>>>>
>>>>> Thanks
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 00h01.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,25748 seconds with 15 queries