Table of Contents


Overview

This connector reads Microsoft SQL Server tables by running a PowerShell script on a Windows host instead of connecting from the ReadyWorks application server. SQL Server is the dominant relational database on Windows estates and the back end of most Windows-based management tooling, including Configuration Manager site databases and the majority of Windows ITSM, CMDB and asset platforms.

The connection names the SQL Server instance, a port (the default is 1433), an optional source database, optional credentials, and a temporary working path on the Windows host. Each job’s Data Selection field carries the T-SQL statement to run, and the result set is written to the named staging table. The script CX_MSSQL.ps1 performs the connection and the query.

The deployment difference is the point of this connector. Running from a Windows host puts the query inside the Windows security and network boundary, which matters for two reasons. It avoids exposing a database port to the ReadyWorks application server when the instance sits in a restricted segment. And because Username and Password are optional on this form, where the direct Microsoft SQL connector requires them, it offers a path for instances that do not accept SQL Server authentication logins.

The connector is inbound only. It reads query results and writes staging tables, and it issues no writes to the source database.

NOTE:windows_only is set on this connector. The ReadyWorks ETL host that runs these jobs has to be a Windows machine with PowerShell and a SQL client available to it, and it needs network reachability to the SQL Server instance. A Linux-hosted ReadyWorks deployment cannot run this connector.

Connector Properties

PropertyValue
IdentifierRWS_MSSQL
NamePowershell: Microsoft SQL
DescriptionConnector for accessing Microsoft SQL database tables.
Job TypesInbound Only
Order820
EnabledYes
LockedYes
Block UpdateNo
Single AuthenticationNo
Windows OnlyYes
Connector Version2025-12-05
HooksNone
Additional Job FieldsNone
Image

Authentication Methods

One method ships: a PowerShell connection to a SQL Server instance from the Windows ETL host.

MethodIdentifierBase MethodScriptOrderEnabledConfig Fields
Username / PasswordRWS_MSSQL_17bb6b78c0RWS_MSSQL_17bb6b78c0CX_MSSQL.ps110Yes6

NOTE: Source DB Name, Username and Password are all optional here, where the direct Microsoft SQL connector requires all three. Leaving the credentials blank means the script connects under whatever Windows identity the ETL process runs as, so confirm with your DBA which login the run actually presents and that it holds the read permissions the query needs.

NOTE: Source DB Name is stored in the auth_data_node column, which is labelled Authentication Data Node on other connectors. The value is the database name.

Method 1: Username / Password (RWS_MSSQL_17bb6b78c0)

Connect to a MS SQL Server

Username / Password runs CX_MSSQL.ps1 against the instance in Source Server on the port in Source Server Port (the default is 1433). Username, Password and Source DB Name are all optional on this form. Server Temporary Working Path is required and names the directory on the Windows host where the script stages its output.

Connection Configuration Fields (6)

OrderLabelTypeRequiredDefaultMax LenTooltip
10Source ServertextYes255Enter name of the source server
20Source Server PorttextYes14335Enter port number of the source server
30Server Temporary Working PathtextYesstorage/etl5255Enter path where temporary files are stored during data processing (exclude starting and ending backslash)
40UsernametextNo1024Tooltip for Username
50PasswordpasswordNo64000Tooltip for Password
200Source DB NametextNo255Enter name of the source database

Authentication Configuration

cURL options:

OptionAuthentication CallData Calls
USERAGENTMozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0Same
SSL_VERIFYHOSTfalseSame
SSL_VERIFYPEERfalseSame
RETURNTRANSFERtrueSame
FOLLOWLOCATIONtrueSame
FAILONERRORtrueSame

Inbound Job Fields Enabled (13)

These are the job-level settings exposed for a PowerShell Microsoft SQL extract. Data Selection holds the T-SQL statement.

OrderLabelTypeRequiredDefaultTooltip
10Job DescriptiontextYesEnter description of the Job
20Job SchedulelookupYesDailySelect frequency Job should run
30EnabledradioYesYesChoose if Job is enabled
60Allow Empty TableradioNoYesChoose if an empty table is allowed
70Destination TabletextYesEnter name of the destination table
80Data IdentitytextNoEnter identity of the Job
90Data SelectiontextareaNoEnter connector specific data selection command of the Job
120Append New Data to Existing TablesradioNoNoChoose if new data will append to the existing destination table, or will create a new destination table
130Fields to IndextextNoEnter fields to index
150Request Unique Key FieldtextNoEnter request unique field key of the Job
160Request Sort By FieldtextNoEnter field to sort by
290Request LimittextNoEnter request limit of the Job
560OrdertextYesEnter order of the Job

Inbound Job Templates (1)

One inbound template ships. It is enabled by default and carries a placeholder query, so deal with it before the first scheduled run.

#Job DescriptionDestination TableAPI End PointEnabledWhat It Pulls
1MS SQL Table Datamssql_dataNot setYesA skeleton job carrying the statement SELECT * FROM {tablename} and writing to the mssql_data staging table. Replace the statement, the destination table and the data identity with your own.

Job Template Configuration

Settings

SettingValue
Order10
EnabledYes
Job ScheduleDaily (15 1 * * *)
Destination Tablemssql_data
Data Identitymssql_data
Allow Empty TableYes
Append Files to Same Destination TableNo
Append New Data to Existing TablesNo
Use Unparsed DataNo
Convert UUID-Keyed Objects to RowsNo
Ignore XML AttributesNo
Log Raw API CallsNo
Method TypeGET
Body Data Sending MethodJSON Encoded Data

Job Parameters and Enumeration

MS SQL Table Data

Data Selection: SELECT * FROM {tablename}

Outbound Job Templates (0)

This connector ships no outbound templates and does not support outbound jobs.

Last updated on 11/4/2026

Attachments