Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What created dtproperties table?
Message
De
03/07/2003 08:24:17
 
 
À
02/07/2003 22:46:12
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Maintenance bases de données
Divers
Thread ID:
00806400
Message ID:
00806489
Vues:
17
This came up on the MCT newsgroups a couple of years ago. Appearently the dtproperties table is not a system table. From SQL Server's POV, it's a user table. The SEM has some code in it that presents it as a system table.

-Mike

>From what I've read, the dtproperties system table contains information regarding diagrams stored in a SQL database. However, it seems there is some other logic to how and when it gets created.
>
>Here's the scenario:
>
>I'm creating a new database that has no diagrams internally. All of the tables were created via script at essentially the same time (a couple hours ago).
>
>At the moment, I am working on a script to create some stored procs programmatically for all of the user-defined tables. The script gets a list of these via the following query:
>
>
>select SO.Name from sysobjects SO
>where so.xtype = 'U'
>
>
>According to Enterprise Mangler, dtproperties is a system table. So, this query should ignore it. However, my script coughs up a furball because dtproperties is included. A quick query of sysobjects where name = 'dtproperties' shows, in fact, that xtype = 'U' (but I would have expected it to be 'S' for a system table).
>
>Getting back to Enterprise Mangler, dtproperties shows a creation date of just a few minutes ago, even though there are no diagrams in the database. Huh?
>
>Anyone know what is going on? I'm curious as to (1) why the table would be created automagically, when there are no diagrams, and (2) why it is listed in sysobjects as a user table.
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