File tree 1 file changed +50
-2
lines changed
1 file changed +50
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,55 @@ FROM #objectstaus where objecttype='USER_TABLE'
109
109
ORDER BY dbname ASC
110
110
111
111
SELECT *
112
- FROM #objectstaus where objecttype not in (' USER_TABLE' )
112
+ FROM #objectstaus where objecttype= ' CHECK_CONSTRAINT'
113
+ ORDER BY dbname ASC
114
+
115
+ SELECT *
116
+ FROM #objectstaus where objecttype= ' DEFAULT_CONSTRAINT'
117
+ ORDER BY dbname ASC
118
+
119
+ SELECT *
120
+ FROM #objectstaus where objecttype= ' FOREIGN_KEY_CONSTRAINT'
121
+ ORDER BY dbname ASC
122
+
123
+ SELECT *
124
+ FROM #objectstaus where objecttype= ' PRIMARY_KEY_CONSTRAINT'
125
+ ORDER BY dbname ASC
126
+
127
+ SELECT *
128
+ FROM #objectstaus where objecttype= ' UNIQUE_CONSTRAINT'
129
+ ORDER BY dbname ASC
130
+
131
+ SELECT *
132
+ FROM #objectstaus where objecttype= ' SQL_TRIGGER'
133
+ ORDER BY dbname ASC
134
+
135
+ SELECT *
136
+ FROM #objectstaus where objecttype= ' VIEW'
137
+ ORDER BY dbname ASC
138
+
139
+ SELECT *
140
+ FROM #objectstaus where objecttype= ' SQL_STORED_PROCEDURE'
141
+ ORDER BY dbname ASC
142
+
143
+ SELECT *
144
+ FROM #objectstaus where objecttype not in (' USER_TABLE' ,
145
+ ' CHECK_CONSTRAINT' ,
146
+ ' DEFAULT_CONSTRAINT' ,
147
+ ' FOREIGN_KEY_CONSTRAINT' ,
148
+ ' PRIMARY_KEY_CONSTRAINT' ,
149
+ ' SQL_TRIGGER' ,
150
+ ' VIEW' ,
151
+ ' SQL_STORED_PROCEDURE'
152
+ ' UNIQUE_CONSTRAINT' )
113
153
ORDER BY dbname ASC
114
154
DROP TABLE #objectstaus
115
-
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
You can’t perform that action at this time.
0 commit comments