Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 87b355f

Browse files
Added SQLcompare
1 parent 5d1ab5c commit 87b355f

File tree

1 file changed

+50
-2
lines changed

1 file changed

+50
-2
lines changed

‎SQLCompare/TsqlTools-SQLcompare-ObjectsCompare.sql

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,55 @@ FROM #objectstaus where objecttype='USER_TABLE'
109109
ORDER BY dbname ASC
110110

111111
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')
113153
ORDER BY dbname ASC
114154
DROP TABLE #objectstaus
115-
155+
156+
157+
158+
159+
160+
161+
162+
163+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /