Database and Company Administration Guide
Database and Company Administration Guide
December 2020
This is a publication of Sage Software, Inc.
© 2020 The Sage Group plc or its licensors. All rights reserved. Sage, Sage logos, and Sage product
and service names mentioned herein are the trademarks of The Sage Group plc or its licensors. All
other trademarks are the property of their respective owners.
Contents are now available from the Bookmarks panel, which you can access quickly from
anywhere in this PDF. Bookmarks are displayed automatically when you open the PDF from a
download location on your computer.
If you are viewing this guide in a web browser, you might need to turn on the bookmarks from the
toolbar in the PDF, depending on your browser. (For example, in Microsoft Edge, hover over the
top of the page to display the toolbar, and then click the Table of contents icon in the top left
corner. In the Chrome browser, you would click the Bookmarks icon in the top right corner.)
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 i
Introduction
The Database Administration tool is intended for system and company administrators. You use it to set up
and maintain your company databases and to manage communications with your Microsoft SQL Server
instance.
If you have used earlier versions of Sage 100 Contractor, several of these tasks will be familiar to you. For
example, Database Administration includes utilities for creating and deleting a company, backing up and
restoring company files, and archiving company data that you used in previous Sage 100 Contractor
versions.
Important! Use Database Administration, rather than SQL Management Studio®, to perform the
database administration tasks listed below, even if you are an experienced SQL Server user. Besides
handling all the database tasks that you are likely to perform in a typical Sage 100 Contractor system,
Database Administration was designed to optimize your data for Sage 100 Contractor, for example,
by keeping related data in expected locations and creating backups automatically before performing
certain critical processes. In the rare event that you need to use SQL Management Studio® to
perform a task that is not provided in Database Administration, you should contact Customer Support
for assistance.
Database Administration includes the following database and company management utilities:
l Create Company Based on Existing and Create Company create new Microsoft SQL Server
databases.
l Rename Company and Delete Companyare convenient utilities when working with existing
companies.
l Deploy Sample Company helps you install and refresh the sample data that comes with Sage 100
Contractor.
l Tune Up Company Databases performs various maintenance tasks to keep your database
functioning efficiently.
l Back Up Company Databases enables you to back up your data "on demand," whenever needed.
l Restore Company from Backup restores a selected backed-up copy of your database.
l Upgrade Company Databases enables you to upgrade your databases smoothly from an earlier
version of Sage 100 Contractor (SQL).
l Archive Company Data utilities enable you to archive data for your oldest fiscal year and you Payroll
data.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 1
l Migrate Company Data and Migrate Custom Reports transfers your version 19.8 company data and
custom reports to a new location for Microsoft SQL Server. Migrated files are located in shared
folders under C:\Sage100Con\Company\[Company Name], organized using a folder structure
similar to earlier versions.
l Schedule Nightly Maintenance utilities enable you to schedule backup and maintenance operations
for times when other users are not logged into the system. You can also select the number of
consecutive backups to keep.
l Company Admins/SQL Logins utilities enable you to set up or delete logins to the SQL Server
database, and to designate a user as a company administrator for a specified Sage 100 Contractor
company.
l Server Management tools enable you to control the SQL Server instances you use with Sage 100
Contractor easily and efficiently. You can create a new instance on your computer, move companies
to the new instance, and remove an instance you no longer need.
l Advanced Settings lets you specify how long to keep history about database changes for each
company, including details about changed records, such as the date and user ID of the employee
made the change. Details older than the retention period you specify are cleared during nightly
maintenance. (This history is maintained in separate audit tables, which you can query using SQL
Server Management Studio.)
l The Toolbox provides a variety of troubleshooting tools to help you track changes in your database,
and to diagnose and fix certain types of problems.
l Advanced SQL Server Settings includes convenient, sophisticated access and memory
management controls for your SQL database.
The Database and Company Administration Guide includes detailed information about these utilities and
how to use them.
l The names of screens, windows, fields, and other features displayed by the software are shown in
bold type.
l Information you enter into the software is in bold type, as in the following example:
Enter Miscellaneous in the Amount Type box.
l Names of keys are shown in capitals; for example, ENTER, TAB. A plus sign (+) between two key
names indicates that you should press both keys at the same time; for example, SHIFT + TAB.
l The names of buttons you can click with your mouse are enclosed in bold type; for example, [OK]
and [Post].
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 2
Sage 100 Contractor data folders
When you are working locally on the server computer, the Sage 100 Contractor folders you see are
presented differently than when you connect to the server from a workstation. When discussing the
location of Sage 100 Contractor files and folders with other users, administrators should keep in mind that,
although you are viewing the same underlying data, users connecting to the database through Sage 100
Contractor have a different view of the data than server administrators.
When you are using Database Administration directly on the server computer, you have access to folders
on the server as you would on any local machine. You can navigate using the local folder structure
described under "Local folder structure (database administrators)" in the table below.
Files and folders for the user's private [Local drive]:\Sage100Con\Common\User Data\[Windows
reports, forms, user maps, dictionary, user name]
printer settings, and so on
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 3
Folder Local folder structure
contents (database administrators)
Files and folders for the user's private [Server name]\Common\User Data\[Windows user name]
reports, forms, user maps, dictionary,
printer settings, and so on
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 4
Folder Server folder structure
contents (clients connecting to the server)
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 5
Chapter 1: Connecting to SQL Server
When you launch Database Administration, the first window that appears is Connect to SQL Server.
In this window, you select the SQL Server instance where your databases are located. Depending on the
authentication method SQL Server uses to verify credentials for this instance, you may also need to enter
your SQL login and password.
After you enter the required information, and then click [Connect], you can use Database Administration to
perform a variety of administrative and database maintenance tasks for all the companies for which you
have access.
If you can see the shared network drive in the list, you have access to the databases located on that drive.
If you do not see the drive where the company is located, consider the following possibilities:
l Have you lost your network connection? If you have, you cannot access network drives or the
companies on that drive.
l Has the server lost its network access or crashed? If so, you can access the server and the company
after rebooting.
l Has the company been moved to a different computer and drive? If so, you need to map to the
network drive in its new location.
With Windows Authentication, you not need to enter a user name and password, providing you signed into
Windows using the same credentials as those entered for you in the SQL Server database. Database
Administration authenticates the user name and password you entered when signing into Windows.
With SQL Server Authentication, you must enter your SQL Server login and password.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 6
Chapter 2: Adding and Deleting Companies
The Add / Delete Companies utilities enable you to create SQL databases easily for each company for
which you keep books, and to rename and delete existing company databases efficiently.
There is also a utility for deploying the Sample Company that comes with Sage 100 Contractor, and
redeploying it whenever you need to refresh the sample data.
The Add / Delete Companies utilities enable you to create SQL databases easily for each company for
which you keep books.
Note: Sage 100 Contractor handles all aspects of creating, setting up, and administering your
company database in Microsoft SQL Server. You do not need to learn to use separate database
management software to take advantage of the benefits of an up-to-date and secure database
system.
There are two ways to create a new company. You can either:
l Create a blank new company "from scratch" using the Create Company utility.
For more information, see "About creating a company containing no existing company information"
(page 9).
l Create a new company that uses some of the same data as an existing company (such as lists of
clients, employees, accounts, cost codes, and external files, such as Takeoff grid files, that have no
job references).
You use the Create Company Based on Existing utility to create a company based on an existing
one.
For more information, see "About creating a company based on an existing company " (page 8).
Each new company requires a minimum of 50 megabytes of hard disk space, and as you enter information
for each company, it requires more space. The number of company folders you can retain on your hard
disk is only limited by the amount of available hard disk space.
You can create a company database on any local or network drive. However, your network administrator
must give you Write access to the selected drive first.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 7
By storing each company’s information in a separate folder, you can back up and restore company
information.
Important! You cannot create a company with the following characters in the company name: :?/ \ |@
.#$%^ &()
l The Create Company Based on Existing utility populates the new company database with select
information from the existing company. Transactions are not transferred to the new company.
l The new company's default posting period is set to the same posting period as the existing
company. If necessary, you can change the default posting period for the new company using the
Change Period feature in the Sage 100 Contractor 1-6 Period/Fiscal Year Management window.
Note: Do not use this feature to create backup copies of your data. Sage 100 Contractor provides a
separate, convenient method to back up company data on a regular basis. For more information, see
"Backing Up a Company Database" (page 18).
l Determine whether an existing company is a good match for your new company.
l Make sure that you have exclusive access to the existing company database. You can create a new
company from an existing company only if you have exclusive access to the database.
l Make sure you have sufficient hard disk space to create the new company (at least 50 megabytes to
start, with space to grow).
l Make sure your network administrator has given you Write access to the selected drive.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 8
Type Includes, but not limited to
Accounts
Employees
Cost Codes
Parts
Vendors
After creating the new company, you need to enter the following information using windows in Sage 100
Contractor:
l Enter new company information on the 7-1 Company Information window. You will find it helpful to
have the following information on hand:
l Complete company address
l License number
l Federal tax identification number
l State tax identification number
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 9
l Business Number
l Canada Revenue Agency Program Accounts
l Resale number
l Telephone and fax numbers
l Email address
l Direct deposit information, which is the account number, routing number, and the account
type.
l Use the 1-8 General Ledger Setup window in Sage 100 Contractor to set up your accounting
structure, fiscal year date, current period, sales tax setup, and inventory valuation method (if you
have the Inventory Add-on Module).
l Make sure that you have exclusive access to the existing company database. You can create a new
company from an existing company only if you have exclusive access to the database.
l Make sure you have sufficient hard disk space to create the new company (at least 50 megabytes
to start, with space to grow).
l Make sure your network administrator has given you Write access to the selected drive.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 10
5. Click [Create Company].
A status message in the lower left corner of the tab displays the progress of company creation.
Note: Setting up new blank companies is a time-consuming process. If you have an existing
company that has the same structure and uses the same features as the one you want to create,
consider using the Create Company Based on Existing utility, which can save you a lot of time and
effort.
A status message in the lower left corner of the tab displays the progress of company creation.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 11
After creating a new company
l Enter new company information on the 7-1 Company Information window Sage 100 Contractor.
l Use the 1-8 General Ledger Setup window in Sage 100 Contractor to set up your accounting
structure, fiscal year date, current period, sales tax setup, and inventory valuation method (if you
have the Inventory Add-on Module).
On the Rename Company tab, you simply select the company you want to rename, enter the new name,
and then click the [Rename Company] button.
The program creates a backup copy of the existing company before renaming it.
When renaming a company, you can also change the nightly maintenance schedule or the number of
backups to keep for the company.
Renaming a company
If your company, or one of the companies you manage, changes the name under which it does business,
you probably want to change the name of the company in your Sage 100 Contractor program. Renaming a
company using Database Administration for Sage 100 Contractor is a very easy, straightforward process.
A message appears asking whether you are sure you want to rename the selected company.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 12
The program creates a backup copy of the existing company before renaming it.
Deleting a Company
You use the Delete Company tab to delete a selected company.
A warning message asks whether you are sure you want to delete the selected company.
4. If you are sure you want to delete the company, click [Yes].
Note: We highly recommend that you deploy the Sample Company data. While taking little space on
your hard disk, Sample Company lets you and other users practice using Sage 100 Contractor without
any risk to your own company data. Sage 100 Contractor master trainers use Sample Company
extensively during Sage 100 Contractor training classes, and in many online and recorded classes.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 13
Sage 100 Contractor.
When you deploy Sample Company, you are added as a company administrator to the list of Sample
Company users in Sage 100 Contractor, along with a set of sample users. For more information, see
"Sample user names and passwords" (page 14).
When you redeploy Sample Company, any users that have been added to Sample Company in Sage 100
Contractor are retained.
For steps on deploying Sample Company, see "Deploying the Sample Company" (page 15).
When you deploy sample data for the current version, the "sample users" are:
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 14
l Rachel - Sample User
l Scott - Sample User
l Vincent - Sample User
If you migrated the Sample Company from version 19.8, the list of users will be the same as it was in that
version. If the user names were not modified in the earlier version, the users names are the same as those
listed here, but without “Sample User” at the end. (For example, rather than “Bryan – Sample User,” the
user is simply “Bryan.")
You can deploy the Sample Company after installation, or any time you want to restore Sample Company
to its original state after users have worked with it.
When you deploy Sample Company, you are added as a company administrator to the list of Sample
Company users, which includes a set of sample users, in Sage 100 Contractor.
When you redeploy Sample Company, any users that have been added to Sample Company in Sage 100
Contractor are retained.
l Provide user names and passwords to users in your own company who want to work with the
sample data. For information about the names and roles of the sample users, see "About the
Sample Company" (page 13).
Note: The password for the sample users that come with Sample Company is password.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 15
Chapter 3: Tuning Up, Backing Up, and
Restoring Company Databases
You can also use the Tune Up Company Databases utility to run maintenance tasks at other times,
whenever you need to. For more information about running maintenance "on demand," see "Tuning up a
company database" (page 16).
Note: The Tune Up Company Databases tab shows the last time maintenance was performed for
each Sage 100 Contractor company in your SQL Server instance.
Your database is tuned up automatically during nightly maintenance according to the schedule you specify
on the Create Maintenance Schedules or the Modify Maintenance Schedules tab. However, you can
also tune up your database on demand from the Tune Up Company Databases tab.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 16
There are many causes for data corruption, ranging from faulty hardware to power fluctuations. While you
can replace program files or computer hardware, you cannot easily replace accounting data without a
backup copy.
Database Administration for Sage 100 Contractor provides a utility for backing up your company data
automatically to a network location or a local folder during nightly maintenance. Creating a series of
backup copies over time enables you to restore your data from a point prior to the errors, without needing
to re-enter all your accounting data manually.
Important! You should store at least one copy of your backed-up data off premises or in a fireproof
safe. If a burglary or fire occurs, a copy of your data is safe from harm. We strongly recommend that
you routinely store backed-up copies of your data in a safe environment that is separate from your
server, preferably off site.
Database Administration saves backup copies created during nightly maintenance to the
C:\Sage100Con\Backup\Nightly folder.
Important! You need to ensure that both the server that hosts your company database and the
computer where the backup copies are saved are always turned on at the scheduled time.
The automated backup procedure creates a separate zipped file for each company by date. The zipped
file includes the following data:
l An audit log. Before backing up your company, the program audits your data to ensure that it
contains no errors.
The default location for backup copies you create manually is C:\Sage100Con\Backup\On Demand.
Database Administration also saves backup copies to this folder whenever you archive company data or
delete a company.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 17
Backing Up a Company Database
Database Administration for Sage 100 Contractor provides a utility for backing up your company data to a
network location or a local folder automatically, according to a nightly maintenance schedule.
You can also create backup copies manually, "on demand," at any time using the Back Up Companies tab.
Important! Always use Database Administration to back up your data. Database Administration
backs up numerous files (including external files, such as attachments) that are not part of the SQL
database, and it performs additional steps to ensure that you can successfully restore your data from
a backup copy. Do not attempt to back up Sage 100 Contractor data using Microsoft SQL Server
Management Studio or other third-party software, or you will be unable to restore the company.
Before backing up
Important! Ensure that both the server that hosts your company database and the computer where
the backups are to be saved will always be turned on at the scheduled time.
Tip: If the folder does not yet exist, you can make a new folder.
After backing up
Consider copying your backed-up data to additional media for off-site storage or to another network
location, in case of fire or a burglary at the location where you keep the computer that runs Sage 100
Contractor. For more information, see "Backing up your data to a CD or DVD" (page 18).
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 18
Sage 100 Contractor automatically backs up your data to a server location and according to the
maintenance schedule specified for your company. You can also back up your data at any time using the
backup function in Sage 100 Contractor.
Depending on your hardware and software, the folder is copied to the CD or DVD media.
On the Restore Company from Backup tab, you select the backup file you want to restore, select
maintenance and backup options for the restored company, and then click the [Restore Company] button.
Note: If you installed a new version of Sage 100 Contractor since you backed up your company, you
can choose to upgrade the company database automatically during the restoration process.
Database Administration enables you to create a copy of your backed-up data by restoring the company
using a different name, leaving the current company intact. Before you click [Restore Company], type the
name you want to use for the copied company in the Restore as box.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 19
Restoring a company database from a backup copy
If your computer is damaged or your data becomes corrupted, you use the Restore Company from Backup
tab to restore your company from a backup file.
l Identify the name and location of the backup file for that date for the company.
l Make sure no other users are logged into the company database.
3. If you want to restore the data using a different name for the company, leaving the existing company
intact, in the Restore as box, type the name you want to use for the copied company.
4. If you have installed a new version of Sage 100 Contractor since you backed up your company,
select Upgrade the company database to the latest version after restoration.
5. Click [Restore Company].
On the Create Sage Support Backup tab, you select the company whose files you want to send to Sage
Support, and then click the [Create Backup] button.
Note: Because this backup is incomplete, you should never use it to restore your company data. For this
reason, backups are saved in a separate Support Backups folder and include BackupForSage in the file
name.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 20
Creating a Backup for Sage Support
If Sage Customer Support needs to examine a copy of your company to help you to resolve a problem with
Sage 100 Contractor, they will ask you to create a special backup copy of your company files. This backup
is a stripped-down version of your company that does not include sensitive or personal information, and
does not include external files, such as attachments.
Sage 100 Contractor uses ..\Sage100Con\Backups\Support Backups on the drive where you store
your company data as the default location, but you can browse to a different location or type a
different path in the Enter the location for the backup file box.
Sage 100 Contractor creates a ZIP file, automatically naming the file after the company you are
backing up and including BackupForSage in the file name.
After backing up
Send the file to Customer Support as instructed.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 21
Chapter 4: Upgrading Databases
You can update the databases for multiple companies at once, or you can update them one at a time, as
needed.
Note: Do not use this utility to upgrade your data from version 19.8. You use Migrate Company Data
and Migrate Custom Reports to migrate your data to a Microsoft SQL Server database from version
19.8.
Important! Do not use this utility to upgrade your data from version 19.8! Use the Migration utility
instead. For more information, see "About migrating your data from version 19.8" (page 39)
You can upgrade the databases for several companies at once, or you can upgrade them one at a
time, as needed.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 22
Tip: Use the [Clear All] button to clear your selections of databases al at once
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 23
Chapter 5: Archiving Company Data
l Removes the accounting activity from the oldest fiscal year (12 periods) in your current company,
and places it in an archive company.
l In your current company books, adjusts the beginning balances for asset, liability and equity
accounts and sub-accounts, as well as jobs, vendors, service clients, and equipment to match the
archive year’s corresponding ending balances.
l Rolls income and expense balances for the archive year roll into the beginning balance for the
Retained Earnings account in the current company.
At year end, if I don't have enough hard disk drive space to create an archive
company, what can I do?
If you do not have enough disk space, free up disk space by deleting unnecessary files or programs, or
manually copy the data to another hard disk drive, CD, or DVD.
We recommend that you archive as soon as you have resolved all audit errors, and you have received and
entered all accounting entries, including adjustments.
Important!
l If you have more than one fiscal year to archive, you may perform the archive process more
than once.
l If you have only one year's worth of data to archive, you must advance to at least period 1 of
the next fiscal year in your current company books.
l The company folder cannot be in the same fiscal year that you are trying to archive.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 24
Where in the program do I create a company archive?
You use the Archive Oldest Fiscal Year utility in Database Administration to archive your company.
You use the Archive Payroll Data utility in Database Administration to archive your Payroll data.
After creating the company archive, review it to make certain that all records were copied correctly. If you
find that the archive is incomplete, restore from a backup copy, and then create a new archive.
You can archive up to 12 periods at one time. If you have more than one year of fiscal data to archive,
perform the archive process more than once.
The Archive Data wizard leads you through the process of archiving your data from previous fiscal periods.
It removes the oldest fiscal year of data from your current company, and places it in a separate archive
company. Therefore, before archiving a fiscal year, ensure your current period is not in the same fiscal
year.
Note: You cannot archive a fiscal year until you advance the default posting period to at least period
1 of the following year. You must advance your fiscal period using the Change Period window in the
Sage 100 Contractor application.
Important! Closing the payroll is not the same as closing the accounting books. All companies close
payroll at the end of the calendar year, but not all companies close the fiscal year in the general
ledger at the end of the calendar year.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 25
The Archive Data wizard leads you through the process of archiving your data from previous fiscal periods.
You can archive up to 12 periods at one time. You do not have to close your fiscal year before archiving
your data.
Before archiving
Make sure you have:
Note: Only companies for which your current login ID has administrator rights appear in the list.
The Archive Data wizard opens, displaying information about the archiving process and the tasks
you should have completed before archiving.
Tip: As you proceed through the wizard, you can click the [Help] button to view more detailed
information about each page.
3. Click [Next] .
4. On the Preparation page:
a. Click [Begin Preparation] to start performing all the listed preparatory tasks.
Note: If any problems are encountered, the process stops, and the text on this button
changes to [Resume Preparation]. Click [Resume Preparation] to continue running
subsequent tasks to see if there are additional items that require your attention.
b. When all the preparatory tasks are complete and without error, click [Next].
Note: You can click [Next] only when all tasks have been completed successfully.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 26
5. On the Maintenance Options page, select one or more maintenance tasks you want to perform prior
to archiving, and then click [Next].
a. Type a name for the company archive in the Enter name for the company archive box. The
name cannot contain any special characters
b. Click [Begin Archiving], and then click [Yes] if you are sure you have backed up your data and
completed the other tasks in the "Before archiving" section.
Note: If the archive folder exists, it must be empty. Click [Yes] to continue the process, or
click [No] to go back to the Archive Data page.
If you selected maintenance options before archiving, you can click View Result to display a
message box that lists information about the maintenance tasks completed.
c. Click [Next].
When the archiving process has finished, the wizard backs up your data, and then displays
information about working with your archive company.
7. Click [Close] .
Important! Closing payroll does not affect the accrued vacation, sick, and compensation times in the
employee records that you choose to retain.
Note: The payroll archive company is different from the general ledger archive company. If you enter
transactions between closing the fiscal year and closing payroll, back up and archive your accounting
and payroll records separately to ensure that you have permanent records of all your data.
Before entering timecards for the new calendar year, audit, back up, and then close/archive the payroll.
Although you may back up your company data at any time, in the context of closing the payroll, it makes
sense to back up your data after you have audited it and corrected any errors.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 27
Closing payroll can be time consuming, and the time necessary to create an archive may be considerable
depending on the number of payroll records and employees contained in each company. We recommend
creating a schedule of tasks to perform leading up to the close. For example, consider auditing the payroll
a month in advance of the scheduled closing date. This should provide enough time to resolve any errors
that might exist.
While it is not recommended, you can close payroll with uncomputed records, unposted records, and even
payroll audit errors. If you close with unfinished work, you must go back to the archive later, compute and
post the records, repair the audit errors, and then adjust the payroll records in the active company. From
the archive, you can also prepare and print the state and federal reports (including W-2 forms).
Note: When you close a payroll year, Sage 100 Contractorcreates new ACA records for the new
payroll year. It uses the December values from the previous year as defaults for each month of the
new year.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 28
Archiving payroll data
l Archiving and closing payroll at the end of the calendar year is a separate process from closing
the fiscal year in the general ledger.
l You cannot process payroll for the new calendar year until you close payroll for the previous
year.
l You cannot enter payroll data with check dates in the new calendar year until you close payroll
for the previous year.
l Make sure that you are in your current company and not in your general ledger archive company.
l Back up and verify two copies of your Sage 100 Contractor data.
l Save at least one of your backup copies on a separate removable storage device.
Note: You can use this backup copy to verify data integrity if you have to close again.
a. From the Select the company to archive list box, select the company for which you want to
archive payroll .
b. In the text box, type a name for the payroll archive.
c. If you want to remove records for employees who no longer work for the company, select their
statuses as follows:
l To remove records with 3-Quit status, select the Quit check box.
l To remove records with 4-Laid Off status, select the Laid Off check box.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 29
l To remove records with 5-Terminated status, select the Terminated check box.
l To remove records with 7-Deceased status, select the Deceased check box.
3. Click [Create Archive] .
Tip: The first payroll of a new year may include ACA hours attributable to the previous year. in the Sage
100 Contractor application, when you run the 5-4-3-21 ACA Hours Allocation report for an archive
company, you can use the Combine Company for ACA Hours Allocation window Sage 100 Contractor to
combine the report results with the hours entered in the active company. The ACA report then includes
payroll records entered for the previous year in the active company's new year.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 30
Chapter 6: Scheduling Nightly Maintenance
(missing or bad snippet)
l Decide whether to keep backup files for one, two, three, or four weeks, or to keep only the latest
backup (not recommended!). Expired backup files are deleted during nightly maintenance.
3. From the Select the time for nightly maintenance list, select the time to perform maintenance for
these companies.
4. From the Select the number of backups to keep list, select the period of time to maintain backup files
for these companies.
5. Click [Save Schedule].
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 31
Removing a Maintenance Schedule
If you no longer want maintenance performed for a company, you can remove its maintenance schedule.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 32
Chapter 7: Managing Company Admins
and SQL Logins
You use the Company Admins / SQL Logins utilities to authorize user access to the SQL Server database,
to designate one or more users as a SQL Server administrator, and to assign administrative privileges to
certain users for a Sage 100 Contractor company.
You use the Company Admins / SQL Logins utilities to authorize user access to the SQL Server database,
to designate one or more users as a SQL Server administrator, and to assign administrative privileges to
certain users for a Sage 100 Contractor company.
You can use Database Administration to set up employees as users in your SQL Server instance, and to
designate a user as a company administrator for a specified Sage 100 Contractor company.
A company administrator can always set up additional users and access privileges for those users in a
Sage 100 Contractor company for which they have administrative rights.
However, you must use Database Administration to designate a user as a SQL Server system
administrator (with a 'sysadmin' role).
When you or another company administrator adds employees as users in Sage 100 Contractor, you
authorize them to use your SQL Server database by:
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 33
You use the Add SQL Server Login tab to add users, along with their credentials, to your SQL Server
instance. Also, when a company administrator adds a user to the 7-2-2 User List in Sage 100 Contractor,
the program automatically creates a SQL Server login if the user ID does not yet exist in the SQL Server
database.
Important! The migration utility creates logins for all existing users in the version 19.8 company,
assigning the same user names and passwords as before.
Important! After you delete a user's SQL Server login, they can no longer sign in to any Sage 100
Contractorcompany.
If you need to remove a user's access rights to one company, while maintaining their access to other
companies, remove the user from the 7-2-2 User List for the company in Sage 100 Contractor.
You use the Add Company Administrators tab to designate existing users as administrators for a selected
company.
You use the Modify Company Administrators if you need to remove a user's administrator access to a
selected company, or to restore administrator access to a user that has had it before.
Note: When you migrate a company, you can select a company administrator from the list of users in
the version19.8 company.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 34
SQL Server System administrators ("sysadmin")
Only a user with a sysadmin role in Microsoft SQL Server can administer access to the SQL Server
database and assign the sysadmin role to another user. Therefore, it is vital at all times that more than one
user has a sysadmin server role. If the principal system administrator should suddenly fall ill, or leave your
company, or otherwise be unable to perform their duties, another person with administrative access to the
SQL Server database must be able to take over that role.
Note: The person who installs Sage 100 Contractor is automatically assigned a sysadmin role.
You can designate a user as a sysadmin either when you add their SQL Server login or by using the Modify
SQL Server Administrators tab.
You also use the Modify SQL Server Administrators tab to remove the sysadmin role for a user.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 35
Modifying Company Administrators
You use the Modify Company Administrators if you need to remove a user's administrator access to a
selected company, or to restore administrator access to a user that has had it before.
Although you can use SQL Server Management Studio to add SQL Server users, Database Administration
for Sage 100 Contractor provides a much simpler way to set up SQL Server login credentials.
l If you select Windows Authentication, in the User name box, type the Windows user name for
this user.
Note: You must enter a user name that is valid for the Windows domain or workgroup that
hosts the SQL Server instance.
When the user signs into the company with their Windows user name, Sage 100 Contractor
authenticates the user name and password they entered when signing into Windows.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 36
l If you select SQL Server Authentication, type the SQL Server login and password to use to
authenticate this user when they sign into the company.
3. If this user should also be a SQL Server administrator, select the Add as a member of 'sysadmin'
server role check box.
4. Click [Create SQL Login].
If your Sage 100 Contractor system uses Integrated Security, the user simply enters their Windows ID and
password when logging into the Sage 100 Contractor company.
If you set up the user with SQL Server authentication, however, you must reset their password in the 7-2-2
User List by typing a new password to replace the old one, and then saving it.
Important! After you delete a user's SQL Server login, they can no longer sign in to any Sage 100
Contractorcompany.
If you need to remove a user's access rights to one company, while maintaining their access to other
companies, remove the user from the 7-2-2 User List for the company in Sage 100 Contractor.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 37
Modifying SQL Server Administrators
If you do not designate a user as 'sysadmin' when you add their SQL Server login, you can so using the
Modify SQL Server Administrators tab.
You also use the Modify SQL Server Administrators tab to remove the 'sysadmin' role for a user.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 38
Chapter 8: Migrating Your Data from
Version 19.8
You use the Database Administration tool to convert your version 19.8 data (including all company data in
folders and subfolders of …\MB7\[CompanyName]) to the current version. The migration process
automatically creates a new SQL Server database and stores your converted SQL data in a new location.
You can migrate data to version 22.3 only from version 19.8. If your company databases are in an earlier
version of Sage 100 Contractor, you must upgrade them to version 19.8 first.
Migrated files are located in shared folders under C:\Sage100Con\Company\[Company Name]. (Users
navigate to the \Sage100Contractor\[Company Name] on the server.) Subfolders are organized using a
similar folder structure as in earlier versions, and include:
l Aatrix Forms
l Attachments
l Direct Deposit
l Images
l Reports
Note: The Direct Deposit and Reports folders are available as soon as you open the company in
Sage 100 Contractor. The remaining folders are created as needed.
Note: If you created custom reports using third-party applications, you must use the report views to
adapt them, separately, for Sage 100 Contractor 2019.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 39
Private custom reports
In version 19.7, private reports were stored on individual workstations with each user’s Windows
application data, and therefore cannot be migrated along with the shared custom reports.
In version 22.3, when a user logs into Sage 100 Contractor, the server checks their Windows User Data
folder to see if they have any private Sage 100 Contractor. If they do, the program creates a User Data
folder on the server for that user’s Windows ID, and copies their reports to this folder.
Note: The Backup program backs up private reports and other user-specific data for each user.
However, the Restore program does not restore them. If a user somehow loses their private reports,
you can retrieve them by navigating to a recent backup file (in the local Backup folder) and extracting
the user’s data folder.
If the problem is one that the migration program can fix, it changes the record, and then writes the updated
record to the SQL database. For a list of these errors, see "Errors fixed during migration" (page 44).
However, not all errors can be fixed. In these cases, the record is not written to the new database.
Important! After migration, you should check the log file to see what changes were made to your data
during conversion, or whether any records were not migrated to the new SQL database.
The _SQL_MIGRATION_LOG.TXT file is located in the source company's main folder (for example,
C:\MB7\Sample Company). A supplemental file, _SQL_MIGRATION_LOG_VERBOSE.TXT, includes
more detailed information about each error found.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 40
l Add company administrators. There is no longer a generic "supervisor" user as there was in version
19.7. All users must sign into the company using their personal IDs, and only users designated as
company administrators have heightened privileges previously associated with the "supervisor"
role. You can designate one user as a company administrator during migration, but you can add
others later.
l Add SQL logins for new users. If you have new users that did not exist in your version 19.7
company, add them as users to the SQL database.
You must also add them as users and assign security in Sage 100 Contractor.
l Designate an additional SQL Server administrator. Only a user with a 'sysadmin' role can administer
users for SQL Server and assign the 'sysadmin' role to another user. Therefore, it is vital at all times
that more than one user has a 'sysadmin' server role. If the principal system administrator should
suddenly fall ill, or leave your company, or otherwise be unable to perform their duties, another
person with administrative access to the SQL Server database must be able to take over that role.
Note: The person who installs Sage 100 Contractor is automatically assigned a 'sysadmin' role.
l Migrate scheduled reports and alerts. You must use Sage 100 Contractor to migrate tasks
scheduled in version 19.7 for individual workstations. When you open the 7-5 Scheduled Reports
Manager window or the 7-6 Alerts Manager window, Sage 100 Contractor checks whether any
scheduled reports or alerts exist, respectively, for version 19.7. If it finds any, it displays a migration
window that you can use to migrate these tasks to the current version. For more information, see the
help for these windows in the Sage 100 Contractor application.
l Claim Supervisor process maps. If process maps existed for the Supervisor user in version 19.7,
Sage 100 Contractor will attempt to assign them automatically to users that log in to Sage 100
Contractor until the process maps are claimed.
Although the migration program does not bring the Supervisor user into the new version of Sage 100
Contractor, you can copy default settings, such as grid views and reporting defaults, saved for the
Supervisor in version 19.8 to individual users in Sage 100 Contractor 2019.
Note: Copying the Supervisor settings does not copy security settings or desktop settings to users.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 41
3. If the user name does not appear in the grid, create the user, and then click the Save button.
4. Click the [Copy User Defaults] button, or click Options > Copy User Defaults.
5. In the Copy User Defaults window:
a. On the Copy defaults from pane, select Supervisor.
b. On the Copy to pane, select the user to whom you want to assign the default Supervisor
settings.
Tip: To copy the settings to more than one user, hold down the Control key while you make
multiple selections in the Copy to pane.
c. Click [OK].
d. In the message box, click [Yes] to continue.
Before migrating
Migration should proceed smoothly in most instances. However, you should perform the following audits
in version 19.8, and then fix any errors, before attempting migration:
Note: If your version 19.8 company data includes serious audit errors, you may need assistance
from your business partner or consultant to prepare your database for migration.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 42
To migrate your data from version 19.8:
1. Click Migrate from Version 19.8 > Migrate Company Data .
2. On the Migrate Company Data tab:
a. Click [Browse], and then navigate to and select the folder where your version19.8 company
data is stored.
b. Select a company administrator from the list of users that were set up for your company in
version19.8.
c. Specify a maintenance schedule, including the time and the number of backups to keep.
d. Click [Migrate Company].
3. After the migration process has finished, check the SQL Migration Log file, where any errors or
changes to your data are recorded.
The _SQL_MIGRATION_LOG.TXT file is located in the source company's main folder (for example,
C:\MB7\Sample Company). A supplemental file, _SQL_MIGRATION_LOG_VERBOSE.TXT,
includes more detailed information about each error found.
l Add SQL logins for new users. If you have new users that did not exist in your version 19.7
company, add them as users to the SQL database.
You must also add them as users and assign security in Sage 100 Contractor.
l Designate an additional SQL Server administrator. Only a user with a 'sysadmin' role can
administer users for SQL Server and assign the 'sysadmin' role to another user. Therefore, it is vital
at all times that more than one user has a 'sysadmin' server role. If the principal system
administrator should suddenly fall ill, or leave your company, or otherwise be unable to perform
their duties, another person with administrative access to the SQL Server database must be able to
take over that role.
Note: The person who installs Sage 100 Contractor is automatically assigned a 'sysadmin' role.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 43
l Migrate scheduled reports and alerts. You must use Sage 100 Contractor to migrate tasks
scheduled in version 19.7 for individual workstations. When you open the 7-5 Scheduled Reports
Manager window or the 7-6 Alerts Manager window, Sage 100 Contractor checks whether any
scheduled reports or alerts exist, respectively, for version 19.7. If it finds any, it displays a migration
window that you can use to migrate these tasks to the current version. For more information, see
the help for these windows in the Sage 100 Contractor application.
l Claim Supervisor process maps. If process maps existed for the Supervisor user in version 19.7,
Sage 100 Contractor will attempt to assign them automatically to users that log in to Sage 100
Contractor until the process maps are claimed.
If the problem is one that the migration program can fix, it changes the record, and then writes the updated
record to the SQL database. For example:
l If a record contains a reference to a record that does not exist, the program creates the missing
referenced record using the name or description "Unknown [record]," with any required fields, and
the record is set to Inactive.
l If a record contains a defined error that has a prescribed solution, the program applies the solution
as it creates the record in the SQL database.
The migration program applies solutions, as described, when it encounters these specific errors:
l Canadian-specific fields that include values in a United States company. These fields are cleared.
l Line tables that include Quantity and Price or Cost fields, where the Price/Cost is negative. The
Price/Cost is written as a positive value and the Quantity is made negative.*
l Parts with negative values for Average Cost, Default Cost or Billing Amount. These fields are
cleared.*
l Bid Items that are Item# 0 with no value for Item Type. The Item Type is assigned 1-Base Bid.
l Job Costs with no value for Billing Status. The Billing Status is assigned 2-Not Billable.
l Job Costs with no value (or an otherwise invalid value) for Cost Type. The Cost Type is assigned 5-
Other.
l Payroll Calculations with negative value for Benefit. The Benefit is changed to 0.
l Purchase Order Lines with AR, AP or SR for the Account. The Account and Subaccount fields are
cleared.
l Clients with no value for Part Billing Basis. The Billing Basis is assigned 3 (Billing Amount).
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 44
l Clients with no value for Status. The Status is assigned to a new Status record, which is created
using the highest available number and description of Unknown Status.*
l Tasks with no value for Task Type. The Task Type is assigned to a new Task Type record, which is
created using the highest available number and description of Unknown Type.*
l Service Work Orders/Invoices with no value for Priority (in either the header or Dispatch grid). The
Priority is assigned to the default value (either 3 or the customer’s setting from F7).
l T&M Billing Setup with no value for Income Account. The Income Account is assigned to the default
Income Account from the Job record. (If there is no default value on the Job, the SQL record is not
created, and the error is reported in the migration log.)
l Parts with any value other than 0 or 1 for Required from Inventory. The field is assigned 0 (not
selected).
l Dispatch Board Column Setup with no value for Record Type. The Record Type is assigned E
(Employee).
l Service Areas with no value for Dispatch Color. The Dispatch Color is assigned Black.
l Any Yes/No field with any value other than Y, N, or blank. These fields are cleared.
Note: If you created custom reports using third-party applications, you must use the report views to
adapt them, separately, for Sage 100 Contractor 2019.
In version 19.7, private reports were stored on individual workstations with each user’s Windows
application data, and therefore cannot be migrated along with the shared custom reports.
In version 22.3, when a user logs into Sage 100 Contractor, the server checks their Windows User
Data folder to see if they have any private Sage 100 Contractor. If they do, the program creates a
User Data folder on the server for that user’s Windows ID, and copies their reports to this folder.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 45
Chapter 9: Server Management Tools
The tools in Server Management in Database Administration enable you to control the SQL Server
instances you use with Sage 100 Contractor easily and efficiently.
You use the Server Management tools to create a new SQL Server instance, to move your Sage 100
Contractor companies to a different instance or a different drive on your computer, and to remove a SQL
Server instance.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 46
To create a new SQL Server instance:
1. Start Database Administration and connect to your current SQL Server instance.
2. Click Server Management > Create SQL Server instance.
3. Fill out the fields on the Create SQL Server Instance tab:
a. Enter a name for the new SQL Server instance. You can use up to 16 characters for the new
instance name.
b. Enter the setup file for the SQL Server installation. Browse to the location where you stored
the SQL Server installation files, and then select the executable file.
If you installed SQL Server Express when you installed Sage 100 Contractor, this will likely be
the Sage 100 Contractor download folder—for example,
C:\Sage100Con\Downloads\SQLEXPRADV_v64_ENU.EXE.
c. Select the check boxes for the access and communication options you want to enable for the
new instance.
If you are allowing access to the new instance only for approved applications:
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 47
Important! Moving data to a new drive moves all Sage 100 Contractor data. Only one drive on a
server can contain Sage 100 Contractor data, and once you move your data, Sage 100 Contractor
no longer uses or references the old drive.
The Move Data to New Drive tab displays the letter representing the current drive.
3. Fill out the fields on the Move Data to New Drive tab:
b. In the Select Data Location window, select (highlight) the drive where you want to move your
data from the list. The drive must be formatted as NTFS and have at least three times the
available space as the data you want to move.
Note: The Select Data Location window displays the local, fixed drives on your computer
and shows information, such as the drive name and the amount of available space, for each
one.
c. Make a note of the drive you selected so that you can update your maintenance and backup
schedules.
d. Click [OK].
If any users are connected to the database, you receive a message. You must terminate their
connections before you can continue.
If you change your mind about moving your data (for example, if you do not want to terminate user
connections without notice), click [Cancel], and then click [OK] at the message asking you to confirm
that you do not want to move your data.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 48
If the program cannot relocate your data, you receive an error message, and the program returns
your data its state before you attempted to move it.
Note: When you move a company to a new instance, any scheduled maintenance tasks are also
moved to the new instance, and removed from the old instance.
a. In the Company list, select the check box for the company that you want to move.
b. Select the destination SQL Server instance. From the drop-down list, select the instance
where you want to move the company.
c. Select the option to set up nightly maintenance and backup tasks for the company in the new
location, and then:
i. From the Select the time for nightly maintenance list, select the time to perform
maintenance for this company.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 49
ii. From the Select the number of backups to keep list, select the period of time to
maintain backup files for this company.
4. Click [Move company].
If you installed SQL Server Express when you installed Sage 100 Contractor, this will likely be the Sage
100 Contractor download folder—for example, C:\Sage100Con\Downloads\SQLEXPRADV_v64_
ENU.EXE.
If you created the instance with an earlier version of Microsoft SQL Server, and have overwritten the
original setup file with a later version, you may need to download the earlier version again. (We
recommend that if you do so, you download it to a distinct folder to avoid overwriting the existing setup
file.)
a. Select the SQL Server instance to remove. Select the instance from the list.
b. Enter the Setup file for the SQL Server installation. Browse to the location where you stored
the SQL Server installation files, and then select the executable file.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 50
Chapter 10: The Toolbox and
Troubleshooting
About Dashboard
The Dashboard provides visual feedback showing whether your Sage 100 Contractor system is configured
using the recommended settings and is operating satisfactorily.
Note: The Dashboard was not designed as a sophisticated performance analyzer, but to provide a
quick "health check" on your system.
Status indicators
Each of the following factors contributes to the efficient operation of your system:
l Computer's Power Plan. For more information, see "About Computer's Power Plan" (page 52).
l Database Usage. For more information, see "About Database Usage" (page 53).
l SQL Memory Allocation. For more information, see "About SQL Memory Allocation" (page 53).
l Disk Performance. For more information, see "About Disk Performance" (page 54).
l Network Configuration. For more information, see "About Network Configuration" (page 54).
The Dashboard's "traffic lights" provide visual cues about the status of each factor:
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 51
Status Condition of your system
l Obtain additional information about a particular condition by clicking the adjacent view details link.
l Update the entire dashboard with the latest conditions—particularly after adjusting these settings—by
clicking [Refresh].
The server must be available at all times so that users at workstations can connect to it. If the computer's
power plan allows the computer to sleep or hibernate, or turns off the hard disks during periods of
inactivity, performance will be degraded.
The computer's power plan uses Sage's recommendations. The settings do not allow the
computer to sleep, hibernate, or turns off hard disks during inactive periods.
We could not determine your computer's power plan settings. You should ensure that the
power plan does not permit the computer to sleep or hibernate, or turns off hard disks
during inactive periods.
Click the adjacent view details link on the Dashboard for help in resolving your computer's
power settings.
The power plan does not meet our recommendations. Performance will be impaired
unless you adjust the settings.
Click the adjacent view details link on the Dashboard for help in resolving your computer's
power settings.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 52
About Database Usage
This Dashboard indicator helps you to determine whether there is sufficient disk space for databases to
expand. It warns you if existing storage is nearing the maximum capacity of the disk.
Overall used disk capacity is less than 85% and (if you are running SQL Express) the
capacity used for every database is less than 70% .
Overall used disk capacity is 85 to 90%, or (if you are running SQL Express) the capacity
used by at least one database is between 70% and 80%.
Click the adjacent view details link on the Dashboard for more information about your
computer's settings.
Overall used disk capacity is more than 90%, or (if you are running SQL Express) at least
one database is using more than 80% of overall capacity.
Click the adjacent view details link on the Dashboard for more information about your
computer's settings.
l The average number of seconds the allocated memory can hold SQL data before it needs to be
dumped in order to handle new processes. Called "page life expectancy" (PLE), this value is
measured for each database during nightly maintenance or a manual tune-up.
For example, if either the memory allocation or the PLE of any database is red, the Dashboard status light
is red.
Note: A gray status and “Insufficient data” is displayed if there are fewer than 20 PLE records in the
database.
The computer's memory allocation is at least 4 GB (or 25% of total memory, if less than 4
GB), and the PLE for all databases is at least 36,000 seconds.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 53
Status Condition of your system
The computer's memory allocation is between 1 GB and 4 GB (and less than 25% of total
memory), or the PLE for any database is between 3,600 and 36,000.
Click the adjacent view details link on the Dashboard for more information about your
computer's settings.
The computer's memory allocation is below 1 GB, or the PLE for any database is below
3,600. Performance will be impaired unless you adjust the settings.
Click the adjacent view details link on the Dashboard for more information about your
computer's settings.
Important! Operating system-based disk caching is disabled for this test, so the actual performance
may be much greater than reported here.
The computer reads or writes at a rate between 50 MBps and 100 MBps.
Click the adjacent view details link on the Dashboard for more information about your
computer's settings.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 54
Status Condition of your system
Server Tools
Important! These sophisticated tools were designed to help Customer Support personnel efficiently
resolve certain system problems that, although rare, would be time-consuming to fix otherwise.
Note: Although running these tools causes no harm to your system, there is no advantage to doing
so unless you have one of the problems that the tools are designed to fix.
l Start Microsoft SQL Server Profiler. You use the SQL Server Profiler to monitor the effect of
changes to your database on your SQL Server instance.
Note: To take advantage of this feature, you should be familiar with SQL Server Profiler concepts
and tasks.
l Remove orphaned file shares. Every company has a folder on the server that provides access from
workstations to external files, such as file attachments, that are associated with the company.
If a file share is not removed automatically when you delete a company—for example, if you deleted a
database using SQL Server Management Studio and did not remove the corresponding file share
manually—you could remove it using this tool. (Note that we strongly recommend that you only ever
use Database Administration to delete companies.)
l Remove orphaned nightly maintenance tasks. If the scheduled maintenance task for a company is
not removed automatically from Windows Task Scheduler when you delete the company, this tool
can remove the task.
Note: We strongly recommend that you only ever use Sage 100 Contractor Database
Administrationto delete companies!
l Reapply file permissions. Sage 100 Contractor maintains a system for managing access to data,
and assigns security settings to each folder when the folder is created. Changing these security
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 55
settings can have a detrimental effect on the normal operation of the software. This function
reassigns the original security settings to each
l Reapply firewall rules. Selecting the Enable other machines to connect to this SQL server instance,
in Advanced Settings, creates the firewall rules required for workstations to connect to the server.
However, if the rules are later deleted in the firewall software, this tool reinstates them. For example,
Windows 10 might have altered the firewall rules during an upgrade from an earlier version of
Windows, or another user may have changed the firewall rules without realizing the implications for
Sage 100 Contractor.
l Move default ‘tempdb’ to Sage 100 Contractor's preferred location. SQL Server uses the tempdb
directory to hold temporary objects required for processing, and is recreated each time you start
SQL Server.
The first time you run Sage 100 Contractor Database Administration, it moves the tempdb location
to the \Sage100Con\Company directory. This is the preferred location because:
Important! You cannot delete this directory while the tempdb MDF and LDF files are stored here.
Do not attempt to stop the SQL Server service, and then delete the directory. You will not be able
to restart the SQL Server service because the tempdb location will be invalid.
l Move default ‘tempdb’ to SQL Server's default location. When you create the SQL Server instance,
the tempdb is created automatically in the SQL Server default location (typically C:\Program
Files\Microsoft SQL Server\MSSQL12.SAGE100CON\MSSQL\DATA). However, this location is not
optimal because:
l The C:\ drive may have limited space, and the tempdb is likely to grow, which can cause
operational problems. For example, if a query requires more tempdb space than can be
allocated, the query will fail.
l The C:\ drive may be slow.
l The permissions to the C:\drive may be very restricted.
Although it is not optimal, you can relocate the tempdb location if you need to delete the directory at
the Sage 100 Contractor preferred location.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 56
Company Tools
Important! Company Tools generate reports designed to help expert users, such as Customer
Support personnel and business partners, identify changes that third-party applications have made
to your company data or to the database schema.
l Display all data modifications made by programs other than Sage 100 Contractor. This tool queries
all audit (or history) tables and reports on changes made by any third-party applications.
Note: The data contained in the report is time-sensitive, and depends on the history retention
policy specified for your company in Advanced Company Settings. (The default period is 90
days.)
l Display all database schema alterations made by programs other than Sage 100 Contractor. This
tool reports all changes to the schema made by third-party applications. The database schema
functions as the blueprint for your database, and determines the type and format of information you
can enter into it. Unauthorized schema changes can cause unpredictable behavior, and problems
during updates or upgrades.
The report contents are presented in a grid in a separate window. Although you cannot edit the data in the
grid, you can use the column headings to sort the items that appear in it, and (in the data modifications
report) you can also use filters to restrict the selection of data modifications.
Data modifications
The data modifications tool provides three filters (located at the top of the results window) that you can use
to restrict the results that appear in the grid. You can filter records by:
l Tables. You can select All Tables or a particular table from the list.
l Users. You can select All Users or a particular user.
l Applications. You can select All Applications or a particular application.
The resulting report provides information about these types of data changes for the selected company:
l Insertions
l Deletions
l Modifications
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 57
The details window displays all the fields for the selected record, and shows the value of each field before
and after the change.
Schema changes
The schema should not be modified, except by Sage.
If certain types of problems arising during a software update or an upgrade, or if you are suddenly unable
to save records, Customer Support may ask you to run this tool to rule out possible schema changes or to
identify the third party responsible for the changes.
When you select the Assign new server name in file paths for linked file attachments option, two boxes
become available:
l Old server name, from which you select the name of the old server.
l New server name, in which you type the name of the new server.
After you enter the old and new server names, click [Update File Paths]
Note: Because process maps, custom reports and custom forms are located in each user’s private
User Data folder and not in a database, you cannot use the 7-2-2 User List in Sage 100 Contractor to
copy a user's process maps or private custom reports and forms to another user.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 58
l Process maps
On the lower left side of the tab, a checklist appears, showing all the external files for the selected
user.
Another list shows all the Sage 100 Contractor users that have a personal User Data folder.
4. In the Select files to copy box, select specific files to copy to other users.
5. In the Copy files to selected users box, select the users who need the copied files.
Tip: To select all the displayed files, click the first file in the list, press Shift+End, and then press
the Spacebar.
Note: If a file in the target folder has the same name as a file you are copying, you must confirm
whether to overwrite the existing file or skip it.
Support Script
You use this utility to run scripts that Sage Customer Support provides to repair your data.
The program displays the support ticket number, Knowledgebase article ID, and a description
of the work that the script will perform.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 59
Note: If any users are still logged into the company, you receive a message showing who
the users are. You cannot continue running the script until these users have logged out.
If the script stops running for any reason, the program restores your data to its state before
your tried to run the script, and it displays a message explaining why the script did not finish
running.
Warning Messages
Database Capacity Warning Message
If your company data is approaching the maximum capacity of the database, Sage 100 Contractor users
see a critical warning advising them to contact their company administrator.
To ensure that you do not run out of space in the database, we recommend that you take one or more of
the following actions if you receive this message:
Depending on when the files were last backed up successfully, the message conveys the degree of
urgency for the administrator to respond to the problem:
l A warning appears if the scheduled backup failed to run the previous night.
l A critical warning appears if the scheduled backup has not run for a number of days.
l A critical warning also appears if the scheduled backup has never run.
Important! If you are a Sage 100 Contractor user and you see this message, inform your company
administrator immediately. Be sure to note the type of warning, including the information about the
last successful backup.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 60
If you are the company administrator, you should:
l Immediately back up your company files, manually, using the Back Up Companies utility in
Database Administration.
Back up manually each day until you resolve the problem that is preventing the scheduled backup
procedure.
l In Database Administration, check whether a scheduled maintenance task exists for the company
on the Modify Maintenance Schedules tab.
If no maintenance task exists for the company, use the Create Maintenance Schedules tab to create
one.
If a task does exist, you may be able to resolve the problem either by modifying the task (using
Modify Maintenance Schedules), or by removing it (using Remove Maintenance Schedules), and
then creating a new one.
l Check whether another server event occurs at the same time as the maintenance is scheduled to
run, which could interfere with the maintenance process.
If another server event is scheduled at the same time, try changing the time of one or the other task,
so they do not conflict.
If you are unable to resolve the problem using these methods, contact support for further assistance.
Depending on your Sage service plan, you may be able to contact the Sage Customer Support Call Center
to work with one of our highly trained customer support professionals. The Knowledgebase article How do
I get technical support for Sage 100 Contractor? provides contact information and hours of operation, and
it can help you to determine which service works best for you.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 61
Chapter 11: Advanced Settings
You can remove all database history for a selected company by clicking the [Purge History Tables] button.
Important! The settings you choose on this tab apply to all the databases in the SQL Server instance,
not just to one company.
Tip: If you want to monitor the effect of changes to these settings on your SQL Server instance, open
the Microsoft SQL Server Profiler from the Toolbox.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 62
To reconfigure advanced SQL Server settings:
1. Click Advanced Settings > Advanced SQL Server Settings .
2. Select or enter settings on the Advanced SQL Server Settings tab, as follows:
l Maximum SQL Server memory. Type the maximum amount of memory to allow this instance
to use, in megabytes.
l Server connection timeout. Type the maximum number of seconds to allow the server to
respond to a request from another machine before dropping the request and displaying a
connection error to the user.
l Enable other machines to connect to this SQL Server instance. This option is selected by
default to allow other machines in a networked environment to connect to the SQL Server
instance.
You may want to clear this option to prevent connections while you perform maintenance on
the database, or if you need to isolate the instance from an immediate threat.
l Encrypt communication from Sage 100 Contractor to this SQL Server instance. Select this
option if you need to encrypt all communication from Sage 100 Contractor.
l Limit access for members of the 'sysadmin' role to this machine only. This option is selected by
default to ensure that the sysadmin role can obtain access to the SQL Server instance only
from the machine that is acting as the server.
l Limit access to this SQL Server instance to approved applications. Access to the SQL Server
instance is always approved for Sage 100 Contractor because it is necessary to run the
software. However, you might want to allow other applications, such as Microsoft Excel, to
communicate with the instance as well. You can select which applications can communicate
with this SQL Server instance, as follows:
Note: You can select only applications that include an application name in their
database connection strings. You cannot allow applications to connect that do not
identify themselves properly.
c. To edit the XML configuration file directly, click Edit advanced restrictions, and then
follow the instructions in the XML file to define the restrictions that you need.
3. If you want to restore the "factory settings" after reconfiguring any of these settings, click [Restore
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 63
Defaults] .
4. When you are satisfied with your selections, click [Save Changes].
l Specify a secondary network location to which to copy nightly backup files for additional security (for
example, an external USB drive or another computer on the network).
Note:
l You receive no notification if the main backup is successful, but the backup to the
additional location fails.
Important! The settings you choose on this tab apply to all the databases in the SQL Server instance,
not just to one company.
When you browse to a location, you can create a new folder, if one does not already exist.
3. (Optional) If you want to copy your nightly backup files to a secondary location on your network or to
a USB drive attached to your computer, specify the path and name of the folder in the Copy nightly
backup files to this additional location box.
4. For each type of "on demand" backup, specify the number of days to retain back files.
5. Click [Save Changes].
When you save your changes, Database Administration sets the permissions on the backup folder.
That is, only administrator users have access to the folder.
Sage 100 Contractor 2019 Database and Company Administration Guide Version 22.2 64