Microsoft SQL Server Connector

Microsoft SQL Server Connector


The "SQL Server" Connector pulls data from Microsoft SQL Server.

Using rowversion fields

Many integrations run frequently and only want to pick up records modified since the last time the integration ran. This can be accomplished with Date/Time fields, but a better option is to use the MSSQL Row Version type of filed. This is a data type that exposes automatically generated, unique binary numbers within a database. rowversion is generally used as a mechanism for version-stamping table rows. The storage size is 8 bytes. The rowversion data type is just an incrementing number and does not preserve a date or a time. See:

To accomplish this: Setup your origin to use the Rowversion field. Note that you must convert the rowversion field to the bigint field type. Example:

SELECT *, CONVERT(bigint, row_version) num_row_version  FROM TBL_Company
where CONVERT(bigint, row_version) > '@@VAR:LastRowVersion@@'
order by num_row_version asc

Retrieve the LastRowVersion with a Before Once Before Conn script. Note that I am using SQLite Xrefs so I can read and write to the same Xref in the same Job. Example:

Function ScriptedVariable
End Function

Set the LastRowVersion ewith an After Repeat Each Row script. Note that I am using SQLite Xrefs so I can read and write to the same Xref in the same Job. Example:

Sub VBScriptProcedure
	If Not PreviewMode Then
		XrefWrite "LastRowVersion","Accounts","@@ORG:num_row_version@@"
	End If
End Sub

Data Source
Initial Catalog (Database Name)

SQL Server Connection Edit Screen

    • Related Articles

    • Microsoft Dynamics ERP - AX Connector

      Our Microsoft Dynamics AX Connector is no longer supported.  We will offer support for Microsoft Dynamics 365 Finance and Operations in the near future. Parameter Description Domain Object Server Dynamics AX Connection Edit Screen
    • Microsoft Dynamics ERP - GP Connector

      Dynamics GP Version Support The provider supports read access to Dynamics GP 2010, 2013, and 2015 through the Dynamics GP Web services APIs. Web services must be enabled for your instance. Establishing a Connection Authenticating to Dynamics GP To ...
    • Microsoft Dynamics CRM Connector

      Versions of MS CRM Supported: On-Prem v2011 and later, MS CRM Cloud Parameter Description URL After logging into Dynamics CRM, this is the first portion of the URL that displays in your browser's address bar. If your account is hosted by Dynamics ...
    • Microsoft Dynamics NAV / Business Central

      As of June 15, 2020, this connector supports MS NAV 2013 and higher. Establishing a Connection Connecting to DynamicsNAV Before the provider can connect with DynamicsNAV, OData services need to be enabled on the server. Once OData Services are ...
    • Excel Connector

      Establishing a Connection Connecting to Excel Data Sources The StarfishETL Excel Connector allows connecting to local Excel resources.   Browse to your desired Excel file on your local machine or on your network.  Please use UNC and not drive letter ...