Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Save your document and the query has now been updated permanently.

 

 

SynergyOneFinance

Select the Data tab > Connections

...

  • Below example shows three as there are 3 tabs in my spreadsheet connecting to three separate databases

Image RemovedImage Added

Select the Definition tab

Image RemovedImage Added

Update

  • DSN = Synergetic
  • DATABASE = {your database name}

Press OK button

Image RemovedImage Added

You may be asked to log in, depending if you use database or windows authentication

...

You should receive a similar error message (this is because the query is still attempting to connect to the original database name, e.g. SynergyOneSynergyOneFinance)

Press the OK button

Image RemovedImage Added

As previous, ensure you have the correct connection selected

...

Replace the Database name SynergyOne SynergyOneFinance to your database name as noted previously (keeping the dbo for the non-finance connection

Replace the dbo to finance (this is the schema name that the old SynergyOneFinance objects belong to)

Select OK button

Image Added

Re-enter your password

Query complete

Refresh and test your results

Second Process - Edit Query

Select the Edit Query button

Image Added

You will  not see the results displayed as yet

Select the SQL button

Image Added

Remove all old database (SynergyOneFinance) and schema (dbo) names

Image Added

Image Added

Press OK button

Your query should now display graphically (unless it is too complex for MSQuery to display)

Selecting the SQL button again will show the replaced database and schema names

Image Added

Select the Return Data button

Image Added

Note that the Command text has been updated automatically

Image Added

Press the OK button (you may be required to enter your password again)

Save your document and the query has now been updated permanently.

Extra Finance Databases

NOTE:

  • Extra finance databases can be called many numerous things (e.g. Foundation, Executive, Swimschool) for the interest of this documentation we will call it SynergyOneExtraFinance
  • Extra finance databases require the user to note the schema name and be careful when entering as you could easily point to the regular finance database
  • Where stated below, do not user extrafinance as your schema name unless you have explicitly used this name

Select the Data tab > Connections

Image Added

Select the relevant query > Properties button

  • Below example shows three as there are 3 tabs in my spreadsheet connecting to three separate databases

Image Added

Select the Definition tab

Image Added

Update

  • DSN = Synergetic
  • DATABASE = {your database name}

Press OK button

Image Added

You may be asked to log in, depending if you use database or windows authentication

Image Added

You should receive a similar error message (this is because the query is still attempting to connect to the original database name, e.g. SynergyOneExtraFinance)

Press the OK button

Image Added

As previous, ensure you have the correct connection selected

Select the Properties button > Definition tab

There are two methods to this process

First Process - Directly modify the Command Text after the FROM in the query

Replace the Database name SynergyOneExtraFinance to your database name as noted previously

Replace the dbo to extrafinance (this is the schema name that the old SynergyOneExtraFinance objects belong to)

Select OK button

Image RemovedImage Added

Re-enter your password

...

Refresh and test your results

Second Process - Edit Query

Select the Edit Query button

Image RemovedImage Added

You will  not see the results displayed as yet

Select the SQL button

Image RemovedImage Added

Remove all old database (SynergyOneSynergyOneExtraFinance) and schema (dbo) names

Image RemovedImage Added

Image RemovedImage Added

Press OK button

...

Selecting the SQL button again will show the replaced database and schema namesImage Removed

NOTE: If your SQL Statement has replaced the dbo with finance (and not your extra finance database schema), then you will need to replace this

CORRECT: Image Added

INCORRECT: Image Added

Select the Return Data button

Image RemovedImage Added

Note that the Command text has been updated automatically

Image RemovedImage Added

Press the OK button (you may be required to enter your password again)

...