Guest User

Untitled

a guest
Jan 20th, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. Imports Microsoft.Office.Interop.Access.Dao
  2.  
  3. Module Module1
  4.  
  5. Sub Main()
  6. Dim dbEng As New DBEngine()
  7. Dim ws As Workspace
  8. Dim db As Database
  9. ws = dbEng.CreateWorkspace("", "admin", "", WorkspaceTypeEnum.dbUseJet)
  10. db = ws.OpenDatabase("z:\docs\test.accdb", False, False, "")
  11. db.Execute("SELECT * INTO Newtable From [ODBC;DSN=MySQL;].test")
  12.  
  13. End Sub
  14.  
  15. End Module
  16.  
  17. SELECT * INTO Newtable FROM
  18. [ODBC;Driver={MySQL ODBC 5.1 Driver};Server=127.0.0.1;Database=test;User=usr;Password=pwd;CLIENT_MULTI_RESULTS;Option=3;].test;
Add Comment
Please, Sign In to add comment