Board index » delphi » MS SQL 6.5 Page Intent Lock
Max Murazzan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
Max Murazzan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
MS SQL 6.5 Page Intent Lock
We make a client/server application that can work with Paradox or MS SQL 6.5
SP 4. We have Delphi 3.02 and BDE 4.51. We use a TTable for accessing data. With Paradox work fine. With MS SQL we have a lot of problem with Page Intent Lock. Can someone tell us if there is a solution with Delphi & Bde (with new version) or if there is a path for MS SQL 6.5 or if there is an Bde alternative product. If possible only tested solutions. Thanks in advance. |
Kevin Frever
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:MS SQL 6.5 Page Intent LockMax Avoid using TTables with any SQL (Oracle, MSSQL, Interbase etc) server. Good luck, Max Murazzano <m...@isiline.it> wrote in article Quote> We make a client/server application that can work with Paradox or MS SQL |
lesa..
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:MS SQL 6.5 Page Intent LockHi, From my point of view, I think it is the TTable components whom are causing * TTable reads all the records from a table, even if a filter is set. * When handling larger amounts of data, a TTable component is slower than * When using TQuery components, you can use SQL statements If you want to read more about using Delphi to program SQL server http://www.kalista.com/TechPapers/DelphiSQL/DelphiSQL.htm There you will find a White Paper on using Delphi in combination with SQL I hope this will be of any help to you. Greetings and best regards, Kingetje In article <704dnh$m...@forums.borland.com>, Quote> We make a client/server application that can work with Paradox or MS SQL 6.5 http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own |
Reid Roma
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:MS SQL 6.5 Page Intent LockQuoteMax Murazzano wrote: the table needs to maintain at least on additional connection of it's own so that that it can deal with the cursor. You are also fetching ALL the rows of a dataset by using the TTable, as Hope that help Rkr -- |
Max Murazzan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:MS SQL 6.5 Page Intent LockWith TTable Fetch all seems not work correctly. Reid Roman ha scritto nel messaggio <36260BFB.82022...@home.com>... Quote
|
Max Murazzan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:MS SQL 6.5 Page Intent LockI know that with TQuery I can resolve problem but I must rewrite a lot of code. There is a solution using a TTable or other component similar TTable of third party? Thanks. Kevin Frevert ha scritto nel messaggio Quote>Max |
Kevin Frever
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:MS SQL 6.5 Page Intent LockMax, One solution is to before opening a TTable, set the filter to narrow Does this help? I know switching to TQuerys would be a lot of work in the Good luck, Max Murazzano <m...@isiline.it> wrote in article Quote> I know that with TQuery I can resolve problem but I must rewrite a lot of |
Reid Roma
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:MS SQL 6.5 Page Intent LockQuoteMax Murazzano wrote: The TTable object by default will fetch ALL the records in the dataset.. What do you mean "Not working Correctly"? Rkr -- |
Max Murazzan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:MS SQL 6.5 Page Intent LockI mean that I've tried with Fetch all and I'm always the same problem. Thanks. Reid Roman ha scritto nel messaggio <3627607D.25E9C...@home.com>... Quote
|
Max Murazzan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:MS SQL 6.5 Page Intent LockOk, now we think to work for query in our applications. Thanks. Kevin Frevert ha scritto nel messaggio Quote>Max, |
John Gibe
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:MS SQL 6.5 Page Intent LockThis is a hack but it works. Call the BDE function DbiForceReread in the after scroll event of the ttable for SQL Server. This function is used in the refresh method of a TTable. If you look at the results of sp_lock you wil notice your intent locks go away when you hit the refresh button. John Gibel QuoteMax Murazzano wrote: |
1. BDE Leaves Table Intent Lock in SQL 6.5, Patch 4
2. TTable,Page locks!!! and MS SQL server 6.5
3. TTable,Page Locks!!! and MS SQL Server 6.5
4. SQL Page Intent Lock blocking problem
5. D2, MS SQL 6.5, App Locks up on Update
6. MS SQL 6.5 exclusive lock to row
7. Delphi 3 and MS SQL Server 6.5 Locking Problem
8. Maximum number of locks in MS SQL 6.5