How fast is SQLite compared to Microsoft Access MDB?

后端 未结 4 1918
青春惊慌失措
青春惊慌失措 2020-12-05 11:31

Currently I\'m thinking about replacing the usage of Microsoft Jet MDB databases on a single-user .NET C# Windows Forms application by a SQlite database.

My goal is

4条回答
  •  伪装坚强ぢ
    2020-12-05 11:50

    In case you decide to do your own benchmark testing, I offer this procedure to export your Jet tables to CSV files. Then you can import them into your SQLite database.

    Public Sub DumpTablesAsCsv()
        Dim db As DAO.Database
        Dim tdf As DAO.TableDef
        Dim strCsvFile As String
        Dim strFolder As String
        Dim strTable As String
    
        strFolder = CurrentProject.Path & Chr(92)
        Set db = CurrentDb
        For Each tdf In db.TableDefs
            strTable = tdf.Name
            If Not (strTable Like "MSys*" Or strTable Like "~*") Then
                strCsvFile = strFolder & strTable & ".csv"
                DoCmd.TransferText acExportDelim, , strTable, _
                    strCsvFile, HasFieldNames:=True
            End If
        Next tdf
        Set tdf = Nothing
        Set db = Nothing
    End Sub
    

提交回复
热议问题