---
title: "SQL Server sysobjects表结构"
author: "services"
date: "2011-05-05T16:24:02Z"
tags: []
categories: ["数据库"]
slug: "sql-server-sysobjects"
draft: false
lastmod: "2011-07-06T17:30:05Z"
id: 1030385
url: "https://services.iteye.com/blog/1030385"
---

## 在数据库内创建的每个对象（约束、默认值、日志、规则、存储过程等）在表中占一行。只有在 tempdb 内，每个临时对象才在该表中占一行。 ![\](http://edu.codepub.com/uploadfile/2010/0507/20100507082414931.jpg) ![\](http://edu.codepub.com/uploadfile/2010/0507/20100507082426216.jpg) ![\](http://edu.codepub.com/uploadfile/2010/0507/20100507082437982.jpg) ![\](http://edu.codepub.com/uploadfile/2010/0507/20100507082445519.jpg)

## select count(xtype),xtype from sysobjects group by xtype