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:
00548925
Vues:
15
>I cannot reproduce what you seeing. I tried the following on SQL Server 2000 SP1:
>
>use pubs
>select object_id('authors')
>select name from sysobjects where id = object_id('authors')
>
>use northwind
>select object_id('pubs..authors')
>select name from pubs..sysobjects where id = object_id('pubs..authors')
>
>-Mike

Mike,
your code works. However, try this one, if you please:

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

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

I get two different sets of data.
Aristotle
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform