Greetings All!
I've spent some time reviewing and doing some searching prior to this post but I couldn't confirm if I've found the right information for my issue.
I, as a SQL Server DBA, recently have been dealing with a deadlock situation between two different applications in my server. One application is VFP which is writing to a SQL table through a multi-join SQL server view.
This is the way the the Foxpro dev and the other dev's had set this up but I am here to gather information on the best practices on reading and writing to another DBMS like SQL server.
I believe the VFP dev is using version 9.
The way the process currently works is that the application connects to SQL server, does a lookup through view "Accounting" and then does an update to the same record it just found through the same view ("Accounting") which is a multi joined view. This whole VFP process is killing a simple select process multiple times a day forcing it to rollback.
So my goal here is to find ways to tone down the locking VFP has on this table during this whole process.
One thing that needs to change is that the query against the view should be read-only and that the update should be done directly to the table or through another view that isn't joined to other tables but I am not sure where to look in VFP to see that a certain object is set to read only or not.
Any other advice of what to review in VFP would be most helpful.
Kind Regards,
-Z
I've spent some time reviewing and doing some searching prior to this post but I couldn't confirm if I've found the right information for my issue.
I, as a SQL Server DBA, recently have been dealing with a deadlock situation between two different applications in my server. One application is VFP which is writing to a SQL table through a multi-join SQL server view.
This is the way the the Foxpro dev and the other dev's had set this up but I am here to gather information on the best practices on reading and writing to another DBMS like SQL server.
I believe the VFP dev is using version 9.
The way the process currently works is that the application connects to SQL server, does a lookup through view "Accounting" and then does an update to the same record it just found through the same view ("Accounting") which is a multi joined view. This whole VFP process is killing a simple select process multiple times a day forcing it to rollback.
So my goal here is to find ways to tone down the locking VFP has on this table during this whole process.
One thing that needs to change is that the query against the view should be read-only and that the update should be done directly to the table or through another view that isn't joined to other tables but I am not sure where to look in VFP to see that a certain object is set to read only or not.
Any other advice of what to review in VFP would be most helpful.
Kind Regards,
-Z