We help IT Professionals succeed at work.
Get Started

Import into SQL 2008 using opendatasource('Microsoft.ACE.OLEDB.12.0 Fails

bdpcpa
bdpcpa asked
on
1,704 Views
Last Modified: 2012-09-03
I import flat text files with a schema.ini file for the properties of the files. I am using Microsoft.ACE.OLEDB.12.0 to import the files. We login as with windows user authentication.

The import command only works when user ABC is logged in. If I am logged in as any other windows user or even the SA Admin the import fails.

Error Message
OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" returned message "'c:\convdata\2265\' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.".
Msg 7303, Level 16, State 1, Line 7
Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)".

Please help,

Import Command
USE [database1]
select * INTO [tablename1]
from 
opendatasource('Microsoft.ACE.OLEDB.12.0','Data Source=c:\convdata\2265\;Extended Properties="Text;"')...FILE1#TXT
go 

Open in new window

Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE