Tascus Client Database Setup Standard
Owner: Martin Griffiths | Last updated: 2026-08-03 | Applies to: current Tascus MES releases
Reference and checklist for configuring SQL Server on new or existing client Tascus deployments. Use during initial setup, and as a health check on existing installs.
1. Requirements
Tascus requires a Microsoft SQL Server database to store all production data — local server or cloud.
Supported versions: confirm current list against Tascus release notes before quoting to a client — do not rely on this doc for version support.
Installation: Tascus provides a SQL script to create the database.
2. Permissions
Full permissions (recommended for automatic updates):
Grant
db_ddladmin— allows the Tascus client to run DDL commands, so it can create/update tables automatically as needed via the update script.
Minimum required permissions (if db_ddladmin isn't permitted):
db_datawriter— add, delete, or change data in all user tablesdb_datareader— read all data from all user tables/views
If running on minimum permissions, explicitly deny CREATE TABLE. Without db_ddladmin, there's a risk of the client attempting a table-creation script and leaving behind "ghost" tables — denying it closes that off.
3. Connection
On first launch, each station defines its own connection to the Tascus database.
Tascus connects via an SQLOLEDB connection string over TCP port 1433.
After any restore/move/reconfig, always verify the application can connect before considering the change complete.
4. Backup Strategy
A TLog backup chain (see §5) is only recoverable if it sits on top of a valid full backup. Full backups are the foundation — set these up before configuring TLog backups.
Full backup:
Schedule a full backup at least daily, out of hours.
Store backups off the DB server itself (separate disk/volume, or offsite/cloud) — a backup on the same failed drive as the database is not a backup.
Retain a minimum of 7 daily full backups; extend retention per client contract/DR requirements.
Differential backup (optional, for larger databases):
If daily full backups become too large/slow, add differential backups between fulls (e.g. every 4–6 hours) to reduce recovery point gaps without the overhead of a full backup each time.
Transaction log backup:
See §5 — hourly TLog backups sit on top of the full backup chain and enable point-in-time recovery.
Verification:
Periodically test-restore a backup (full + TLog chain) to confirm it's actually recoverable, not just that the job "succeeded". A backup job with a green tick is not the same as a working restore.
Document the last successful test-restore date per client.
Assumption flagged: the above (daily full, 7-day retention, hourly TLog) is a sensible default, not a confirmed client requirement — confirm actual RPO/RTO expectations per client and adjust frequency/retention accordingly.
5. Recovery Model & Transaction Log
Check: Database recovery model (Full vs Simple).
If no TLog backup job exists:
Set recovery model to Simple.
Shrink the transaction log once switched (schedule out of hours).
Under Simple, the TLog will not grow further.
If point-in-time recovery is wanted (recommended for production/live client DBs):
Keep recovery model as Full.
Set up a TLog backup job to run periodically (e.g. hourly).
Each TLog backup truncates the log, preventing unbounded growth.
Enables point-in-time DR restore, rather than being limited to the last full/nightly backup.
Default recommendation for new deployments: Full recovery model + hourly TLog backup job configured as part of setup — a standard build step, not an afterthought.
6. File Locations
Data and log files should not sit on the same drive as the OS (typically C:) — SQL Server competes with the OS for disk I/O if colocated. Performance issue, not just a space issue.
Standard: provision a dedicated drive/volume for Tascus databases (e.g.
F:\) at setup time.Existing installs with DB files on the OS drive: flag as a migration item.
7. Indexes
Tables and indexes fragment over time, which can slow performance.
Check fragmentation (SSMS):
/* Checks the fragmentation in percentage on every database index
5-30% fragmentation: Consider reorganizing the index.
Above 30% fragmentation: Consider rebuilding the index. */
USE Tascus_Demo; -- Replace with your database name
GO
SELECT
OBJECT_NAME(i.object_id) AS TableName,
i.name AS IndexName,
indexstats.index_id,
indexstats.avg_fragmentation_in_percent,
indexstats.page_count
FROM
sys.dm_db_index_physical_stats(DB_ID(), NULL, NULL, NULL, NULL) AS indexstats
INNER JOIN sys.indexes AS i ON indexstats.object_id = i.object_id AND indexstats.index_id = i.index_id
WHERE
indexstats.database_id = DB_ID()
ORDER BY
indexstats.avg_fragmentation_in_percent DESC;
5–30% fragmentation: reorganize (lighter, non-locking).
>30% fragmentation: rebuild.
Reorganize all indexes in a database:
USE Tascus_Demo_2; -- Replace with your database name
GO
DECLARE @TableName NVARCHAR(128);
DECLARE @IndexName NVARCHAR(128);
DECLARE @SQL NVARCHAR(MAX);
DECLARE index_cursor CURSOR FOR
SELECT
OBJECT_NAME(i.object_id) AS TableName,
i.name AS IndexName
FROM
sys.indexes AS i
JOIN
sys.objects AS o ON i.object_id = o.object_id
WHERE
i.type > 0
AND i.is_disabled = 0
AND o.type = 'U';
OPEN index_cursor;
FETCH NEXT FROM index_cursor INTO @TableName, @IndexName;
WHILE @@FETCH_STATUS = 0
BEGIN
SET @SQL = 'ALTER INDEX ' + QUOTENAME(@IndexName) + ' ON ' + QUOTENAME(@TableName) + ' REORGANIZE WITH (LOB_COMPACTION = ON);';
PRINT @SQL;
EXEC sp_executesql @SQL;
FETCH NEXT FROM index_cursor INTO @TableName, @IndexName;
END;
CLOSE index_cursor;
DEALLOCATE index_cursor;
LOB_COMPACTION = ON ensures large object (LOB) data types are compacted too.
8. Partitioning
For larger tables, partitioning improves performance by letting queries scan only relevant partitions rather than the whole table. Consider for high-volume clients as data grows.
9. Routine Maintenance
Schedule regular maintenance: update statistics, rebuild/reorganize indexes, clean up unused/temporary data.
Automate via SQL Server Agent job:
Create a new SQL Server Agent Job (e.g. "Dynamic Index Reorganization").
Add a job step executing the reorganization script above against the target database.
Set a schedule (e.g. weekly, off-peak).
Run manually once to confirm it works before relying on the schedule.
10. New Client Setup Checklist
Database created from standard Tascus SQL script
Permissions set —
db_ddladmin(preferred) ordb_datawriter+db_datareader+ explicit CREATE TABLE denyConnection tested from each station (SQLOLEDB, TCP 1433)
Full backup scheduled (daily minimum), stored off the DB server, retention confirmed
Recovery model set intentionally (Full + TLog job, or Simple) — not left at default
TLog backup job scheduled (if Full)
Test-restore performed and documented
DB data/log files provisioned on a dedicated non-OS drive
Index maintenance job scheduled (SQL Agent, weekly off-peak)
Partitioning considered for large/high-volume tables
DR/restore approach (RPO/RTO) documented and confirmed with client