The OriginatingServer property identifies the Microsoft® SQL Server™ installation assigning the referenced job.
object.OriginatingServer
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
The property returns (local) for jobs created on the referenced SQL Server installation. For jobs assigned to the referenced SQL Server installation by another server acting as an MSX, the property returns the MSX server name.
String
Read-only
HRESULT GetOriginatingServer(SQLDMO_LPBSTR pRetVal);
Note 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.