Hello,
You can use ADO.NET Provider for Pervasive available from
here[
^].
Here[
^] is a link for Pervasive ADO.NET provider documentation. Here is a sample code to connect to Pervasive db,
Imports System.Data;
Imports System.Data.Common;
Imports Pervasive.Data.SqlClient;
Public Class TestDB
Public Sub TestDB()
DIm dbCon As PsqlConnection
dbCon = new PsqlConnection("Server DSN=DEMODATA;Host=localhost")
Try
dbCon.Open()
Console.WriteLine("Connection Successful!")
Catch ex As PsqlException
Console.WriteLine("Failed to Connect")
Finally
dbCon.Close()
End Try
End Sub
End Class
Regards,