FAQ/many-to-many-database-join.md
... ...
@@ -73,7 +73,7 @@ public override void PreExecuteReportSet(ReportSet reportSet) {
73 73
base.PreExecuteReportSet(reportSet);
74 74
oldDriver = AdHocContext.Driver;
75 75
AdHocContext.Driver = new MSSQLDriver(AdHocSettings.SqlServerConnectionString); //Set the specific type of driver we were using before
76
- AdHocSettings.VisibleDataSources = new string[] { "[dbo].[Orders]", [dbo].[Suppliers]", "[dbo].[testcon]" }; //testcon is the name of the middle table we want to join with
76
+ AdHocSettings.VisibleDataSources = new string[] { "[dbo].[Orders]", "[dbo].[Suppliers]", "[dbo].[testcon]" }; //testcon is the name of the middle table we want to join with
77 77
AdHocContext.Driver.AddConstraint("[dbo].[Orders].[OrderID]", "[dbo].[testcon].[ordernum]");
78 78
AdHocContext.Driver.AddConstraint("[dbo].[Suppliers].[SupplierID]", "[dbo].[testcon].[supplier]"); //Add the correct constraints to the driver
79 79
if(reportSet.JoinedTables.Count > 0) //check if we have selected multiple tables
... ...
@@ -119,7 +119,7 @@ Public Overrides Sub PreExecuteReportSet(ByVal reportSet As ReportSet)
119 119
MyBase.PreExecuteReportSet(reportSet)
120 120
oldDriver = AdHocContext.Driver
121 121
AdHocContext.Driver = new MSSQLDriver(AdHocSettings.SqlServerConnectionString) 'Set the specific type of driver we were using before
122
- AdHocSettings.VisibleDataSources = New string() { "[dbo].[Orders]", [dbo].[Suppliers]", "[dbo].[testcon]" } 'testcon is the name of the middle table we want to join with
122
+ AdHocSettings.VisibleDataSources = New string() { "[dbo].[Orders]", "[dbo].[Suppliers]", "[dbo].[testcon]" } 'testcon is the name of the middle table we want to join with
123 123
AdHocContext.Driver.AddConstraint("[dbo].[Orders].[OrderID]", "[dbo].[testcon].[ordernum]")
124 124
AdHocContext.Driver.AddConstraint("[dbo].[Suppliers].[SupplierID]", "[dbo].[testcon].[supplier]") 'Add the correct constraints to the driver
125 125
If (reportSet.JoinedTables.Count > 0) Then