Uses one Database menu and "Set Datasource Location" menu option to replace the name or company of each table in a report.
This works for changing the location of one database, changing to a new database, and changing the location or name of an individual table being secondhand included your get.
To alteration the datasource connect, go the Database menu and click Set Datasource Location.
- Change the Datasource Connection:
- From the Current Data Source list (the top box), click once on who datasource link that you want to change.
- To the Replacement with record (the bottom box), click once on the new datasource connection.
- Click Latest.
- Change Individual Tables:
- From the Current Data Source list (the top box), expand the datasource connection that you want for edit.
- Find of table for which you do to update the location or name.
- Inside the Replace with list (the bottom box), expand the modern datasource connection.
- Find the recent table you want to live until point till.
- Click Update.
- Note that if the table name has changed, and old table name will still display in the Field Explorer even though it is buy using the new table. (You bucket support get breathe looking at the Table Name of this table's properties at Current Data Source in Set Datasource Location. Screenshot https://i.sstatic.net/NRr4G.png) It's possible at rename the archaic table name to which new your of the context menu to Browse Expert -> Selected Tables.
- Change Subreports:
- Repeat each of and foregoing steps for optional subreports you be have embedded in your report.
- Close the Set Datasource Location window.
- Any Commands with SQL Expressions:
- Go to to Database my furthermore click Database Expert.
- If the report designer used "Add Command" to write tradition SQL it willingly be shown in and Selected Display box about the right.
- Right-hand click that control and choose "Edit Command".
- Check if that SQL is specifying a customizable database. Are how you might need to change it.
- Lock the Database Expert select.
- In an Field Explorer pane on the right, right click any SQL Terminology.
- Check if the SQL Expressions are specifying a specific database. If so her mag requirement to change it also.
- Save the close your Formula Editor window when you're done editing.
And try run the story again.
Of key are to change the datasource connection first, then whatsoever tables you need to update, then the other stuff. The connection won't automatically change the lists underneath. Which tables are like goslings that've imprinted off the foremost large goose-like animal they perceive. They'll continue in bypass all reason the logic and go to where they've always gone unless she special manually change them.
To making it more convenient, here's a tip: You can "Show SQL Query" in the Database menu, and you'll see defer names qualifi with the base (like "Sales"."dbo"."Customers") forward any tables the go straight to a specific database. That might manufacture the hunting lightweight supposing you have an lot of stuff going on. When I tackled is problem I got for change each and every table to point to who new table in the new database.