Error while transferring SQL 2005 data to MS ACCESS

  • I have two servers suppose A and B. I am transferring data from SQL 2005 to MS ACCESS table by table through a linked server.

    I am using the following query to select data from access "select * from [linked_server]...tablename"

    The same query runs successfully on server A but when I run the same on server B it throws me the following error.

    OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "linked_server" returned message "Unspecified error".

    Msg 7303, Level 16, State 1, Line 1

    Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "linked_server".

    I am creating identical linked servers on both the A & B, even then the issue is'nt resolved.

    Please help me with the same.

  • Have you checked permissions? the server might not have the rights to get to the Access file.

  • Thnx...Its working...

  • Can you post your findings?

    What was the issue?

  • I wasn't able to find the exact cause. But what I did was:

    1) I reconfigured the MSDTC.

    2) I created a new linked server and used the linked server script generated for the one that was working.

    Sorry Guys for replyin late...

  • Would it be possible post the script you used?

  • EXEC master.dbo.sp_addlinkedserver @server = N'Linked_Server_Name', @srvproduct=N'server_to_link_name', @provider=N'SQLNCLI', @datasrc=N'server_to_link_name', @catalog=N'DatabaseName'

    GO

    EXEC master.dbo.sp_serveroption @server=N'Linked_Server_Name', @optname=N'collation compatible', @optvalue=N'true'

    GO

    EXEC master.dbo.sp_serveroption @server=N'Linked_Server_Name', @optname=N'data access', @optvalue=N'true'

    GO

    EXEC master.dbo.sp_serveroption @server=N'Linked_Server_Name', @optname=N'dist', @optvalue=N'false'

    GO

    EXEC master.dbo.sp_serveroption @server=N'Linked_Server_Name', @optname=N'pub', @optvalue=N'false'

    GO

    EXEC master.dbo.sp_serveroption @server=N'Linked_Server_Name', @optname=N'rpc', @optvalue=N'true'

    GO

    EXEC master.dbo.sp_serveroption @server=N'Linked_Server_Name', @optname=N'rpc out', @optvalue=N'true'

    GO

    EXEC master.dbo.sp_serveroption @server=N'Linked_Server_Name', @optname=N'sub', @optvalue=N'false'

    GO

    EXEC master.dbo.sp_serveroption @server=N'Linked_Server_Name', @optname=N'connect timeout', @optvalue=N'0'

    GO

    EXEC master.dbo.sp_serveroption @server=N'Linked_Server_Name', @optname=N'collation name', @optvalue=null

    GO

    EXEC master.dbo.sp_serveroption @server=N'Linked_Server_Name', @optname=N'lazy schema validation', @optvalue=N'false'

    GO

    EXEC master.dbo.sp_serveroption @server=N'Linked_Server_Name', @optname=N'query timeout', @optvalue=N'0'

    GO

    EXEC master.dbo.sp_serveroption @server=N'Linked_Server_Name', @optname=N'use remote collation', @optvalue=N'true'

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply