Results 1 to 6 of 6
  1. #1
    SteveApa is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    84

    Export/Import table to sql server read only?

    Hi.
    I am old to MS access / vba, but new to sql server. I tried to "export" a table to sql server from access and then link in access. It is read only to access. Then I tried to import from sql server and the linked table is still read only to access. I had a friend help me create a table on sql server... that one is read/write when linked to access.

    For the import / export exercises, I can edit the tables from SSMS but not access



    What am I doing wrong? Any way to change the tables so I can edit in access?

    It is so much easier to import/export than create a query!

    Thanks!
    Steve
    Harrisburg, PA

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    it could be:
    you dont have rights to append recs,
    you are misisng a 'key' field that is required for the data to add.

  3. #3
    SteveApa is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    84
    I tried a simple table... 1 column = ID (autonumber primary key) and 1 column text field. Not able to edit the data or add new record

  4. #4
    ssanfu is offline Master of Nothing
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Not a whole lot to go on...

    Did you create an ODBC connection? 32 bit or 64 bit?
    What authentication are you using?

    I'm guessing you are using SQLSE - installed on a Win Server on a LAN? On the same computer as Access?
    In Access you linked to the SQL table through the ODBC connection?


    To me, it sounds like a permissions problem....

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Did you check ranman's second suggestion? The table in SQL Server must have a primary key defined or it will be read only in Access.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,035
    You can't have an Access autonumber field for ID. If you need an automatic counter, create a int field on SQL server with identity specification. That's the SQL answer for an autonumber.
    Click image for larger version. 

Name:	IdentColumn.JPG 
Views:	10 
Size:	76.8 KB 
ID:	43341
    When linking the table to access, it normally will take autmatically the PK from the SQL table as PK in Access.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Read a sql server database outside of SQL Server
    By RayMilhon in forum SQL Server
    Replies: 6
    Last Post: 01-28-2020, 03:56 PM
  2. Replies: 2
    Last Post: 06-11-2019, 09:47 AM
  3. Export Filtered table to Excel, Edit and Re-Import Changes to Access Table
    By Access_throwaway in forum Import/Export Data
    Replies: 15
    Last Post: 02-20-2018, 12:37 PM
  4. Export Data from Access 2003 Table to SQL Server 2012 Table.
    By Robeen in forum Import/Export Data
    Replies: 3
    Last Post: 02-26-2016, 02:07 PM
  5. Import .TXT file into SQL Server 2005 Table
    By taimysho0 in forum SQL Server
    Replies: 1
    Last Post: 05-23-2012, 03:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums