Primo.Database.SqlServer 1.0.4

dotnet add package Primo.Database.SqlServer --version 1.0.4
                    
NuGet\Install-Package Primo.Database.SqlServer -Version 1.0.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Primo.Database.SqlServer" Version="1.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Primo.Database.SqlServer" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="Primo.Database.SqlServer" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Primo.Database.SqlServer --version 1.0.4
                    
#r "nuget: Primo.Database.SqlServer, 1.0.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Primo.Database.SqlServer@1.0.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Primo.Database.SqlServer&version=1.0.4
                    
Install as a Cake Addin
#tool nuget:?package=Primo.Database.SqlServer&version=1.0.4
                    
Install as a Cake Tool

About

Primo.Database.SqlServer is a set of ready-to-use activities for Primo RPA Studio designed to automate interaction with MS SQL Server databases. It addresses the need to connect to SQL Server databases and execute database operations within automated processes. Key activities include: connecting to a database, executing queries, inserting data, and disconnecting from the database. The package can be added to any Primo RPA Studio project via the built-in dependency manager.

How to Use

In Primo RPA studio, create a project that will be executed by Primo RPA robot. Install this package via the ".Dependencies → Manage Dependencies" menu; the "Detabase → SQL Server" node with package elements will appear in Elements tree .
There are four elements in the package: "Connect (SQL Server)", "Execute Query (SQL Server)", "Insert (SQL Server)", "Disconnect DB (SAP HANA)". "Connect (SQL Server)" is the main one, because it is not possible to interact with any DB without connecting. It is highly recommended to use the "Disconnect DB (SQL Server)" element after interacting with the database to free up external resources.
In pure code projects use the "Connect (SQL Server)" element as follows:

//wf: [LTools.Common.Model.WorkflowData] parent algorithm link
//db - Connection string: [String] Database connection string (SERVER=<hostname>:<port>; DATABASE=<database name>; UID=<username>;PWD=<password>)
Primo.Database.SqlServer.DatabaseApp app = Primo.Database.SqlServer.DatabaseApp.Init(wf, db);

Pure code for "Insert (SQL Server)" element:

//app - [Primo.Database.SqlServer.DatabaseApp] DB application
//query - Table: [String] Table name
//data - Data: [System.Data.DataTable] Data to insert
//timeOut - Time-out: [Int32] Query time-out
//res - Records: [Int32] Affected records
int res = app.Insert(query, data, [timeOut]);

Key Features

  • User-friendly, intuitive interface
  • High performance
  • Supports .NET Framework 4.6.1+

Main Types

  • Primo.Database.SqlServer.DatabaseInst
  • Primo.Database.SqlServer.DatabaseApp
  • Primo.Database.SqlServer.Elements.WFConnectDatabase
  • Primo.Database.SqlServer.Elements.WFExecuteQuery
  • Primo.Database.SqlServer.Elements.WFInsert
  • Primo.Database.SqlServer.Elements.WFDisconnectDatabase

Feedback

Bug reports and contributions are welcome at Primo RPA chat

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.4 72 3/25/2026
1.0.3 71 3/24/2026
1.0.2 770 10/20/2022
1.0.1 592 7/20/2022
1.0.0 590 7/6/2022