Skip to content

Live

Project database (SQL Server)

Live writes its records to files on its own computer. If SQL Server is selected in the Live settings, each project uses its own database, and records go to the local files and to the database together.

What it is for

By default Live keeps alarm, event, recipe, report and archive records in the .veri folder next to the Live file. If Record storage is set to SQL Server database in Studio, the project gets its own database. Live creates the database and its tables by itself on first start. Other programs such as Excel, reporting tools or an MES can read the records with SQL.

The local files are still written and serve as a safety copy of the records. If the database cannot be reached, records wait in the local file and are sent from where they stopped once the connection is back. The same record is never written to the database twice.

Live settings › General › Database: record storage set to SQL Server, default server and database name, daily backup.
The Live settings › General › Database card in Studio: record storage set to SQL Server, with the default server and database name.

Settings in Studio

Live settings › General › Database Meaning
Record storage Local file (default) or SQL Server database.
Server If empty, .\FABYAVISION: the SQL Server Express that comes with the setup. For another server, enter BILGISAYAR\ORNEK or BILGISAYAR,port.
Database name If empty, FV_ followed by the project name (Turkish letters are replaced by their English equivalents). It starts with a letter and contains only English letters, digits and _. If the database does not exist, Live creates it.
SQL user, SQL password If empty, Windows authentication is used (recommended). The password is stored obfuscated in the project file, which is not encryption; it is not sent to browser viewers.
Daily backup On by default. Details below.

The Test connection button below the card connects to the server from the Studio computer. It reports whether the database exists and, if not, whether there is permission to create it; it writes nothing.

Tables

Record Table
Alarm history FV_Alarm, view FV_AlarmView
Event log and operator actions FV_EventLog
Recipe records FV_RecipeRecord, FV_RecipeValue
Recipe transfers FV_RecipeTransfer
Report records FV_Report, FV_ReportValue, view FV_ReportView
Data archive FV_Archive, view FV_ArchiveView
Tag, archive, recipe and report names FV_Name

Each row has two time fields: UnixMs (UTC, milliseconds) and Time (local time of the Live computer). The views show names instead of IDs. Other logs go to FV_Log, and the persistent data of Live goes to FV_Store.

Sample queries
 SELECT TOP 100 [Time], AlarmNo, EventName, [Text] FROM FV_AlarmView ORDER BY [Time] DESC // the last 100 alarm events   SELECT [Time], Tag, [Value] FROM FV_ArchiveView WHERE Tag = 'T101_Seviye' // the archived values of one tag   SELECT [Time], Report, RecordNo, UserName FROM FV_ReportView // report records  

Reading, retention and backup

  • The alarm, event, report and archive views in Live read from the database if it is connected and those records have been sent; otherwise they read from the local file.
  • The retention settings of reports and archives still apply: when a local monthly file is deleted, the rows of the same month are deleted from the database too. Alarm and event records are not deleted automatically.
  • If Daily backup is on, Live backs up the database every day at the first opportunity after 01:00. There is one file for each day of the week (FV_Demo_Projesi_1.bak … _7.bak); after a week the oldest is overwritten. The files are in the backup folder of SQL Server.
  • When the connection drops, comes back or a backup fails, Live writes a system entry to the event log.

In a redundant server pair

If the server is empty or .\FABYAVISION, each Live writes to the database on its own computer, giving two separate, complete copies. For one shared database, enter a computer name as the server (for example PC-A\FABYAVISION). Both Live instances then write to the same database, and the same record is not written twice. The shared server must be reachable from both computers. Setting up the pair is described on the server redundancy page.

Installing the database server

  1. Select the component

    In the Components step of the setup program, select Database server (Microsoft SQL Server 2025 Express). It is not selected by default and is needed only on the computer where Live runs.

  2. Accept the license

    The Microsoft SQL Server license terms are shown on a separate page. The component is not installed unless they are accepted.

  3. Wait for the installation

    SQL Server is installed as an instance named FABYAVISION. If the package is not inside the setup program, it is downloaded from Microsoft (about 750 MB, an internet connection is needed), or SQLEXPR_x64_ENU.exe placed next to the setup program is used.

  4. Select it in the project

    In Studio, set Record storage to SQL Server database on the Live settings › General › Database card, then load the project into Live.

  • SQL Server 2025 Express needs 64-bit Windows 10 / 11 or Windows Server 2019 or later. On other systems the component is not installed, and Live keeps writing records to the local file.
  • The installation needs administrator rights. The Windows account that runs the setup becomes the SQL Server administrator. If Live runs under another Windows account, give that account rights in SQL Server or define an SQL user.
  • The instance is installed closed to the network (TCP/IP and named pipes off); only programs on the same computer connect to it.
  • SQL Server Express is free; one database can be at most 50 GB. For a larger volume of records, another SQL Server can be selected.
  • The trial installer does not include this component; Live can connect to an existing SQL Server.

What is not stored in the database

  • User accounts and project settings stay in the project file.
  • Connection passwords and station settings are not sent to the database.
  • Browser viewers do not connect to the database, and the database setting is not sent to them.
  • Time machine recordings stay in the project’s data folder.

Frequently asked

Does it work without SQL Server?

Yes. The default record storage is the local file; the database is optional and is chosen per project.

What happens if the database connection drops?

Live keeps running. Records are still written to the local file and are sent to the database once the connection is back; the state is written to the event log.

Related pages

Try it free

Download the trial, open the sample project and see this feature on your own screen.