Generate PostHistoryTypes comparison

0

Please login or register to vote for this query.

(click on this box to dismiss)

Computational Science

Q&A for scientists using computers to solve scientific problems

Select 'Select ''' + Replace([Name],'.Exported','') + ''' As [DatabaseName], '
+ 'Count(*) As [Count] '
+ 'From [' + [Name] + ']..PostHistoryTypes fp Left Outer Join PostHistoryTypes p ON fp.Id=p.Id'
+ ' Where fp.Name Collate SQL_Latin1_General_CP1_CI_AS <> p.Name'
+ ' UNION ALL '
From sys.Databases
Where Name Like '%.Exported'

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results