RemoteUser Property
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.
The RemoteUser property specifies a login name used when a distributed query, or another Microsoft SQL Server process, accesses a data store using a linked server OLE DB data source definition.
구문
object
.RemoteUser [= value]
Parts
object
An expression that evaluates to an object in the Applies To listvalue
A string that matches the SQL Server data type sysname
Data Type
String
Modifiable
Read/write prior to adding the LinkedServerLogin object to its containing LinkedServerLogins collection. Read-only for LinkedServerLogin objects referencing existing login mappings.
Prototype (C/C++)
HRESULT GetRemoteUser(SQLDMO_LPBSTR pRetVal);
HRESULT SetRemoteUser(SQLDMO_LPCSTR NewValue);
[!참고]
SQL Distributed Management Objects (SQL-DMO) strings are always returned as OLE BSTR objects. A C/C++ application obtains a reference to the string. The application must release the reference by using SysFreeString.
주의
When an OLE DB data source definition, called a linked server, is created, a login record is created that simply passes connection authentication data to the linked server when an attempt is made to establish a connection to the data source.
Configure a linked server definition to use a specific authentication data by creating additional records mapping logins on the linking server. For more information about using SQL Distributed Management Objects (SQL-DMO) to configure linked server security, see LinkedServerLogin ObjectObject.
Creating a LinkedServerLogin object and modifying a RemoteUser property value, requires membership in either the sysadmin or securityadmin role.