Centara
  • Introduction to Centara
  • Getting started with Centara
    • Software and hardware requirements
    • getCentara.exe
    • Install Centara Server
    • Centara Configuration
      • RDM overview
      • Create organization structure
      • General settings
      • Layouts and visual components
        • Creating layouts
        • Assigning layouts in configuration
        • Populating layouts with components
        • Applying functionalty to buttons
        • UI component reference
      • Hardware
        • OPOS installation
          • Epson OPOS
        • Centara server configuration
      • POS Receipts
        • Receipt parts
        • Receipt Directives
          • Formatting directives
          • General directives
          • Hospitality directives
          • Fiscal Printers directives
          • Tender slip directives
        • Receipt logo
        • Receipt template
          • Special formatting
      • POS operators and permissions
        • Create operators and permissions
      • Tenders
      • Other configuration
        • Customer configuration
        • Cash management
          • Setting up cash management
          • Balance report
        • Suspend / retrieve
        • Search
          • Applying customer search
          • Applying product search
            • Style search
            • Stock search
          • Applying transaction search
        • Custom settings
    • Install Centara POS
      • Alternative database configurations
      • Centara Licensing
    • Features
      • Conditional sub-layouts
      • Out of stock warning
  • User guides
    • POS User Guide
      • Operator sign on / off
      • Layouts
      • Selling products
      • Paying for products
      • Voiding
      • Customers
      • Suspend / retrieve
      • Cash management
    • Discount Offer module
      • Getting started
      • Basic discounts
      • Package deals
      • Seasonal offers
      • Miscellaneous
      • Working with the filters
      • Making changes to the discounts
      • Time restrictions
      • Selectors
      • Layered discounts
      • Audit Log
      • Glossary of Terms
    • Loyalty system
      • System overview
      • Creating organization stucture
      • Working with loyalty data
        • General handling
          • Adding loyalty data
        • Giftcards
          • Adding gift card data
        • Store credit
          • Instrument handling
        • Coupons
          • How to setup alphanumeric offer coupon
      • Connecting Centara to Loyalty
      • View loyalty data on POS
      • Loyalty operations
    • Snippet manager
  • Integrations
    • Sentry.io
    • Acumatica
      • Acumatica installation
      • Acumatica Connector
        • Customer creation
        • Cashier Groups
        • Avalara Configuration
        • Common configuration errors
        • General inquiries
  • Development
    • APIs
      • External orders
      • Item API
      • Loyalty API
        • Gift cards
        • Loyalty cards
        • Store credit
    • GraphQL
    • XVal
      • XVal List comprehensions
      • XVal operators
      • XVal examples
      • XVal usage
      • XVal testing
  • References
    • Data processes
      • XVal Library
      • Data process examples
    • POS macros
  • FAQ
    • Centara Server
      • Installation
      • Maintenance
    • Centara POS
Powered by GitBook
On this page
  • LocalDB database for a single Windows user (default configuration)
  • LocalDB configuration for multiple windows users
  • Verifying the configuration
  • Revert to default configuration
  • SQL Server Express
  • Multiple users
  • Database connection properties reference

Was this helpful?

  1. Getting started with Centara
  2. Install Centara POS

Alternative database configurations

The Centara POS uses LocalDB by default and the instance is called centara. It can also run on SQL Server Express or more powerful versions.

If the SQL server instance is called centara or hbi then the POS will automatically adjust server settings and create databases as needed. Under other instance names more manual configuration may be needed.

Under the default settings no additional work is needed for the database except making sure that LocalDB is installed.

LocalDB database for a single Windows user (default configuration)

By default the POS connects to LocalDB, centara instance. To get back to this state once configuration has been changed just make sure there's no database or dbserver properties in the centara.ini configuration file.

LocalDB configuration for multiple windows users

When using a shared LocalDB instance, we must make sure that all users have access to the POS database. The directions below use an SQL user to achieve that.

Create the following SQL script, replacing the <password> with something meaningful.

prepare-db.sql
EXEC sp_configure 'clr enabled', 1;  
RECONFIGURE;  
GO  

create database CentaraWorkstation

create login centarapos with password = '<password>'
go

sp_addsrvrolemember 'centarapos', 'dbcreator'

use CentaraWorkstation
create user centarapos for login centarapos
go

sp_addrolemember 'db_owner', 'centarapos'

Run the following

  1. sqllocaldb create centara

  2. sqllocalb share centara centara (as Administrator)

  3. sqlcmd -S (localdb)\.\centara -i prepare-db.sql

Modify the connection string in the centara.ini file, replacing the <password> with the one you just created.

centara.ini
[CentaraWkst]
Database=Database=CentaraWorkstation;Server=(localdb)\.\centara;User Id=centarapos;Password=<password>

Verifying the configuration

Start the POS. For a new setup, the POS should create all database contents and do the initial synchronization. If this is not a new setup then the POS should start normally and bring up a login window or a day-close dialog if a day close hasn't been performed yet.

Revert to default configuration

To revert to the default configuration just remove the Database= keyword from centara.ini.

Optionally the SQL user and login may be removed for full cleanup.

cleaanup.sql
use CentaraWorkstation
drop user centarapos
go

drop login centarapos
go

The above SQL can be run with the command

  1. sqlcmd -S (localdb)\.\centara -i cleanup.sql

SQL Server Express

Install an SQL Server Express 2014 or later, and name the instance centara.

Multiple users

If multiple Windows users are intended to have access to the database then an SQL user needs to be created.

prepare-db.sql
EXEC sp_configure 'clr enabled', 1;  
RECONFIGURE; 

create login centarapos with password = '<password>'
go

sp_addsrvrolemember 'centarapos', 'dbcreator'

Run prepare-db.sql, and then modify the centara.ini file:

centara.ini
[CentaraWkst]
Database=Database=CentaraWorkstation;Server=(localdb)\.\centara;User Id=centarapos;Password=<password>

Database connection properties reference

Centara.ini database properties in the [CentaraWkst] section.

Keyword

Purpose

Default value

database

Fully specified connection string. Any of the properties below will override the appropriate keyword in the connection string if defined.

dbserver

The database server/instance to use.

(localdb)\centara

dbname

The database name to use.

CentaraWorkstation

dbuser

The SQL user to use. If this is not specified then Windows authentication is used.

dbpassword

The SQL user password for authentication. Omit if using Windows authentication.

PreviousInstall Centara POSNextCentara Licensing

Last updated 3 years ago

Was this helpful?