How to scan barcodes into SQL Server

You can connect a barcode scanner directly to Microsoft SQL Server using the Orca Scan mobile app. On each scan, Orca Scan looks up records, populates mapped fields, and can optionally write back updates. SQL Server remains the system of record.

How barcode scanning with SQL Server works

It helps to understand the difference between scanning and saving a barcode.

On scan

On save

Records are never deleted from your SQL Server database.

Before you start

Before connecting Orca Scan to SQL Server, make sure you have:

Connect your Barcode Scanner to SQL Server

  1. Login to the Orca Scan web app
  2. Select the sheet you want to connect to SQL Server
  3. Click the Integrations button on the toolbar
    Orca scan integrations button
    Orca scan integrations button
  4. Click the Connect to the right of the SQL Server connector
    Orca scan sql connectors mssql
    Orca scan sql connectors mssql
  5. Grant the SQL Server connector access to your sheet
    Mssql connector permissions
    Mssql connector permissions
  6. Enter your SQL Server connection details
    Mssql connector connection details
    Mssql connector connection details
  7. Select the database you want to connect to your sheet
    Mssql connector select database
    Mssql connector select database
  8. Select the SQL Server table you want to use
    Mssql connector select table
    Mssql connector select table
  9. Choose how Orca Scan should interact with SQL Server
    Mssql connector access mode
    Mssql connector access mode
  10. Map SQL Server columns to Orca Scan fields using the field mapper
    Mssql connector field mapping
    Mssql connector field mapping

That’s it. Invite your team by adding users and start scanning into SQL Server.

How do Orca Scan fields map to SQL Server?

This table shows how Orca Scan field types map to SQL Server column types. Only the listed SQL Server column types can be mapped.

Orca Scan Type Compatible MS SQL Type
Text VARCHAR, NVARCHAR , TEXT, NTEXT
Email VARCHAR, NVARCHAR , TEXT, NTEXT
URL VARCHAR, NVARCHAR , TEXT, NTEXT
Drop-down VARCHAR, NVARCHAR , TEXT, NTEXT
Unique ID VARCHAR, NVARCHAR , TEXT, NTEXT
GPS Location VARCHAR, NVARCHAR , TEXT, NTEXT
GPS Location (automatic) VARCHAR, NVARCHAR , TEXT, NTEXT
Time TIME, VARCHAR, NVARCHAR , TEXT, NTEXT
Number TINYINT, SMALLINT, INT, BIGINT, DECIMAL , NUMERIC, FLOAT , REAL, MONEY, SMALLMONEY
Number (auto-inc) TINYINT, SMALLINT, INT, BIGINT, DECIMAL , NUMERIC, FLOAT , REAL, MONEY, SMALLMONEY
Number (auto-dec) TINYINT, SMALLINT, INT, BIGINT, DECIMAL , NUMERIC, FLOAT , REAL, MONEY, SMALLMONEY
True/False bit
Date DATE
Date (auto) DATE
DateTime DATETIME, DATETIME2, SMALLDATETIME
DateTime (auto) DATETIME, DATETIME2, SMALLDATETIME
Multi-select VARCHAR, NVARCHAR , TEXT, NTEXT
Currency DECIMAL , NUMERIC
Attachment - not supported -
Photo - not supported -
Signature - not supported -
Formula VARCHAR, NVARCHAR , TEXT, NTEXT
Created by VARCHAR, NVARCHAR , TEXT, NTEXT
Created Date DATETIME, DATETIME2, SMALLDATETIME
Last Modified by VARCHAR, NVARCHAR , TEXT, NTEXT
Last Modified Date DATETIME, DATETIME2, SMALLDATETIME

SQL Server Connector FAQs

Does Orca Scan modify my SQL Server schema?

No. Orca Scan only reads from and writes to existing tables. It never creates, alters, or drops tables or columns.

Does Orca Scan delete records from SQL Server?

No. Records are never deleted from your database. If this would be useful to you, please raise a feature request.

What SQL operations are performed?

On scan, Orca Scan performs a SELECT using the column mapped to the Barcode field. On save, Orca Scan performs an UPDATE on the matched row, or an INSERT if no match exists and write access is enabled.

Which column is used for barcode lookups?

The SQL Server column mapped to the Orca Scan Barcode field.

What permissions does the PostgreSQL user need?

SELECT is required for read access. INSERT and UPDATE are required if write access is enabled.

Does Orca Scan create triggers, jobs, or background processes?

No. All database access is request-based and occurs only during scans and saves.

What happens if the scanner is offline?

The device must be online for SQL Server lookups and writes to occur.

How secure are my database credentials?

Credentials are encrypted, never logged, and never accessible to the Orca Scan team. For best practice, restrict access to 138.68.235.55 and your trusted systems.

What if my database config changes, how do I resolve issues?

If there is an issue with your SQL Server connection:

  1. Go to Integrations > Connectors
  2. The connector will show a red warning, click Resolve Issue
  3. Follow the prompts to fix the issues

How do I change my field mappings after setup?

To change your field mappings:

How do I update existing rows after changing field mappings?

After changing field mappings, existing rows do not update automatically:

Are there any field mapping limitations?

Yes, a couple:

Can I extract data from barcodes before saving to SQL Server?

Yes. You can use Orca Variables to extract data from barcodes such as GS1 before they are saved to your SQL Server database.

Need help scanning barcodes into SQL Server?

We’re happy to help, chat with us live or book a free implementation call.


Request an integration

Need help getting Orca Scan working with your software? Request a Software Integration

Was this guide helpful?

Ready to start scanning?

Close Icon
Get the Orca scan app QR code

Scan the QR code to download the mobile app

Scan the QR code to open this guides on your mobile device