SQL Server Reporting Services (SSRS) – How to union or join tables from different databases on the same server

This example applies to SSRS 2008

SELECT a.datafield1 As Col1, a.datafield2 As Col2, b.datafield6 As Col3
LEFT OUTER JOIN databaseB.dbo.Table4 b on b.datafield6 = a.datafield1
FROM databaseA.dbo.Table5 a 

UNION 

SELECT a.datafield7 As Col1, a.datafield8 As Col2, b.datafield12 As Col3
LEFT 

Microsoft Visual Studio – How to Strip RTF Data

Dim mRTFData As String = '{rtf1ansiansicpg1252deff0deflang1033{fonttbl{f0fromanfcharset0 Times New Roman;}{f1fnilfcharset0 Arial;}}
 viewkind4uc1pardsb100sa100f0fs24 BLAH BLAH BLAH rdblquoteparparpardf1par}'
 Dim mStrippedofRTFData As String = String.Empty

If mRTFData.Length > 0 Then
   If (mRTFData IsNot Nothing) AndAlso _
      (mRTFData.Trim().StartsWith("{rtf")) Then
      Using rtfTemp As New System.Windows.Forms.RichTextBox()
           rtfTemp.Rtf