Solved

Can't update SQL-View data in MS Access

Posted on 2007-11-22
7
1,374 Views
Last Modified: 2012-06-21
I created a view on sql-Server 2005 and linked it into MS Access 2003.
On SQL-Server I'm able to edit the data using the same user which is not able to edit the view in MS Access.
The user has rights and the view contains the primary key and there is no computed column.
Any idea?
Chris
0
Comment
Question by:chriswies
  • 3
  • 2
7 Comments
 
LVL 9

Expert Comment

by:auke_t
ID: 20334502
Is there an error message?
You can use the profiler to watch what sql statement is send to the server. Probably acces doesn't include the right key information, but I can't be sure without the profilerinfo.
0
 

Author Comment

by:chriswies
ID: 20334526
No, no message, just the beep.
Please help me out, how do I use the profiler. I'm pretty new with SQL-Server.
Chris
0
 
LVL 9

Expert Comment

by:auke_t
ID: 20334541
In sql server start the profiler (it's under the tools menu)

then start a new trace

If noone else is using the server you can just run the trace, if not, then goto the events selection tab and use the column filters to filter out your sql statements

Then try to edit the data and see what command is send to the server
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:chriswies
ID: 20334960
oh interesting,

that is the result:

exec sp_executesql N'SELECT "FragenID" ,"fiPrüfung" ,"fiPrüffeld" ,"PF" ,"Sort" ,"Frage" ,"FrageSub" ,"Datenquelle" ,"Datentyp" ,"Einschränkung" ,"Zahlenformat" ,"Eingabemeldung" ,"FrageDefault" ,"FrageDefaultMuss" ,"Kommentar" ,"Material" ,"FrageSAW" ,"FrageBearbeitungshinweis" ,"FrageHHST" ,"replAvg"  FROM "dbo"."vw_Fragen" WHERE ( @P1 = "fiPrüffeld" ) ORDER BY "dbo"."vw_Fragen"."fiPrüffeld" ,"dbo"."vw_Fragen"."Sort"  ',N'@P1 uniqueidentifier','5E710000-2F28-5E71-1CDE-130048A41F00'

In the Access-Form I just have "select * from vw_Fragen ORDER BY fiPrüffeld, Sort;" entered.
Does this help?
Chris
0
 

Accepted Solution

by:
chriswies earned 0 total points
ID: 20344195
OK, got it.
I had to create an index on the view in !MS Access! to tell Access that this view has an unique id!
something like
CREATE UNIQUE INDEX ix_vw_Auswertungsfragen ON vw_Auswertungsfragen(idAuswertungFeld)

thanks
Chris
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20378518
Closed, 500 points refunded.
Computer101
EE Admin
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now