Generate PostHistoryTypes comparison

0

Please login or register to vote for this query.

(click on this box to dismiss)

Windows Phone Meta

Q&A about the site for enthusiasts and power users of Windows Phone OS

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 to main site
loading Hold tight while we fetch your results