You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -172,7 +172,7 @@ OBJECTPROPERTYEX ( id , property )
172
172
## Remarks
173
173
The [!INCLUDE[ssDE](../../includes/ssde-md.md)] assumes that *object_id* is in the current database context. A query that references an *object_id* in another database will return NULL or incorrect results. For example, in the following query the current database context is the master database. The [!INCLUDE[ssDE](../../includes/ssde-md.md)] will try to return the property value for the specified *object_id* in that database instead of the database that is specified in the query. The query returns incorrect results because the view `vEmployee` is not in the master database.
The following example creates a SYNONYM `MyEmployeeTable` for the `Employee` table in the [!INCLUDE[ssSampleDBobject](../../includes/sssampledbobject-md.md)] database and then returns the base type of the SYNONYM.
192
192
193
-
```
193
+
```sql
194
194
USE AdventureWorks2012;
195
195
GO
196
196
CREATE SYNONYM MyEmployeeTable FOR HumanResources.Employee;
@@ -210,34 +210,32 @@ U
210
210
### B. Returning a property value
211
211
The following example returns the number of UPDATE triggers on the specified table.
0 commit comments