erro E_NOINTERFACE(0x80004002).

T

TJS

getting this error message when trying to open oledb connection to read a
delimited file

E_NOINTERFACE(0x80004002).

I have the schema.ini file in the folder with the delimited text file

what's missing ?

====code====
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.OleDb" %>

.....
Dim oCon As OleDBConnection = new OleDBConnection
Dim Adapter as OleDBDataAdapter = new OleDBDataAdapter

Dim strConnect = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & vFolderPath & ";" & _
"Extended Properties=""text;HDR=YES;FMT=Delimited"""
oCon.ConnectionString = strConnect

Adapter.selectCommand= new OleDbCommand("SELECT * FROM [" & vFileName &
"]",oCon)
Adapter.selectCommand.Connection.Open

Dim ds As New DataSet()
Adapter.Fill(ds)

.....
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top