Solved

Can't update SQL-View data in MS Access

Posted on 2007-11-22
7
1,376 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

821 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