Article
On this page

Create a SQL database and copy SQLite application data

Create a missing destination database and add persistent SQLite records without overwriting SQL Server records.

Before you start

  • A backup of Connections.sqlite, an authorized SQL account, and reviewed server/database fields.

Steps

Copy SQLite data to SQL Server

The destination database must already exist; use Create Database separately if missing. Copy SQLite Data to SQL Server automatically initializes required destination schemas before the row-copy transaction. The SQL account needs schema-creation and row-write permissions. A successful Test SQL Setup establishes connectivity, not those permissions.

Equivalent records are skipped. Conflicts can roll back newly inserted rows in the row-copy transaction; schema initialization occurs beforehand and is not necessarily rolled back with the rows. Retain the report and seek administrator/CADPEAK help rather than deleting conflicting destination records.

  1. Select SQL Server and enter the intended target connection values.
  2. Test connectivity and confirm the target database is the intended one.
  3. Click Copy SQLite Data to SQL Server.
  4. Read the confirmation carefully. It uses the SQL settings currently entered; the copy action does not save those settings.
  5. Confirm Yes to copy, or No to cancel.
  6. Read the final result. The operation copies application data, skips equivalent records, and does not overwrite existing SQL Server records. Conflicts roll back new inserts.
  7. If you intend to keep this target, use Save SQL Settings separately.
  8. Restart if needed and verify the copied rule/definition data in its workspaces.

Expected result: Application data can be copied to the shared store. Drawing/project caches remain separate SQLite files. A conflict result is not evidence that all records were copied.

Create the destination first if needed

  1. Select SQL Server and verify Server name:, Authentication:, and Database:.
  2. Click Create Database for the intended missing destination with an authorized account.
  3. Read the result. Existing databases are not replaced; lack of permission requires administrator assistance.
  4. Use Test SQL Setup to test the entered connection.
  5. Then follow the copy steps above. Save SQL Settings remains separate.

What to expect

The copy covers saved connection rules, assembly definitions, library folders/assignments, validation history and recorded assembly matches.

Important notes

  • Test SQL Setup does not automatically create a database.
  • Create and copy use current UI values without implicitly saving SQL settings or the transient password.
  • Equivalent destination records are skipped; differing records with occupied IDs are conflicts, not replacements.
  • The row-copy transaction prevents partial inserts on conflict. Automatic schema initialization happens beforehand and may remain after row rollback.
  • Drawing/project caches, route files, and assembly images are excluded.
  • An unexpected root-folder conflict can occur during repeated copying. Do not delete destination rows to force a copy; retain the report for CADPEAK.

Screenshots

Search Plant Detective help

Type to search all 45 help pages.