What is SQl Command needed???

A

a

Dear Frends I have this code but I don't know the SQL Code to copy data from
CSV file to new table in the current access data base

What is SQl Command needed???

Imports System.Data.OleDb

Dim cn As New OleDbConnection

cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=test.mdb;Persist Security Info=False"

cn.Open()

Dim cmd As New OleDbCommand

cmd.CommandText = ("I need sql Command to copy data from CSV to New table in
the current data base ")

cmd.Connection = cn

cmd.ExecuteNonQuery()

cn.Close()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top