Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Open Rowset Method

Author  Topic 

AnuVijay
Starting Member

32 Posts

Posted - 2011-11-04 : 08:22:42
Hi

I am using the following the codes for importing data from dbf files into sql server.

select * from OPENROWSET('SQLNCLI','Driver={Microsoft dBase Driver (*.dbf)};
DBQ=D:\SSISDbase\GOLD\TBD;
SourceType=DBF', 'SELECT * FROM GM011339')

I am getting the following errors:

OLE DB provider "SQLNCLI10" for linked server "(null)" returned message "Invalid authorization specification".
OLE DB provider "SQLNCLI10" for linked server "(null)" returned message "Invalid connection string attribute".
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "SQLNCLI10" for linked server "(null)" reported an error. Authentication failed.
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "SQLNCLI10" for linked server "(null)".


Can you please help me to resolve this issue?

Thanks
Ananthi

yosiasz
Master Smack Fu Yak Hacker

1635 Posts

Posted - 2011-11-06 : 15:44:41
Do you have the proper drivers installed on your sql server?
Do you have access to read permissions to the FoxPro table GM011339?

If you don't have the passion to help people, you have no passion
Go to Top of Page
   

- Advertisement -