Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sysobjects reports differently from DB to DB
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00548728
Message ID:
00549407
Views:
15
I also get two different results. According to the BOL, OBJECTPROPERTY() is used to return information about object in the current database. This query:

>USE northwind
>SELECT *
>FROM pubs..sysobjects
>WHERE OBJECTPROPERTY(ID, N'IsUserTable') = 1

does not use it in that way. The current database is Northwind and you're trying to retrieve info about objects in pubs. OBJECTPROPETY does not appear to work in the context that you want to use it.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform