Home / How-to / Bring in your data
Bring in SQL Server and Access
Connect to a SQL Server database or an Access file, pick the tables you need, and bring them in with their own column types.
The short version
- A SQL Server Acquisition reads a table or view from a SQL Server database. A Microsoft Access Acquisition reads a table from an .accdb or .mdb file.
- There is no user name or password to type. You connect to SQL Server as your Windows account, or through Entra ID for Azure SQL, and nothing secret is stored.
- Each element reads one table. Or it lists the tables, you tick several, and Update child tables makes an acquisition of its own for each.
- Read columns brings in the columns with a Data Type taken from the database. Untick Include for the ones you don't need.
- To read Access files, the computer needs the Microsoft Access Database Engine installed.
In this guide
What it is
The two database acquisitions bring tables from a database into your project:
- SQL Server Acquisition for SQL Server and Azure SQL. It reads a table or a view, so a view your database team already wrote can do the joining and filtering for you.
- Microsoft Access Acquisition for Access files. It reads a table from one .accdb or .mdb file, or the same table from a folder of them.
If you have used Get Data from a SQL Server database in Power BI, or a connection in Tableau, the idea is the same. You pick the server and the database, then the tables, and ConradBI brings the rows in on each run.
Each acquisition writes a table of its own, named after the element, not after the source table. The elements you build next, such as a Prep, a Grain or a Dimension, bind to its columns.
Both work in two ways:
- One table, read by the element itself. Good for one table, or when you want to name and tune each one.
- Several tables, each made into a child element of its own under this one. Good for bringing in a whole set of tables with one connection.
Before you start
You need:
- A project open in ConradTool, in Developer Mode, where the Elements tree, the Editor and the Services panel are.
- For SQL Server: the server's name, and permission for your Windows account to read the database. When the project is processed somewhere else, that computer's account needs the same permission.
- For Access: the Microsoft Access Database Engine on your computer. See What Access needs.
This guide uses two sources from the running example:
| Source | Holds |
|---|---|
SQL Server database SalesDB |
The tables dbo.Orders, dbo.Products, dbo.Sites and dbo.Customers |
Access file Returns.accdb |
A Returns table |
Two elements of a project can't share a name, and the project's Excel Acquisitions are already called Orders, Products, Sites and Customers. So this guide uses other names, such as Orders SQL.
Your first table: dbo.Orders
This takes about five minutes.
- In the Elements tree, click the + on the Acquisitions row and pick Add SQL Server Acquisition.
- In Add element, type
Orders SQLunder Name and click OK. The new element opens in the Editor. - Under Tables to acquire, leave One table or view, read by this element selected.
- Under Connection, type the server's name in Server, such as
SQLPROD01orSQLPROD01\SALES. - Leave Sign in with on Automatic, and click Connect. The line under the button says "Connected." and how many databases it found.
- Pick
SalesDBin the list beside Database. - Under Source object, pick
dboin the list beside Schema, thenOrdersin the list beside Table / View. Each entry shows whether it is a table or a view. - Click Read columns. The Columns list fills with the table's columns, each with its SQL type and the Data Type it loads as.
- Untick Include for any column you don't need, such as Email.
- Save the element with Ctrl+S, or ProjectSave.
- In the Services panel, click Process current. On the Orchestration tab, the Status turns to Complete and Rows shows how many rows loaded. The Data tab shows them.
Each run reads the table again and replaces the element's rows, so a run always brings the table as it is now.
Connecting to SQL Server
The Connection group asks for three things: the Server, how to Sign in with, and the Database. It never asks for a user name or a password, so there is none to store. Under the database, the editor names the Windows account you browse as, and reminds you that a processor reads as its own service account.
| Sign in with | Use it for |
|---|---|
| Automatic | Almost always. Windows for a server on your network, Entra ID for an Azure SQL server |
| Windows (integrated) | Your Windows account, or a processor's own service account |
| Entra ID (integrated) | Azure SQL, signing in with your Windows identity through Entra ID |
| Entra ID (default) | Azure SQL, with whatever Entra ID sign-in the computer has, such as a managed identity |
| Entra ID (managed identity) | Azure SQL, as the managed identity of the Azure machine or app that processes |
Automatic picks Entra ID when the server's name ends in an Azure SQL address such as .database.windows.net, and Windows for any other server. A database that only accepts a SQL login, with its own user name and password, can't be read.
The Database list shows the server's own databases, not the system ones. You can also type the database's name in the box beside the list.
The Server and Database boxes take an environment variable through the icon at their end. That is how one project reads a test server while you build it and the live server when it goes live.
Tip: When the project stores its data on the same SQL Server it reads from, the rows are copied on the server and never travel through your computer. The Insert Mode column on the Orchestration tab then says Select Into.
Columns and their types
Read columns lists every column of the table or view, in the database's order. Each row shows:
- Include: whether the column is loaded. Untick it to leave the column out, and it isn't offered to other elements either.
- Column: the column's name, as the database has it.
- SQL type: the column's type in SQL Server, such as
intornvarchar. - Data Type: how ConradBI loads it. It is set from the SQL type, and you can change it.
| SQL type | Data Type |
|---|---|
bit |
True or False |
tinyint, smallint, int |
Number |
bigint |
Big Number |
decimal, numeric, money, smallmoney, float, real |
Decimal |
date |
Date |
datetime, datetime2, smalldatetime, datetimeoffset |
Date & Time |
char, varchar, nchar, nvarchar and the other text types |
Text up to 100 characters, Paragraph up to 4,000, Book for longer |
uniqueidentifier, time |
Text |
binary, varbinary, image, timestamp, rowversion |
Book, as hex text such as 0x1A2B |
xml, geography, geometry, hierarchyid, sql_variant |
Book, as their text, such as POINT (2 1) |
A column of any other SQL type has no Data Type, and the line under Read columns says how many: "of a SQL type the tool doesn't know have no Data Type". Pick a Data Type for each one, Book to read any value as text, or untick Include. If you process with such a column still ticked, the run stops before it reads a row and names the column and its SQL type.
If you change the Data Type, a value that doesn't convert to it loads empty.
Picking or typing another database, schema or table clears the columns read from the one before, and the line under Read columns says so. Click Read columns again. Click it too after the table's columns change in the database.
Several tables at once
To bring in dbo.Orders, dbo.Products, dbo.Sites and dbo.Customers with one connection, let one element make an acquisition for each.
- Add a SQL Server Acquisition called
SalesDB. - Under Tables to acquire, pick Several tables and views, each a child element of its own under this one.
- Under Connection, fill in Server, click Connect and pick
SalesDBbeside Database. The Tables list fills with the database's tables and views. - Tick Include for
Orders,Products,SitesandCustomers. As you tick each one, its columns are read, and the Columns cell says how many. - The bar above the list turns to the warning colors: "The child tables are out of sync with this configuration." It names the elements it will create.
- Click Update child tables. Four new SQL Server Acquisitions appear under
SalesDBin the tree:SalesDB / Orders,SalesDB / Products,SalesDB / SitesandSalesDB / Customers. The bar now says they are in sync. - Save
SalesDB, then process the four children: click Process all, or tick them on the Orchestration tab and click Process checked.
How the parent and its children work together:
- The parent reads nothing. It holds the connection and the list. It has no columns of its own, and a run leaves it alone. The children are what you build on and what processes.
- Each child is named Parent / Table, with the schema too when two schemas have a table of the same name.
- Only the button changes the children. Saving doesn't. A table ticked or unticked, or the parent renamed, puts the bar out of sync until you click Update child tables.
- Removing asks first. When an unticked table's child would go, ConradBI names it and every element built on it, and changes nothing unless you say yes.
- A child's connection and table come from its parent. Its editor says so, and the parent's Update child tables brings it back in line.
- Re-read columns reads the ticked tables' columns again, for a table that changed in the database. Then click Update child tables to pass the change on.
When the project is stored in the source database
A project can store its processed tables in SQL Server, and the Services panel shows where beside Process all: "Storage: Sql Server" or "Storage: In Memory". Each element's stored table takes the element's name, and a run drops the stored table before it writes the new rows.
So one case is refused. Say the project is stored in SalesDB, schema dbo, on the same server it reads from, and a SQL Server Acquisition named Orders reads dbo.Orders, as it could in a project with no Excel Acquisition of that name. Its stored table would be dbo.Orders itself, and storing would drop the source. ConradBI stops the run before anything is written. The Status reads "Failed: This SQL Acquisition would store its rows in [SalesDB].[dbo].[Orders], the table it reads them from", and the message ends with what to do. Rename the element, for example to Orders SQL, or store the project in another database or schema. Nothing in the source was touched.
Microsoft Access
A Microsoft Access Acquisition reads a table from an Access file. The walkthrough reads the Returns table of Returns.accdb.
- Add a Microsoft Access Acquisition called
Returns. - Under Tables to acquire, leave One table, read by this element selected.
- Under Source, leave Source set to File. Click Browse… next to File path and pick
Returns.accdb. - Under Table, click Read tables. The line below says how many tables it found.
- Pick Returns in the list beside Read tables. Its columns are read at once, and the Columns list fills, each with its Data Type.
- Untick Include for any column you don't need, then save and process as usual.
Only the file's tables are listed. Access queries aren't.
Access's own types load like this:
| Access type | Data Type |
|---|---|
| Yes/No | True or False |
| Number (Byte, Integer, Long Integer) | Number |
| Large Number | Big Number |
| Number with decimals (Single, Double, Decimal), Currency | Decimal |
| Short Text | Text |
| Long Text | Book |
| Date/Time | Date & Time |
Attachment and OLE Object columns get no Data Type. Untick Include for them.
A folder of Access files
When the same database arrives as several files, one per branch or one per month, set Source to Folder, give the Folder path, a File filter such as *.accdb, and a Sample file. The editor lists the sample file's tables. A run reads the same table out of every matching file, adds the rows together, and adds a FileName column with the name of each row's file.
Several Access tables at once
Pick Several tables, each a child element of its own under this one, click Read tables, and tick the tables you want. Update child tables then makes a Microsoft Access Acquisition for each, named like Returns / Returns, exactly as for several SQL Server tables.
What Access needs
ConradBI reads Access files through the Microsoft Access Database Engine, also called the ACE OLE DB provider. Without it, Read tables says "Failed to read tables: Could not open the Access file. Ensure the Microsoft Access Database Engine (ACE OLE DB provider) is installed."
Install the Microsoft Access Database Engine from Microsoft on every computer that reads the file: yours, and any computer that processes the project. ConradTool is a 64-bit program, so it needs the 64-bit engine.
When something goes wrong
| What you see | What to do |
|---|---|
| "Connection failed: …" under Connect | Check the Server name, including any instance name after a backslash, and that your account may sign in. For Azure SQL, pick an Entra ID option under Sign in with |
| "Failed to load the tables and views: …" | Check that your account may read that database, or pick another one |
| "… of a SQL type the tool doesn't know have no Data Type …" after Read columns | Pick a Data Type for those columns, or untick Include |
| Status says "Failed: The tool has no data type for column …" | The same columns, found at processing. The message names each one and its SQL type |
| Status says "Failed: No columns are selected (all are ignored or none were read)." | Click Read columns, and leave at least one column ticked |
| "The table changed, so the columns read from the one before were cleared. Press Read columns to read this one's." | You picked another database, schema or table. Click Read columns |
| Status says "Failed: This SQL Acquisition would store its rows in …" | Rename the element, or store the project in another database or schema. See When the project is stored in the source database |
| "Not listed by the database now" in the Tables list | That ticked table was dropped or renamed. Untick it, then click Update child tables |
| The bar says the child tables are out of sync | Click Update child tables. Saving doesn't update them |
| The parent element has no columns to bind to | A parent of several tables reads nothing. Build on its children |
| "Could not open the Access file. Ensure the Microsoft Access Database Engine (ACE OLE DB provider) is installed." | Install the 64-bit Microsoft Access Database Engine. See What Access needs |
| "Access file not found: …" | Check File path, or Sample file for a folder |
| Status says "Failed: No table selected." on an Access element | Click Read tables and pick the table |
Reference
SQL Server Acquisition
| Group | Field | What it does |
|---|---|---|
| Tables to acquire | One table or view, read by this element | The element reads one table or view |
| Tables to acquire | Several tables and views, each a child element of its own under this one | The element lists tables, and makes a child for each ticked one |
| Connection | Server | The server, with its instance name if it has one |
| Connection | Sign in with | Automatic, Windows (integrated) or one of the Entra ID options |
| Connection | Database | The database to read, picked from the list or typed |
| Connection | Connect | Connects and lists the databases |
| Source object | Schema, Table / View | The table or view to read |
| Source object | Read columns | Reads its columns into the list |
| Columns | Include, Column, SQL type, Data Type | Whether to load a column, its name, its type in SQL Server, and how it loads |
| Tables | Include, Schema, Table / View, Type, Columns | The tables and views to make children for |
| Tables | Re-read columns, Update child tables | Reads the ticked tables again, and brings the children in line |
Microsoft Access Acquisition
| Group | Field | What it does |
|---|---|---|
| Tables to acquire | One table, read by this element | The element reads one table |
| Tables to acquire | Several tables, each a child element of its own under this one | The element lists tables, and makes a child for each ticked one |
| Source | Source | File, Folder or Producer Element |
| Table | Read tables | Lists the file's tables |
| Table | Table name | The table to read, filled in when you pick one |
| Columns | Include, Column, Data Type | Whether to load a column, its name, and how it loads |
| Tables | Read tables, Re-read columns, Update child tables | Lists the tables, reads the ticked ones again, and brings the children in line |
Missing something?
Tell us what you were trying to do and what this guide didn't answer. We update it with every release.
Write to usWhat changed in this guide
- November 21, 2026: Reviewed against ConradBI 1.2.59.
- October 31, 2026: First edition, written for ConradBI 1.2.52.
