Microsoft SQL Server

Frends.MicrosoftSQL.ExecuteQuery / 4.0.0

Summary

Runs SQL against SQL Server, returning rows or an affected count depending on the statement, with parameters passed separately from the text.

Typical use — the general-purpose SQL Server Task; parameterising rather than concatenating is also what keeps injection out of the query

Details

Frends version
5.7 and newer
Agent
Crossplatform
Target framework
net8.0
4.0.02026-11-04
Changed
  • Require Windows-authenticated connection strings and disable pooling when remote credentials are enabled.
  • Breaking If no ErrorMessageOnFailure is set, exceptions are now rethrown instead of wrapping in general Exception.
  • Breaking Moved ConnectionString from Input to new Connection tab.
  • Rollback now uses a non-cancelled token so cancellation of a Process does not prevent transaction rollback.
Added
  • Added new Connection properties UseGivenUserCredentialsForRemoteConnections, Username and Password to support Windows Authentication for remote connections.
3.0.02026-11-04
Changed
  • Updated the task to .NET 8 and added structured error details to failed results.
  • Breaking Removed Result.ErrorMessage; read failed result messages from Result.Error.Message instead.
2.3.02026-01-22
Changed
  • Improve execution of async methods.
2.2.02024-11-26
Added
  • Added method to form JToken from the SqlDataReader so that SqlGeography and SqlGeometry typed objects can be handled.
  • Fixed how Scalar handles the data so that SqlGeography and SqlGeometry typed objects can be handled.
  • Added Microsoft.SqlServer.Types version 160.1000.6 as dependency.
2.1.02024-09-10
Fixed
  • Fixed how null values are handled by setting them as DBNull.Value.
  • Fixed how JValue parameters are handled by adding a check for those values and assigning ToString() method on the values.
2.0.02024-08-01
Changed
  • Breaking The task now uses Microsoft.Data.SqlClient instead of System.Data.SqlClient.
1.2.12024-03-01
Changed
  • Removed finally block from the Task so that the SQLConnection pool is not touched after every call to the ExecuteQuery method.
Updated
  • Newtonsoft.Json to version 13.0.3
  • System.Data.SqlClient to version 4.8.6
1.2.02023-11-30
Changed
  • Breaking QueryParameter.Value type to object so that binary data can be used.
1.1.02023-01-27
Changed
  • Naming: Result.QueryResult to Result.Data.
1.0.02023-01-18
Added
  • Initial implementation
An unhandled error has occurred. Reload 🗙
Reconnecting… Connection lost.