Results 1 to 4 of 4
  1. #1
    herbert is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Sep 2014
    Posts
    3

    SQL-View in access not editable (migration problem from SQL2000 to SQL2012)

    Hello



    I'm new, so maybe the question isn't right here.

    I use Access2003/2010 as frontend and SQL2000 as backend
    There I've tables like '_Table1' and a the view like 'T_Table1'
    The view is: Selcect * FROM _Table1 with (NOLOCK)

    In Access is the view 'T_Table1' linked. This works fine at SQL2000

    Now I'll do the same at SQL2012, but the linked view 'Table_1' is not editable in Access

    Anyone an idea for me? (It seems not to be a problem of permissions, my user is in dbo group and that happens with other users too)

    Thank you for your help
    Herbert

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    NORMALLY, 'views' are NOT editable (hence view)
    I always edit the table version. Is this possible?

  3. #3
    herbert is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Sep 2014
    Posts
    3
    Hi,
    that was an Access frontend/backend solution (starting with access95 ) then backend was moved to sql2000.
    Afterwards there were some problems with locked entries, and so on. The solution was working with views and with nolock (changing the tablenames from t_xy to _xy and creating views with the tablename t_xy ). That is working on SQL2000, there were no blocking problems and no changes in many queries and codes at frontend Access necessary

    Is it not possible to have editable views ??

  4. #4
    herbert is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Sep 2014
    Posts
    3
    Hi
    I've solved the problem

    to get editable views is an unique index necessary. My vb-codefor database-linikng did it only with linked tables to sql2000 server, I've corrected for the SQL2012 and it works now.

    @ all (I don't know it's correct, but it works), after linking a table I create the index for the primary key field like this:
    CurrentDB.Execute "CREATE UNIQUE INDEX __uniqueindex ON [T_Table1] ([ID]) WITH PRIMARY"

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

Similar Threads

  1. Replies: 1
    Last Post: 06-21-2014, 02:48 PM
  2. Replies: 2
    Last Post: 04-07-2014, 10:01 AM
  3. Access To SQL Server Migration
    By Rxp in forum Access
    Replies: 6
    Last Post: 05-07-2012, 05:50 PM
  4. Replies: 8
    Last Post: 02-26-2012, 09:48 PM
  5. Replies: 0
    Last Post: 09-16-2011, 04:42 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