Importing Data from MS Access into SQL Serevr 2005 via Linked Server: User-Dependent failure

I am operating an Express version of SQL Server 2005 on a Windows XP machine.
I have successfully setup a linked server to a remote Access (.mdb) database. With my user account (Windows authentication) I can retrieve and store data without any problem.
I have another user (apparently with same settings as my own account) that is always failing to get the data.
The Error message he gets is:
OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "TSU_Tmp" returned message "The Microsoft Jet database engine cannot open the file '\\DSITSO-NT0001\Exchange\Database5.mdb'.  It is already opened exclusively by another
user, or you need permission to view its data.".
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 "TSU_Tmp".
Here below the code used to set up the linked server (coming from the Code Snippets of SQL Server 2005).
EXEC sp_addlinkedserver
@server = N'TSU_Tmp',
@provider = N'Microsoft.Jet.OLEDB.4.0',
@srvproduct = N'OLE DB Provider for Jet',
@datasrc = N'\\DSITSO-NT0001\Exchange\Database5.mdb'
EXEC sp_addlinkedsrvlogin
@rmtsrvname = N'TSU_Tmp',
@useself = N'TRUE',
@locallogin = NULL,
@rmtuser = N'Admin',
@rmtpassword = NULL
We both run the script, actually is a Stored Procedure, (see code below) on the same XP machine where SQL Server is running.
EXEC('INSERT INTO tblFcst
(StartBUCode, StartBUType, StartBUSeq, StartTrz, StartCty,
EndBUCode, EndBUType, EndBUSeq, EndTrz, EndCty,
FcstCreationPeriod, FcstValidForPeriod, Fcst, FcstExternalReference,
IsProcessed, IsSolved)
SELECT TSU.BUCodeSend, TSU.BUTypeSend, TSU.BuaNoSend, Null AS StartTrz, Null AS StartCty,
TSU.BUCodeRcv, TSU.BUTypeRcv, TSU.BuaNoRcv, Null AS EndTrz, Null AS EndCty,
TSU.[Current week], TSU.[Forecast for week], TSU.[Volume trp m3], TSU.[TSU_ID (Don''t touch me)],
0 AS IsProcessed, 0 AS IsSolved
FROM TSU_Tmp...tbl_TSU_trpm3 AS TSU;')
PS: it is run using an 'EXEC(String)' format as at compile time of Store Procedure the Linked Server is not existing and otherwise compile would fail.
We tried it with different files, in different locations. It always wors for me, never for him...
The files were not used by anyone else. The folder(s) where they were stored are open to "Everyone".
So I concluded it should be something linked to the User... :) But I really do not know what, as said apparently we have exactely the same setup in our Login profiles.
Any idea or suggestion is welcome.
Thanks
Luca

Hi Luca Lentati,
According to your description and T-SQL statement, we need to verify if the download and install the Microsoft.Jet.OleDB.4.0 as a provider.
 If the 64bit SQL Server is running on the server,  The error, the Microsoft.Jet.OleDB.4.0 is not support, I reommend you download and install the Microsoft.ACE.OLEDB.12.0 as a provider.
The error 7303 message indicates that the linked server does not have correct login mapping. You can execute the sp_helplinkedsrvlogin stored procedure to set the login information correctly. Also, verify that you have specified the correct parameters
for the linked server configuration.
In addition, if the issue still exists, I recommend you copy the access file to local Server, and create linked server between them , check if it can run well. If yes, it means that
 the account which SQL server uses to run the service does not have read/write access to that file share.
There is an article about configuring a Linked Microsoft Access Server on SQL 2005 Server , you can review the following article.
http://www.aspfree.com/c/a/Microsoft-Access/Configuring-a-Linked-Microsoft-Access-Server-on-SQL-2005-Server/
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support

Similar Messages

  • Importing data from MS-Access into Oracle 9i

    I want to import data from access into oracle 9i. I already contain the same data in Oracle but these Access files contain updates and additional data to the existing data . So i need help to import in such a way that origional data remain same just addional data and updates come from MS-Access.

    Hi,
    You can achieve this by using the SQL Loader, which will help you out to load the data.
    For further reference check the below link
    http://lbd.epfl.ch/f/teaching/courses/oracle8i/server.815/a67792/ch05.htm#1261
    As you said that you have existing data in the table and you have Update's too. you have the Options like
    APPEND which you will useful to add the new records.
    - Pavan Kumar N

  • Trying to Import data from Microsoft Access in POWERPIVOT

    Hello,
    I am trying to import data from Microsoft Access into Powerpivot. In my Access database I have several query's.
    When I go to the Table Import Wizard in powerpivot, I only see one source table. Why can't I see the other query's?
    Thanks in advance for your help.
    Soraya

    Hello Soraya,
    Which Version of MS Excel / Power Pivot are you using? Do you try to Import from a MDB or from the new Format ACCDB? Are these common queries in MS Access or pass-through queries?
    In common it should work, if I Import from a MDB I can see & select both, tables & views (queries):
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Is there any way of importing stuffs from Microsoft Access to SQL Server?

    I have quite a big store of information Microsoft Access DB, but now i am required to switch to SQL Server?
    Is there any way of importing to SQL Server, either by Java programming or manually?
    Thank you in advance.

    I like to give some tips on how to fulfil the requirement.. I haven't tried this. If you succeeded, it is well and good.
    1) Using Java:
    If you like to Java to import the data from MS Access to SQL Server, you have to write a JDBC Program in such a way that it has to retrieve the data from each MSAccess tables and store it in temperory java varaible.After writng into the temp. varaibles, the same thing will be written into SQL Server. The whole process is repeated for all the tables in MS Access.
    2) Manual Process:
    Try to get the data scripts from MS-Access for all the tables and Load the same into SQL Server
    I hope that Manual Process consumes less time compared in writing the codes for transformation..
    I hope that you got some idea on reading this. If you have any doubts, try to get back to me..

  • Uploading data from MS Access into SAP R3 v3.1

    Hey Gurus,
    I am wondering which options I have to import data from a MS Access database into SAP R3 version3.1. For example, can I make use of the LSM Workbench?
    Regards,
    Pim
    points are awarded if helpfull

    It is much better to take the help of technical person, as directly you can upload the data from MS Access to SAP ..the thing you have to keep in mind is tell theABAPer to convert the file into a .txt one..as then only SAP will allow.
    Reward Points if it helps,
    Regards,
    N

  • Extra column to be added while importing data from flat file to SQL Server

    I have 3 flat files with only one column in a table.
    The file names are bars, mounds & mini-bars.
    Table 'prd_type' has columns 'typeid' & 'typename' where typeid is auto-incremented and typename is bars, mounds & mini-bars.
    I Import data from 3 files to prd_details table. This table has columns 'pid', 'typeid' & 'pname' where pid is auto-incremented and pname is mapped to flat files and get info from them, now i wanted the typeid info to be received from prd_type table.
    Can someone please suggest me on this?

    You can get it as follows
    Assuming you've three separate data flow tasks for three files you can do this
    1. Add a new column to pipeline using derived column transformation and hardcode it to bars, mounds or mini-bars depending on the source
    2. Add a look task based on prd_type table. use query as
    SELECT typeid,typename
    FROM prd_type
    Use full cache option
    Add lookup based on derived column. new column -> prd_type.typename relationship. Select typeid as output column
    3. In the final OLEDB destination task map the typeid column to tables typeid column.
    In case you use single data flow task you need to include a logic based on filename or something to get the hardcoded type value as bars, mounds or mini-bars in the data pipeline
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Import data from a file into oracle db

    Hello!
    The problem is the following: data within a file must be placed
    into several tables in a oracle server. For that a program has
    to be written. It4s not done with executing a program cause the
    data in the file can vary and depending on different flags the
    import into oracle must be done. Now we tried the classes of
    oo4o to access the db, but this only works for integer values,
    the samples from oracle also only work for integer. We don4t
    need to use oo40, is there a better / other way to write the
    programm ? Has anybody a free sample ?
    Thanx

    ur problem is to import the data from file with different conditions which needs to be taken care programitically
    Pls mail me your file and ur logic
    my id is [email protected]

  • Import data from MS ACCESS in background mode

    Hello experts,
    i am facing the following problem. I´ve got to import a MS ACCESS database in background mode via job.
    I got a solution which works in dialoge:
    create object conn 'ADODB.Connection'.
    create object rsdb 'ADODB.Recordset'.
    concatenate 'Provider=Microsoft.Jet.OLEDB.4.0;'
    'Data Source=C:UserspfahlbeDesktopaccess.mdb'
    into sql.
    call method of conn 'Open'
      exporting
      #1 = sql.
    Any idea how it can be handled in background?

    The system does not have permission to the useru2019s desktop C:\Users\pfahlbe\Desktop\access.mdb when running in the background. 
    Recommend moving your MSAccess db to a network location where the system has full-time read-permission, and adjusting your sql accordingly.
    Regards,
    zKen

  • Importing Data from Excel (XML) into Adobe - Multiple Lines

    I have a form that I have created in Adobe Life Cycle Designer 4.
    All the data I need is now stored in an XML file that was created in Excel.
    When I attempt to import the data into Adobe Acrobat using the "Import Data" feature, it only imports the first line of data, but we have over 500 records that we would like to generate into 500 filled forms
    Each line of data represents 1 entire form and all the fields.  The importation works just fine on the first line of data and the fields get populated properly, but I am trying to find a way of importing each line so that each line
    generates a "filled out form".
    In essence, there would be 500 PDF's generated, each one with unique data based on the data in each line of the XML file.
    Any help here would be greatly appreciated
    Thank you in advance!
    Regards,
    Nizar

    There are two options
    1. try to use SQL*Loader utility.
    2. Make JDBC ODBC connection to Excel file and use JDBC queries to read and store data to database. The name of first row columns are used as table columns. The java code example for this is posted below,
              Connection con= null;
              try
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   con= DriverManager.getConnection("jdbc:odbc:GC", "", "");
                   Statement stmt= con.createStatement();
                   ResultSet rs= stmt.executeQuery("select username, password from userlogin");
                   while (rs.next())
                        String lname = rs.getString(1);
                        String fname = rs.getString(2);
                        System.out.println(fname + " " + lname);
                   rs.close();
                   System.out.println(con.isClosed());
                   stmt.close();
              finally
                   if (con != null)
                        con.close();
              }

  • Import data from Excel to MS-SQL 2008?

    I'm taking data from excel, exporting it to a csv file.
    Importing it forst to Access so I can see if it fails and then using the SQL Server Import Export Wizard to pull it in.
    It keeps failing and there's very little information on the internet that points me to a solution.
    If I just let it create it's own tables, it does fine but I need it to import the data in specific character types.
    So, I think my problem goes back to Access and it's way of setting character types.
    Anyone else have this problem? Solutions?
    Thanks

    If anyone is wondering.
    It tuned out to be the data in the Excel file, being old and abused, it had a lot of "junk" in the rows.
    I ended up just copying all the columns and rows and pasted "Special" (with values) back in new rows and that seem to have gottem me past the major errors. I hate how Excel is so loose with the rules. You ad that to the fact that a lot of people that don't know how to use Excel and you end up with a mixure that's not good.
    It seems that everyone here at this company uses Excel and because there aren't any rules and because Excel is so easy to start using, it gets messy.
    In most cases here, people should be using Access but I doubt that's going to happen.
    Man, I miss the NNTP server.

  • How to import data from MS Access before distribution of a form

    I have created a form with Acrobat Pro 9. On the other hand, I have a MS Access database with a lot of information.
    I would love to import the data from this database to my form, BEFORE distributing the form the the respondents (they only need to check whether the information we already obtained was correct, so that's why the form needs to contain the already obtained information).
    Can anyone help me with this task?

    Dear Morgan,
    Thanks for your reply.
    The data in sql server 2000 which has data in Arabic_CI_AS character set is moved to Oracle 10.2.0.3 database with characterset AL32UTF8. The table data is moved to oracle using the dataloader 3.6 standard edition licensed version.
    We cannot change the character set of Sql Server 2000. We have tried changing the data/characterset in Oracle to set the NLS_LANG at OS level to UTF_8 and tried the whole cycle of customer import, but still the customer name is displayed as square box at application level.
    How do I post this thread to Globalization Forum? Do I have to create new thread for this again?
    (Note: I am new to these OTN Forums).
    Thanks,
    Shanil

  • Import data from Informix DB to SQL Server 2012

    I am trying to use the SSIS Import and Export Wizard in SQL Server Data Tools to migrate an Informix database to SQL Server 2012.  I go through the steps & when I hit Finish I get an error message that says:
    TITLE: SQL Server Import and Export Wizard
    Could not connect source component.
    Error 0xc0047062: Source - material [1]: System.Data.Odbc.OdbcException (0x80131937): ERROR [42000] [Informix][Informix ODBC Driver][Informix]A syntax error has occurred.
       at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
       at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod)
       at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader)
       at System.Data.Odbc.OdbcCommand.ExecuteReader(CommandBehavior behavior)
       at System.Data.Odbc.OdbcCommand.ExecuteDbDataReader(CommandBehavior behavior)
       at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
       at Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter.ReinitializeMetaData()
       at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostReinitializeMetaData(IDTSManagedComponentWrapper100 wrapper)
    ADDITIONAL INFORMATION:
    ERROR [42000] [Informix][Informix ODBC Driver][Informix]A syntax error has occurred. (iclit09b.dll)
    BUTTONS:
    OK
    I am getting this error when I use the "Copy data from one or more tables or views" option.  I am able to migrate a single table with no problem when I use the "Write a query to specify the data to transfer"
    option.  This is my first time using SSIS so I am not sure what to do.  Can anyone help me out?  Thanks...

    The following link explains the steps/processes requires to perform this in SSIS:
    http://davidbridge.wordpress.com/2012/05/30/extraction-from-informix-database-using-ssis-data-warehouse-etl/
    Thanks, hsbal

  • Importing data from Excel Spreadsheet into SOP

    Hi,
    Can anyone please tell me where I can find instructions on how to import data into SOP form an Excel spreadsheet. I know there is a used exit MCP20001 EXIT_SAPMMCP6_001 but I don't see a transaction to execute this import exit from. Please help/clarify.
    Thank you
    I will award points to all who respond with useful information on importing info into SOP

    Dear,
    Please note the info structure os not different for different versions. ALl inactive versions are also storead in the same info struture.
    The info structure will be different only of the planning type is different. For standard SOP the info stucture is S076.
    You could also create your own info structures for the planning types you have created using flexible planning.
    For copying within the same info structures use transaction MC78. Here select the inactive version in the source and select the active version in the target. The copy with the button given for this.
    Within the MC87 copying is only possible between different info structures.
    Hope this helps your understanding.
    Regards,
    R.Brahmankar

  • Problem pulling data from Microsoft Access into Excel

    Using Office 2010 pro, Windows 7:
    I'm trying to pull in data from a password protected Access Database into Excel but I am having all kinds of problems..
    In Excel im using:-
    Data Link Properties> "Provider"> MS Office 12.0 Access database Engine OLE DB Provider
    "Data Source": the full path and filename to the access database
    "Enter information to log onto your server" - "use NT integrated security" is greyed out so I select username "Admin" and password <the database password>.
    When clicking on "Test connection" I get the following error message:
    "The test connection failed because of an error in initializing provider. Cannot start your application. The workgroup information file is missing or opened exclusively by another user."
    Any help would be very much appreciated!
    With thanks, NECoder

    a similar issue:
    http://social.technet.microsoft.com/Forums/en-us/5779d18b-a41e-416e-9001-8bbc73670591/test-connection-failed-because-of-an-error-initializing-provider?forum=sqldataaccess

  • Importing Data From XLS File to SQL Server

    Dear All,
    I want to import the data from Excel(.xls) file to SQL Server (2008 R2). But due to some problem (may be data), an error is occurring when I am going to import using Import Data Wizard. I want the rows to ignore those are creating issues and to keep track
    of those records. That's why I need to process rows one by one. How can I do it? Any idea?
    Thanks & Regards,
    Anujit Karmakar
    Anujit Karmakar Sr. Software Engineer

    Whats the error? Have you mapped the source-destination data types  in column mappings?
    Below is a link to video to guide you through the Steps of Import/Export Wizard
    SSIS Wizard Video: http://www.youtube.com/watch?v=9Wmdhnx1niU
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other
    forum members can benefit from it 

Maybe you are looking for

  • Com.sapportals.htmlb.*;

    guys where to get this plug-in ?

  • Deprecated interfaces and methods

    We have a weblogic time service that utilize a lot of deprecated interfaces and methods such as ScheduledTriggerDef, TimeServicesDef etc. Although the time service runs in the WLS 7, it is a big concern to me that it uses so many deprecated interface

  • Problem installing iTunes on my Windows Laptop

    Hi people Right I've had this problem for a while, I try to install iTunes but have faced problems. Im using a windows 7 64-bit advent laptop. Recently the error was iTunesHelper was not installed correctly as I tried installing the new itunes, and i

  • ICal reminders not on iPhone

    I have my iPhone sync with iCal through iTunes on my MacBook. For my very first event, I got a reminder notification on my iPhone, however, ever since then, they don't show up on my iPhone anymore. Whenever I turn my MacBook on though, there is a lit

  • "Not enough disk space" error installing XP SP3

    Just installed Bootcamp on a MacBook Air running 10.5.3. (Actually, it was a reinstall on an XPSP3 partition that began refusing to boot.) Bootcamp install went fine. XP Pro SP2 install also normal. Installed my standard suite: - AVG Free virus prote