This article is a mirror article of machine translation, please click here to jump to the original article.

View: 16423|Reply: 2

[Source] SQL Server queries how many tables are under the database

[Copy link]
Posted on 4/21/2017 11:17:01 AM | | | |




Interpretation:

sysobjects system object table. Save the objects of the current database.

Such as constraints, defaults, logs, rules, stored procedures, etc
In sqlserver2005 and sqlserver2008 versions of the database, it is now a view object, and there is a sys.sysobjects view object in the system view of each database.


sysobjects important fields explained:
sysObjects (
Name sysname, --object name
id int, --object id
xtype char(2), -- object type
type char(2), -- Object type (seems to be exactly the same as xtype?) A little depressed... )
uid smallint, -- the ID of the object owner
... --other fields are not commonly used.
)
Note: It needs to be explained that xtype and type are exactly the same, and his data is:
C = CHECK constraint
D = DEFAULT or DEFAULT constraint
F = FOREIGN KEY constraint
FN = scalar function
IF = Inline Table Function
K = PRIMARY KEY or UNIQUE constraints
L = log
P = stored procedure
R = rule
RF = Replication Filter Stored Procedure
S = System table
TF = table function
TR = Trigger
U = User Table
V = view
X = Extended stored procedure
AF = Aggregation Function (CLR)
FS = Assembly (CLR) scalar function
FT = assembly (CLR) table value function
IF = Inline Table Function
IT = Internal Table
PC = Assembly (CLR) stored procedure
PK = PRIMARY KEY constraint (type K)
SN = synonyms
SQ = Service Queue
TA = Assembly (CLR) DML Trigger
TT = table type
UQ = UNIQUE constraint (type is K)
The table contains all the objects in the database, such as those stored procedure views





Previous:Could not find a getter for property 'xx' in class 'xx.xx'
Next:Technician Union GHOST WIN7 SP1 32-bit, 64-bit Installed version V2017.04
Posted on 5/30/2017 6:12:50 AM |
Is there any tool software to find?
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com