Generate AccountId comparison

0

Please login or register to vote for this query.

(click on this box to dismiss)

This current version includes redundant stuff because of previous export processes that allowed just the relevant databases to be included. These are easily skipped or deleted from the Text-only results when you past the results into a new query, such as http://data.stackexchange.com/stackoverflow/query/168043/accountid-comparison.

Stack Overflow

Q&A for professional and enthusiast programmers

Select 'ServerFault' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [ServerFault]..Comments c INNER JOIN [ServerFault]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                                                
Select 'ServerFault.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [ServerFault.Meta]..Comments c INNER JOIN [ServerFault.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                                 
Select 'StackApps' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackApps]..Comments c INNER JOIN [StackApps]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                                                      
Select 'StackExchange.3dprinting' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.3dprinting]..Comments c INNER JOIN [StackExchange.3dprinting]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.3dprinting.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.3dprinting.Meta]..Comments c INNER JOIN [StackExchange.3dprinting.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                          
Select 'StackExchange.Academia' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Academia]..Comments c INNER JOIN [StackExchange.Academia]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Academia.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Academia.Meta]..Comments c INNER JOIN [StackExchange.Academia.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Ai' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Ai]..Comments c INNER JOIN [StackExchange.Ai]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                                 
Select 'StackExchange.Ai.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Ai.Meta]..Comments c INNER JOIN [StackExchange.Ai.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Android' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Android]..Comments c INNER JOIN [StackExchange.Android]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Android.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Android.Meta]..Comments c INNER JOIN [StackExchange.Android.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Anime' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Anime]..Comments c INNER JOIN [StackExchange.Anime]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                        
Select 'StackExchange.Anime.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Anime.Meta]..Comments c INNER JOIN [StackExchange.Anime.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Apple' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Apple]..Comments c INNER JOIN [StackExchange.Apple]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                        
Select 'StackExchange.Apple.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Apple.Meta]..Comments c INNER JOIN [StackExchange.Apple.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Arduino' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Arduino]..Comments c INNER JOIN [StackExchange.Arduino]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Arduino.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Arduino.Meta]..Comments c INNER JOIN [StackExchange.Arduino.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Astronomy' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Astronomy]..Comments c INNER JOIN [StackExchange.Astronomy]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                            
Select 'StackExchange.Astronomy.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Astronomy.Meta]..Comments c INNER JOIN [StackExchange.Astronomy.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                             
Select 'StackExchange.Audio' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Audio]..Comments c INNER JOIN [StackExchange.Audio]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                        
Select 'StackExchange.Audio.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Audio.Meta]..Comments c INNER JOIN [StackExchange.Audio.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Aviation' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Aviation]..Comments c INNER JOIN [StackExchange.Aviation]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Aviation.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Aviation.Meta]..Comments c INNER JOIN [StackExchange.Aviation.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Beer' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Beer]..Comments c INNER JOIN [StackExchange.Beer]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                           
Select 'StackExchange.Beer.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Beer.Meta]..Comments c INNER JOIN [StackExchange.Beer.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                            
Select 'StackExchange.Bicycles' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Bicycles]..Comments c INNER JOIN [StackExchange.Bicycles]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Bicycles.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Bicycles.Meta]..Comments c INNER JOIN [StackExchange.Bicycles.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Biology' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Biology]..Comments c INNER JOIN [StackExchange.Biology]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Biology.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Biology.Meta]..Comments c INNER JOIN [StackExchange.Biology.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Bitcoin' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Bitcoin]..Comments c INNER JOIN [StackExchange.Bitcoin]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Bitcoin.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Bitcoin.Meta]..Comments c INNER JOIN [StackExchange.Bitcoin.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Blender' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Blender]..Comments c INNER JOIN [StackExchange.Blender]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Blender.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Blender.Meta]..Comments c INNER JOIN [StackExchange.Blender.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Boardgames' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Boardgames]..Comments c INNER JOIN [StackExchange.Boardgames]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Boardgames.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Boardgames.Meta]..Comments c INNER JOIN [StackExchange.Boardgames.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                          
Select 'StackExchange.Bricks' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Bricks]..Comments c INNER JOIN [StackExchange.Bricks]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                     
Select 'StackExchange.Bricks.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Bricks.Meta]..Comments c INNER JOIN [StackExchange.Bricks.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Buddhism' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Buddhism]..Comments c INNER JOIN [StackExchange.Buddhism]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Buddhism.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Buddhism.Meta]..Comments c INNER JOIN [StackExchange.Buddhism.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Chemistry' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Chemistry]..Comments c INNER JOIN [StackExchange.Chemistry]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                            
Select 'StackExchange.Chemistry.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Chemistry.Meta]..Comments c INNER JOIN [StackExchange.Chemistry.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                             
Select 'StackExchange.Chess' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Chess]..Comments c INNER JOIN [StackExchange.Chess]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                        
Select 'StackExchange.Chess.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Chess.Meta]..Comments c INNER JOIN [StackExchange.Chess.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Chinese' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Chinese]..Comments c INNER JOIN [StackExchange.Chinese]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Chinese.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Chinese.Meta]..Comments c INNER JOIN [StackExchange.Chinese.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Christianity' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Christianity]..Comments c INNER JOIN [StackExchange.Christianity]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Christianity.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Christianity.Meta]..Comments c INNER JOIN [StackExchange.Christianity.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                    
Select 'StackExchange.Civicrm' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Civicrm]..Comments c INNER JOIN [StackExchange.Civicrm]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Civicrm.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Civicrm.Meta]..Comments c INNER JOIN [StackExchange.Civicrm.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Codegolf' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Codegolf]..Comments c INNER JOIN [StackExchange.Codegolf]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Codegolf.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Codegolf.Meta]..Comments c INNER JOIN [StackExchange.Codegolf.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Codereview' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Codereview]..Comments c INNER JOIN [StackExchange.Codereview]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Codereview.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Codereview.Meta]..Comments c INNER JOIN [StackExchange.Codereview.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                          
Select 'StackExchange.Coffee' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Coffee]..Comments c INNER JOIN [StackExchange.Coffee]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                     
Select 'StackExchange.Coffee.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Coffee.Meta]..Comments c INNER JOIN [StackExchange.Coffee.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Cogsci' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Cogsci]..Comments c INNER JOIN [StackExchange.Cogsci]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                     
Select 'StackExchange.Cogsci.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Cogsci.Meta]..Comments c INNER JOIN [StackExchange.Cogsci.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Computergraphics' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Computergraphics]..Comments c INNER JOIN [StackExchange.Computergraphics]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                       
Select 'StackExchange.Computergraphics.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Computergraphics.Meta]..Comments c INNER JOIN [StackExchange.Computergraphics.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL        
Select 'StackExchange.Cooking' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Cooking]..Comments c INNER JOIN [StackExchange.Cooking]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Cooking.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Cooking.Meta]..Comments c INNER JOIN [StackExchange.Cooking.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Craftcms' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Craftcms]..Comments c INNER JOIN [StackExchange.Craftcms]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Craftcms.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Craftcms.Meta]..Comments c INNER JOIN [StackExchange.Craftcms.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Crafts' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Crafts]..Comments c INNER JOIN [StackExchange.Crafts]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                     
Select 'StackExchange.Crafts.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Crafts.Meta]..Comments c INNER JOIN [StackExchange.Crafts.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Crypto' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Crypto]..Comments c INNER JOIN [StackExchange.Crypto]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                     
Select 'StackExchange.Crypto.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Crypto.Meta]..Comments c INNER JOIN [StackExchange.Crypto.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Cs' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Cs]..Comments c INNER JOIN [StackExchange.Cs]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                                 
Select 'StackExchange.Cs.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Cs.Meta]..Comments c INNER JOIN [StackExchange.Cs.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Cstheory' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Cstheory]..Comments c INNER JOIN [StackExchange.Cstheory]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Cstheory.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Cstheory.Meta]..Comments c INNER JOIN [StackExchange.Cstheory.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Datascience' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Datascience]..Comments c INNER JOIN [StackExchange.Datascience]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Datascience.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Datascience.Meta]..Comments c INNER JOIN [StackExchange.Datascience.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                       
Select 'StackExchange.Dba' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Dba]..Comments c INNER JOIN [StackExchange.Dba]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                              
Select 'StackExchange.Dba.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Dba.Meta]..Comments c INNER JOIN [StackExchange.Dba.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Diy' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Diy]..Comments c INNER JOIN [StackExchange.Diy]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                              
Select 'StackExchange.Diy.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Diy.Meta]..Comments c INNER JOIN [StackExchange.Diy.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Drupal' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Drupal]..Comments c INNER JOIN [StackExchange.Drupal]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                     
Select 'StackExchange.Drupal.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Drupal.Meta]..Comments c INNER JOIN [StackExchange.Drupal.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Dsp' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Dsp]..Comments c INNER JOIN [StackExchange.Dsp]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                              
Select 'StackExchange.Dsp.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Dsp.Meta]..Comments c INNER JOIN [StackExchange.Dsp.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Earthscience' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Earthscience]..Comments c INNER JOIN [StackExchange.Earthscience]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Earthscience.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Earthscience.Meta]..Comments c INNER JOIN [StackExchange.Earthscience.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                    
Select 'StackExchange.Ebooks' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Ebooks]..Comments c INNER JOIN [StackExchange.Ebooks]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                     
Select 'StackExchange.Ebooks.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Ebooks.Meta]..Comments c INNER JOIN [StackExchange.Ebooks.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Economics' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Economics]..Comments c INNER JOIN [StackExchange.Economics]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                            
Select 'StackExchange.Economics.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Economics.Meta]..Comments c INNER JOIN [StackExchange.Economics.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                             
Select 'StackExchange.Electronics' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Electronics]..Comments c INNER JOIN [StackExchange.Electronics]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Electronics.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Electronics.Meta]..Comments c INNER JOIN [StackExchange.Electronics.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                       
Select 'StackExchange.Elementaryos' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Elementaryos]..Comments c INNER JOIN [StackExchange.Elementaryos]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Elementaryos.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Elementaryos.Meta]..Comments c INNER JOIN [StackExchange.Elementaryos.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                    
Select 'StackExchange.Ell' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Ell]..Comments c INNER JOIN [StackExchange.Ell]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                              
Select 'StackExchange.Ell.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Ell.Meta]..Comments c INNER JOIN [StackExchange.Ell.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Emacs' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Emacs]..Comments c INNER JOIN [StackExchange.Emacs]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                        
Select 'StackExchange.Emacs.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Emacs.Meta]..Comments c INNER JOIN [StackExchange.Emacs.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Engineering' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Engineering]..Comments c INNER JOIN [StackExchange.Engineering]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Engineering.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Engineering.Meta]..Comments c INNER JOIN [StackExchange.Engineering.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                       
Select 'StackExchange.English' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.English]..Comments c INNER JOIN [StackExchange.English]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.English.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.English.Meta]..Comments c INNER JOIN [StackExchange.English.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Ethereum' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Ethereum]..Comments c INNER JOIN [StackExchange.Ethereum]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Ethereum.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Ethereum.Meta]..Comments c INNER JOIN [StackExchange.Ethereum.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Expatriates' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Expatriates]..Comments c INNER JOIN [StackExchange.Expatriates]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Expatriates.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Expatriates.Meta]..Comments c INNER JOIN [StackExchange.Expatriates.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                       
Select 'StackExchange.Expressionengine' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Expressionengine]..Comments c INNER JOIN [StackExchange.Expressionengine]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                       
Select 'StackExchange.Expressionengine.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Expressionengine.Meta]..Comments c INNER JOIN [StackExchange.Expressionengine.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL        
Select 'StackExchange.Fitness' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Fitness]..Comments c INNER JOIN [StackExchange.Fitness]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Fitness.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Fitness.Meta]..Comments c INNER JOIN [StackExchange.Fitness.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Freelancing' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Freelancing]..Comments c INNER JOIN [StackExchange.Freelancing]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Freelancing.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Freelancing.Meta]..Comments c INNER JOIN [StackExchange.Freelancing.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                       
Select 'StackExchange.French' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.French]..Comments c INNER JOIN [StackExchange.French]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                     
Select 'StackExchange.French.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.French.Meta]..Comments c INNER JOIN [StackExchange.French.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.GameDev' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.GameDev]..Comments c INNER JOIN [StackExchange.GameDev]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.GameDev.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.GameDev.Meta]..Comments c INNER JOIN [StackExchange.GameDev.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Gaming' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Gaming]..Comments c INNER JOIN [StackExchange.Gaming]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                     
Select 'StackExchange.Gaming.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Gaming.Meta]..Comments c INNER JOIN [StackExchange.Gaming.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Garage' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Garage]..Comments c INNER JOIN [StackExchange.Garage]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                     
Select 'StackExchange.Garage.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Garage.Meta]..Comments c INNER JOIN [StackExchange.Garage.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Gardening' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Gardening]..Comments c INNER JOIN [StackExchange.Gardening]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                            
Select 'StackExchange.Gardening.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Gardening.Meta]..Comments c INNER JOIN [StackExchange.Gardening.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                             
Select 'StackExchange.Genealogy' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Genealogy]..Comments c INNER JOIN [StackExchange.Genealogy]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                            
Select 'StackExchange.Genealogy.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Genealogy.Meta]..Comments c INNER JOIN [StackExchange.Genealogy.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                             
Select 'StackExchange.German' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.German]..Comments c INNER JOIN [StackExchange.German]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                     
Select 'StackExchange.German.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.German.Meta]..Comments c INNER JOIN [StackExchange.German.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Gis' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Gis]..Comments c INNER JOIN [StackExchange.Gis]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                              
Select 'StackExchange.Gis.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Gis.Meta]..Comments c INNER JOIN [StackExchange.Gis.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Graphicdesign' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Graphicdesign]..Comments c INNER JOIN [StackExchange.Graphicdesign]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Graphicdesign.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Graphicdesign.Meta]..Comments c INNER JOIN [StackExchange.Graphicdesign.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                 
Select 'StackExchange.Ham' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Ham]..Comments c INNER JOIN [StackExchange.Ham]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                              
Select 'StackExchange.Ham.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Ham.Meta]..Comments c INNER JOIN [StackExchange.Ham.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Hardwarerecs' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Hardwarerecs]..Comments c INNER JOIN [StackExchange.Hardwarerecs]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Hardwarerecs.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Hardwarerecs.Meta]..Comments c INNER JOIN [StackExchange.Hardwarerecs.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                    
Select 'StackExchange.Health' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Health]..Comments c INNER JOIN [StackExchange.Health]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                     
Select 'StackExchange.Health.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Health.Meta]..Comments c INNER JOIN [StackExchange.Health.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Hermeneutics' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Hermeneutics]..Comments c INNER JOIN [StackExchange.Hermeneutics]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Hermeneutics.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Hermeneutics.Meta]..Comments c INNER JOIN [StackExchange.Hermeneutics.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                    
Select 'StackExchange.Hinduism' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Hinduism]..Comments c INNER JOIN [StackExchange.Hinduism]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Hinduism.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Hinduism.Meta]..Comments c INNER JOIN [StackExchange.Hinduism.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.History' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.History]..Comments c INNER JOIN [StackExchange.History]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.History.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.History.Meta]..Comments c INNER JOIN [StackExchange.History.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Homebrew' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Homebrew]..Comments c INNER JOIN [StackExchange.Homebrew]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Homebrew.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Homebrew.Meta]..Comments c INNER JOIN [StackExchange.Homebrew.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Hsm' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Hsm]..Comments c INNER JOIN [StackExchange.Hsm]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                              
Select 'StackExchange.Hsm.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Hsm.Meta]..Comments c INNER JOIN [StackExchange.Hsm.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Islam' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Islam]..Comments c INNER JOIN [StackExchange.Islam]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                        
Select 'StackExchange.Islam.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Islam.Meta]..Comments c INNER JOIN [StackExchange.Islam.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Italian' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Italian]..Comments c INNER JOIN [StackExchange.Italian]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Italian.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Italian.Meta]..Comments c INNER JOIN [StackExchange.Italian.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Japanese' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Japanese]..Comments c INNER JOIN [StackExchange.Japanese]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Japanese.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Japanese.Meta]..Comments c INNER JOIN [StackExchange.Japanese.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Joomla' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Joomla]..Comments c INNER JOIN [StackExchange.Joomla]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                     
Select 'StackExchange.Joomla.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Joomla.Meta]..Comments c INNER JOIN [StackExchange.Joomla.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Judaism' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Judaism]..Comments c INNER JOIN [StackExchange.Judaism]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Judaism.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Judaism.Meta]..Comments c INNER JOIN [StackExchange.Judaism.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Korean' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Korean]..Comments c INNER JOIN [StackExchange.Korean]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                     
Select 'StackExchange.Korean.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Korean.Meta]..Comments c INNER JOIN [StackExchange.Korean.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Languagelearning' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Languagelearning]..Comments c INNER JOIN [StackExchange.Languagelearning]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                       
Select 'StackExchange.Languagelearning.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Languagelearning.Meta]..Comments c INNER JOIN [StackExchange.Languagelearning.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL        
Select 'StackExchange.Latin' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Latin]..Comments c INNER JOIN [StackExchange.Latin]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                        
Select 'StackExchange.Latin.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Latin.Meta]..Comments c INNER JOIN [StackExchange.Latin.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Law' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Law]..Comments c INNER JOIN [StackExchange.Law]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                              
Select 'StackExchange.Law.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Law.Meta]..Comments c INNER JOIN [StackExchange.Law.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Lifehacks' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Lifehacks]..Comments c INNER JOIN [StackExchange.Lifehacks]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                            
Select 'StackExchange.Lifehacks.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Lifehacks.Meta]..Comments c INNER JOIN [StackExchange.Lifehacks.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                             
Select 'StackExchange.Linguistics' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Linguistics]..Comments c INNER JOIN [StackExchange.Linguistics]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Linguistics.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Linguistics.Meta]..Comments c INNER JOIN [StackExchange.Linguistics.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                       
Select 'StackExchange.Magento' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Magento]..Comments c INNER JOIN [StackExchange.Magento]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Magento.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Magento.Meta]..Comments c INNER JOIN [StackExchange.Magento.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Martialarts' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Martialarts]..Comments c INNER JOIN [StackExchange.Martialarts]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Martialarts.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Martialarts.Meta]..Comments c INNER JOIN [StackExchange.Martialarts.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                       
Select 'StackExchange.Math' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Math]..Comments c INNER JOIN [StackExchange.Math]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                           
Select 'StackExchange.Math.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Math.Meta]..Comments c INNER JOIN [StackExchange.Math.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                            
Select 'StackExchange.Matheducators' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Matheducators]..Comments c INNER JOIN [StackExchange.Matheducators]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Matheducators.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Matheducators.Meta]..Comments c INNER JOIN [StackExchange.Matheducators.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                 
Select 'StackExchange.Mathematica' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Mathematica]..Comments c INNER JOIN [StackExchange.Mathematica]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Mathematica.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Mathematica.Meta]..Comments c INNER JOIN [StackExchange.Mathematica.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                       
Select 'StackExchange.Mathoverflow' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Mathoverflow]..Comments c INNER JOIN [StackExchange.Mathoverflow]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Mathoverflow.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Mathoverflow.Meta]..Comments c INNER JOIN [StackExchange.Mathoverflow.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                    
Select 'StackExchange.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Meta]..Comments c INNER JOIN [StackExchange.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                           
Select 'StackExchange.Moderators' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Moderators]..Comments c INNER JOIN [StackExchange.Moderators]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Moderators.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Moderators.Meta]..Comments c INNER JOIN [StackExchange.Moderators.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                          
Select 'StackExchange.Monero' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Monero]..Comments c INNER JOIN [StackExchange.Monero]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                     
Select 'StackExchange.Monero.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Monero.Meta]..Comments c INNER JOIN [StackExchange.Monero.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Money' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Money]..Comments c INNER JOIN [StackExchange.Money]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                        
Select 'StackExchange.Money.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Money.Meta]..Comments c INNER JOIN [StackExchange.Money.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Movies' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Movies]..Comments c INNER JOIN [StackExchange.Movies]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                     
Select 'StackExchange.Movies.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Movies.Meta]..Comments c INNER JOIN [StackExchange.Movies.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Music' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Music]..Comments c INNER JOIN [StackExchange.Music]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                        
Select 'StackExchange.Music.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Music.Meta]..Comments c INNER JOIN [StackExchange.Music.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Musicfans' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Musicfans]..Comments c INNER JOIN [StackExchange.Musicfans]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                            
Select 'StackExchange.Musicfans.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Musicfans.Meta]..Comments c INNER JOIN [StackExchange.Musicfans.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                             
Select 'StackExchange.Mythology' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Mythology]..Comments c INNER JOIN [StackExchange.Mythology]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                            
Select 'StackExchange.Mythology.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Mythology.Meta]..Comments c INNER JOIN [StackExchange.Mythology.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                             
Select 'StackExchange.Networkengineering' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Networkengineering]..Comments c INNER JOIN [StackExchange.Networkengineering]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                 
Select 'StackExchange.Networkengineering.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Networkengineering.Meta]..Comments c INNER JOIN [StackExchange.Networkengineering.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL  
Select 'StackExchange.Opendata' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Opendata]..Comments c INNER JOIN [StackExchange.Opendata]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Opendata.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Opendata.Meta]..Comments c INNER JOIN [StackExchange.Opendata.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Opensource' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Opensource]..Comments c INNER JOIN [StackExchange.Opensource]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Opensource.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Opensource.Meta]..Comments c INNER JOIN [StackExchange.Opensource.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                          
Select 'StackExchange.Outdoors' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Outdoors]..Comments c INNER JOIN [StackExchange.Outdoors]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Outdoors.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Outdoors.Meta]..Comments c INNER JOIN [StackExchange.Outdoors.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Parenting' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Parenting]..Comments c INNER JOIN [StackExchange.Parenting]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                            
Select 'StackExchange.Parenting.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Parenting.Meta]..Comments c INNER JOIN [StackExchange.Parenting.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                             
Select 'StackExchange.Patents' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Patents]..Comments c INNER JOIN [StackExchange.Patents]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Patents.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Patents.Meta]..Comments c INNER JOIN [StackExchange.Patents.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Pets' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Pets]..Comments c INNER JOIN [StackExchange.Pets]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                           
Select 'StackExchange.Pets.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Pets.Meta]..Comments c INNER JOIN [StackExchange.Pets.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                            
Select 'StackExchange.Philosophy' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Philosophy]..Comments c INNER JOIN [StackExchange.Philosophy]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Philosophy.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Philosophy.Meta]..Comments c INNER JOIN [StackExchange.Philosophy.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                          
Select 'StackExchange.Photography' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Photography]..Comments c INNER JOIN [StackExchange.Photography]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Photography.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Photography.Meta]..Comments c INNER JOIN [StackExchange.Photography.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                       
Select 'StackExchange.Physics' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Physics]..Comments c INNER JOIN [StackExchange.Physics]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Physics.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Physics.Meta]..Comments c INNER JOIN [StackExchange.Physics.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Pm' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Pm]..Comments c INNER JOIN [StackExchange.Pm]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                                 
Select 'StackExchange.Pm.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Pm.Meta]..Comments c INNER JOIN [StackExchange.Pm.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Poker' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Poker]..Comments c INNER JOIN [StackExchange.Poker]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                        
Select 'StackExchange.Poker.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Poker.Meta]..Comments c INNER JOIN [StackExchange.Poker.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Politics' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Politics]..Comments c INNER JOIN [StackExchange.Politics]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Politics.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Politics.Meta]..Comments c INNER JOIN [StackExchange.Politics.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Portuguese' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Portuguese]..Comments c INNER JOIN [StackExchange.Portuguese]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Portuguese.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Portuguese.Meta]..Comments c INNER JOIN [StackExchange.Portuguese.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                          
Select 'StackExchange.Programmers' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Programmers]..Comments c INNER JOIN [StackExchange.Programmers]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Programmers.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Programmers.Meta]..Comments c INNER JOIN [StackExchange.Programmers.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                       
Select 'StackExchange.Puzzling' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Puzzling]..Comments c INNER JOIN [StackExchange.Puzzling]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Puzzling.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Puzzling.Meta]..Comments c INNER JOIN [StackExchange.Puzzling.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Quant' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Quant]..Comments c INNER JOIN [StackExchange.Quant]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                        
Select 'StackExchange.Quant.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Quant.Meta]..Comments c INNER JOIN [StackExchange.Quant.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Raspberrypi' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Raspberrypi]..Comments c INNER JOIN [StackExchange.Raspberrypi]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Raspberrypi.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Raspberrypi.Meta]..Comments c INNER JOIN [StackExchange.Raspberrypi.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                       
Select 'StackExchange.Retrocomputing' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Retrocomputing]..Comments c INNER JOIN [StackExchange.Retrocomputing]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                             
Select 'StackExchange.Retrocomputing.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Retrocomputing.Meta]..Comments c INNER JOIN [StackExchange.Retrocomputing.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL              
Select 'StackExchange.Reverseengineering' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Reverseengineering]..Comments c INNER JOIN [StackExchange.Reverseengineering]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                 
Select 'StackExchange.Reverseengineering.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Reverseengineering.Meta]..Comments c INNER JOIN [StackExchange.Reverseengineering.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL  
Select 'StackExchange.Robotics' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Robotics]..Comments c INNER JOIN [StackExchange.Robotics]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Robotics.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Robotics.Meta]..Comments c INNER JOIN [StackExchange.Robotics.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Rpg' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Rpg]..Comments c INNER JOIN [StackExchange.Rpg]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                              
Select 'StackExchange.Rpg.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Rpg.Meta]..Comments c INNER JOIN [StackExchange.Rpg.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Rus' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Rus]..Comments c INNER JOIN [StackExchange.Rus]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                              
Select 'StackExchange.Rus.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Rus.Meta]..Comments c INNER JOIN [StackExchange.Rus.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Russian' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Russian]..Comments c INNER JOIN [StackExchange.Russian]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Russian.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Russian.Meta]..Comments c INNER JOIN [StackExchange.Russian.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Salesforce' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Salesforce]..Comments c INNER JOIN [StackExchange.Salesforce]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Salesforce.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Salesforce.Meta]..Comments c INNER JOIN [StackExchange.Salesforce.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                          
Select 'StackExchange.Scicomp' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Scicomp]..Comments c INNER JOIN [StackExchange.Scicomp]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Scicomp.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Scicomp.Meta]..Comments c INNER JOIN [StackExchange.Scicomp.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Scifi' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Scifi]..Comments c INNER JOIN [StackExchange.Scifi]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                        
Select 'StackExchange.Scifi.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Scifi.Meta]..Comments c INNER JOIN [StackExchange.Scifi.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Security' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Security]..Comments c INNER JOIN [StackExchange.Security]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Security.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Security.Meta]..Comments c INNER JOIN [StackExchange.Security.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Sharepoint' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Sharepoint]..Comments c INNER JOIN [StackExchange.Sharepoint]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Sharepoint.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Sharepoint.Meta]..Comments c INNER JOIN [StackExchange.Sharepoint.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                          
Select 'StackExchange.Skeptics' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Skeptics]..Comments c INNER JOIN [StackExchange.Skeptics]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Skeptics.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Skeptics.Meta]..Comments c INNER JOIN [StackExchange.Skeptics.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Softwarerecs' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Softwarerecs]..Comments c INNER JOIN [StackExchange.Softwarerecs]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Softwarerecs.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Softwarerecs.Meta]..Comments c INNER JOIN [StackExchange.Softwarerecs.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                    
Select 'StackExchange.Sound' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Sound]..Comments c INNER JOIN [StackExchange.Sound]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                        
Select 'StackExchange.Sound.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Sound.Meta]..Comments c INNER JOIN [StackExchange.Sound.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Space' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Space]..Comments c INNER JOIN [StackExchange.Space]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                        
Select 'StackExchange.Space.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Space.Meta]..Comments c INNER JOIN [StackExchange.Space.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Spanish' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Spanish]..Comments c INNER JOIN [StackExchange.Spanish]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Spanish.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Spanish.Meta]..Comments c INNER JOIN [StackExchange.Spanish.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Sports' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Sports]..Comments c INNER JOIN [StackExchange.Sports]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                     
Select 'StackExchange.Sports.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Sports.Meta]..Comments c INNER JOIN [StackExchange.Sports.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Sqa' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Sqa]..Comments c INNER JOIN [StackExchange.Sqa]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                              
Select 'StackExchange.Sqa.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Sqa.Meta]..Comments c INNER JOIN [StackExchange.Sqa.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Stats' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Stats]..Comments c INNER JOIN [StackExchange.Stats]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                        
Select 'StackExchange.Stats.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Stats.Meta]..Comments c INNER JOIN [StackExchange.Stats.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Sustainability' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Sustainability]..Comments c INNER JOIN [StackExchange.Sustainability]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                             
Select 'StackExchange.Sustainability.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Sustainability.Meta]..Comments c INNER JOIN [StackExchange.Sustainability.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL              
Select 'StackExchange.Tex' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Tex]..Comments c INNER JOIN [StackExchange.Tex]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                              
Select 'StackExchange.Tex.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Tex.Meta]..Comments c INNER JOIN [StackExchange.Tex.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Tor' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Tor]..Comments c INNER JOIN [StackExchange.Tor]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                              
Select 'StackExchange.Tor.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Tor.Meta]..Comments c INNER JOIN [StackExchange.Tor.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                               
Select 'StackExchange.Travel' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Travel]..Comments c INNER JOIN [StackExchange.Travel]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                     
Select 'StackExchange.Travel.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Travel.Meta]..Comments c INNER JOIN [StackExchange.Travel.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Tridion' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Tridion]..Comments c INNER JOIN [StackExchange.Tridion]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Tridion.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Tridion.Meta]..Comments c INNER JOIN [StackExchange.Tridion.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Ubuntu' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Ubuntu]..Comments c INNER JOIN [StackExchange.Ubuntu]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                     
Select 'StackExchange.Ubuntu.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Ubuntu.Meta]..Comments c INNER JOIN [StackExchange.Ubuntu.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Unix' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Unix]..Comments c INNER JOIN [StackExchange.Unix]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                           
Select 'StackExchange.Unix.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Unix.Meta]..Comments c INNER JOIN [StackExchange.Unix.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                            
Select 'StackExchange.Ux' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Ux]..Comments c INNER JOIN [StackExchange.Ux]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                                 
Select 'StackExchange.Ux.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Ux.Meta]..Comments c INNER JOIN [StackExchange.Ux.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Vi' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Vi]..Comments c INNER JOIN [StackExchange.Vi]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                                 
Select 'StackExchange.Vi.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Vi.Meta]..Comments c INNER JOIN [StackExchange.Vi.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.WebApps' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.WebApps]..Comments c INNER JOIN [StackExchange.WebApps]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.WebApps.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.WebApps.Meta]..Comments c INNER JOIN [StackExchange.WebApps.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Webmasters' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Webmasters]..Comments c INNER JOIN [StackExchange.Webmasters]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                         
Select 'StackExchange.Webmasters.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Webmasters.Meta]..Comments c INNER JOIN [StackExchange.Webmasters.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                          
Select 'StackExchange.Windowsphone' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Windowsphone]..Comments c INNER JOIN [StackExchange.Windowsphone]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackExchange.Windowsphone.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Windowsphone.Meta]..Comments c INNER JOIN [StackExchange.Windowsphone.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                    
Select 'StackExchange.Woodworking' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Woodworking]..Comments c INNER JOIN [StackExchange.Woodworking]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                      
Select 'StackExchange.Woodworking.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Woodworking.Meta]..Comments c INNER JOIN [StackExchange.Woodworking.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                       
Select 'StackExchange.Wordpress' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Wordpress]..Comments c INNER JOIN [StackExchange.Wordpress]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                            
Select 'StackExchange.Wordpress.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Wordpress.Meta]..Comments c INNER JOIN [StackExchange.Wordpress.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                             
Select 'StackExchange.Workplace' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Workplace]..Comments c INNER JOIN [StackExchange.Workplace]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                            
Select 'StackExchange.Workplace.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Workplace.Meta]..Comments c INNER JOIN [StackExchange.Workplace.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                             
Select 'StackExchange.Worldbuilding' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Worldbuilding]..Comments c INNER JOIN [StackExchange.Worldbuilding]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                
Select 'StackExchange.Worldbuilding.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Worldbuilding.Meta]..Comments c INNER JOIN [StackExchange.Worldbuilding.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                 
Select 'StackExchange.Writers' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Writers]..Comments c INNER JOIN [StackExchange.Writers]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackExchange.Writers.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackExchange.Writers.Meta]..Comments c INNER JOIN [StackExchange.Writers.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                   
Select 'StackOverflow' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackOverflow]..Comments c INNER JOIN [StackOverflow]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                                          
Select 'StackOverflow.Br' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackOverflow.Br]..Comments c INNER JOIN [StackOverflow.Br]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                                 
Select 'StackOverflow.Br.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackOverflow.Br.Meta]..Comments c INNER JOIN [StackOverflow.Br.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackOverflow.Es' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackOverflow.Es]..Comments c INNER JOIN [StackOverflow.Es]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                                 
Select 'StackOverflow.Es.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackOverflow.Es.Meta]..Comments c INNER JOIN [StackOverflow.Es.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackOverflow.Ja' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackOverflow.Ja]..Comments c INNER JOIN [StackOverflow.Ja]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                                 
Select 'StackOverflow.Ja.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackOverflow.Ja.Meta]..Comments c INNER JOIN [StackOverflow.Ja.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'StackOverflow.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackOverflow.Meta]..Comments c INNER JOIN [StackOverflow.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                           
Select 'StackOverflow.Ru' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackOverflow.Ru]..Comments c INNER JOIN [StackOverflow.Ru]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                                 
Select 'StackOverflow.Ru.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [StackOverflow.Ru.Meta]..Comments c INNER JOIN [StackOverflow.Ru.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                  
Select 'SuperUser' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [SuperUser]..Comments c INNER JOIN [SuperUser]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##  UNION ALL                                                                                      
Select 'SuperUser.Meta' As [DatabaseName],   c.Score,   c.Text,   c.CreationDate FROM   [SuperUser.Meta]..Comments c INNER JOIN [SuperUser.Meta]..Users u ON c.UserId = u.Id WHERE   u.AccountId = ##AccountId##       

ORDER BY Score DESC, CreationDate ASC

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results