SQL Builder Wizard
The SQL Builder Wizard is one way to connect a report created in the Report Designer to a TMS database. To access the SQL Builder Wizard, you have to be in the Report Designer.
-
In the left pane, click the Reports tab and select Add New Report.
- Click the Build connection string button.
-
Select or enter a server name.
- Enable the Use a specific user name and password button. Type in the default TMS user name and password: TMSREPORT and 4Rivers, respectively. The password is case-sensitive.
- Check Allow saving password.
-
Select the database on the server.
- Click the Test Connection button to test the connection to the TMS database. A pop-up window opens stating: Test Connection succeeded. Click OK.
- Click OK again.
- Make sure that the SQL Statement option button is selected. Click the Build SQL Statement button.
- The SQL Builder Wizard window opens. Click the button to connect to the TMS database.
- In the Data Link Properties screen, click the Provider tab. Verify that Microsoft OLE DB Provider for SQL Server is selected.
- Select Views within that database. We use the V views, not the VTBLs.
- If you were building a work order report, you would select from vWorkOrders. Drag and drop fields from the view into the right pane (selected column) of the SQL Builder Wizard.
- When you are finished, click OK. You are returned to Step 1: Select the Data Source for the new report. Notice that the SQL statement is built.
-
Once you've made your connections using the SQL Builder Wizard, click the Next button to continue with the Report Wizard.