Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sysobjects reports differently from DB to DB
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00548728
Message ID:
00549407
Vues:
22
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform