Skip to sidebar Skip to content
Ipercube Technical
Jack of all trades, master of none
Date: Time: - Stardate:
Welcome, Log in by clicking  Here!
SS64
MDN
Stack
Code
GitHub
Wiki
Convert
V Studio
  • Home
  • VB Functions
    • Access Functions
    • Assembly Info
    • Color/Image Functions
    • Data Table Functions
    • Email Functions
    • Active Directory Functions
    • LDAP Functions
    • Excel Functions
    • Logging Functions
    • Source Code Retrieval
    • String Functions
    • Sql Functions
    • Object Utilities Functions
    • System and Utilities
    • Utility Forms
  • VB Classes
    • Environment Variables Helper
  • ABAP
    • ABAP Reports
    • ABAP HTTP Functions
Ipercube Technical
  • Home
  • VB Functions
    • Access Functions
    • Assembly Info
    • Color/Image Functions
    • Data Table Functions
    • Email Functions
    • Active Directory Functions
    • LDAP Functions
    • Excel Functions
    • Logging Functions
    • Source Code Retrieval
    • String Functions
    • Sql Functions
    • Object Utilities Functions
    • System and Utilities
    • Utility Forms
  • VB Classes
    • Environment Variables Helper
  • ABAP
    • ABAP Reports
    • ABAP HTTP Functions

Sql Functions

Functions to interact with Micosoft SQL server.

Because my library can be referenced by a Framework or Core project, I created two different projects in the same solution that share the same source code but with different target. So one project is targeted to Framework 4.x (where I defined the variable FRAMEWORK) and the other to Core 8 (where I defined the variable CORE)

In this case the compiler uses different library for Sql, the classical System.Data.SqlClient for Framework project and the more recent Microsoft.Data.SqlClient for Core project (where System.Data.SqlClient is deprecated).

Here the required Imports:

VB
Imports System.Data
Imports System.Reflection
Imports System.Text.RegularExpressions

#If CORE Then
Imports Microsoft.Data.SqlClient
#ElseIf FRAMEWORK Then
Imports System.Data.SqlClient
#End If

The Functions list:

  • Check Sql Connection
  • Execute Non Query Sql Cmd (Signature 1)
  • Execute Non Query Sql Cmd (Signature 2)
  • Execute Query On DataTable
  • Load Sql Table
  • Read Sql Table Chunk
  • Sql Bulk Write
  • Table Exists
Posted by ipercube


© 2026 Ipercube Design