The Name property is a character string identifying a Microsoft® SQL Server™ database, SQL Server Agent, or replication object.
object.Name [= value]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
value | String |
For restrictions on modifiability and content of the Name property, see the documentation for the applicable object.
String
Read/write
HRESULT GetName(SQLDMO_LPBSTR pRetVal);
HRESULT SetName(SQLDMO_LPCSTR NewValue);
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.