I have a question that may be fairly simple to solve, but I can't find anything in the documentation nor in any website such as StackOverflow.
I'm importing information from a CSV to a SQLite3 database and to do so I use the following routine as to support my importation routine
Sub runSQLiteQuery(path As String, strSQL As String)
Dim conn As Object, rst As Object
Set conn = CreateObject("ADODB.Connection")
Set rst = CreateObject("ADODB.Recordset")
' OPEN CONNECTION
conn.Open "DRIVER=SQLite3 ODBC Driver;Database=" & path & ";"
' OPEN RECORDSET
rst.Open strSQL, conn
rst.Close
' FREE RESOURCES
Set rst = Nothing: Set conn = Nothing
End Sub
My question is:
How do I create the database file in the first place?
I'm using a file created from SQLite3 command in cmd and importing the csv from that, but that's not a good solution for my Excel needs.
Thanks in advance!