Partager via


Owner Property (Database, UserDefinedFunction)

Cette fonctionnalité sera supprimée dans une prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement, et prévoyez de modifier les applications qui utilisent actuellement cette fonctionnalité.

The Owner property exposes the Microsoft SQL Server0 user-assigned ownership rights to the referenced SQL Server element.

Syntaxe

object
.Owner 

Parts

  • object
    An expression that evaluates to an object in the Applies To list

Data Type

String

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetOwner(SQLDMO_LPBSTR pRetVal);
ms144102.note(fr-fr,SQL.90).gifRemarque :
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.

Notes

SQL Server establishes ownership rules for databases. Some permissions default to a database owner, and ownership forms one portion of SQL Server access control.

SQL Server database ownership can be changed using the SetOwner method of the Database

object.

Applies To:

Database Object

UserDefinedFunction Object

Voir aussi

Référence

SetOwner Method

Aide et Informations

Assistance sur SQL Server 2005