A
AlexB
I had been successfully accessing an XL spreadsheet using
the OleDBDataadapter with the code below, until the
Security department set permissions on the file. Now this
code cannot access it even though the account that the
aSP.NET is running under has permissions to the file.
I tried using "Integrated Security=SSPI" in the
connectionString but it didn't work either.
I think the only problem is that I need to tell the OLEDB
provider to use a certain user id. Anyone have any ideas
how to make this work?
Dim DA As New OleDb.OleDbDataAdapter()
Dim Conn As New OleDb.OleDbConnection()
Conn.ConnectionString
= "provider=Microsoft.Jet.OLEDB.4.0; " & _
"data source=" & psXLFile & ";" & _
"Extended Properties=Excel 8.0;"
' Get source data
DA = New OleDb.OleDbDataAdapter("Select * From
[" & psSheet & "$]", Conn)
DA.Fill(DT)
the OleDBDataadapter with the code below, until the
Security department set permissions on the file. Now this
code cannot access it even though the account that the
aSP.NET is running under has permissions to the file.
I tried using "Integrated Security=SSPI" in the
connectionString but it didn't work either.
I think the only problem is that I need to tell the OLEDB
provider to use a certain user id. Anyone have any ideas
how to make this work?
Dim DA As New OleDb.OleDbDataAdapter()
Dim Conn As New OleDb.OleDbConnection()
Conn.ConnectionString
= "provider=Microsoft.Jet.OLEDB.4.0; " & _
"data source=" & psXLFile & ";" & _
"Extended Properties=Excel 8.0;"
' Get source data
DA = New OleDb.OleDbDataAdapter("Select * From
[" & psSheet & "$]", Conn)
DA.Fill(DT)