Delphi 1.0 C/S apps hang while accessing MS SQL Server

Delphi 1.0 C/S apps hang while accessing MS SQL Server

Post by Andrew Kloppe » Wed, 05 Mar 1997 04:00:00



Hi

I have encountered two problems with Delphi 1.0 C/S apps when talking
to Micrsoft SQL Workstation 6.0:

  1. Trying to post changes to a SQL server view accessed via a TTable
     causes the application to hang while displaying the SQL cursor.
  2. Trying to run an update query on a table previously loaded with
     rows by an insert query also cause the app to hang.
     (Interestingly, using TTable.Batchmove to load the rows, and then
     running the update queries, seems to work).

I haven't noticed any other problems, but the two above are
trememdously limiting.

Has anyone else noticed this behaviour? If so, is there a know fix?

Regards
Andrew

 
 
 

Delphi 1.0 C/S apps hang while accessing MS SQL Server

Post by Gene » Thu, 06 Mar 1997 04:00:00


With respect to #2, try the following--after running the insert query,
Close and Open the TQuery or TTable to refresh, then run your update query.
Gene



Quote:> Hi

> I have encountered two problems with Delphi 1.0 C/S apps when talking
> to Micrsoft SQL Workstation 6.0:

>   1. Trying to post changes to a SQL server view accessed via a TTable
>      causes the application to hang while displaying the SQL cursor.
>   2. Trying to run an update query on a table previously loaded with
>      rows by an insert query also cause the app to hang.
>      (Interestingly, using TTable.Batchmove to load the rows, and then
>      running the update queries, seems to work).

> I haven't noticed any other problems, but the two above are
> trememdously limiting.

> Has anyone else noticed this behaviour? If so, is there a know fix?

> Regards
> Andrew


 
 
 

Delphi 1.0 C/S apps hang while accessing MS SQL Server

Post by Jeroen Houtzag » Fri, 07 Mar 1997 04:00:00


On Tue, 04 Mar 1997 18:44:20 +0200, Andrew Klopper


>  1. Trying to post changes to a SQL server view accessed via a TTable
>     causes the application to hang while displaying the SQL cursor.

Welcome to the world of MS-SQL! You just encountered a locking
problem. You are probably trying to update a record through a DbGrid?
Look in the discussions at www.borland.com in the Delphi Forum at c/s
databases. You'll find tips & tricks there...

-----------------------------------------

Academisch Medisch Centrum - Amsterdam    
-----------------------------------------

 
 
 

1. Accessing oracle sequences from Delphi 1.0 CS

Hi,

Does anyone know how it is possible to access a sequence from Delphi?
The sql code is select sequncename.nectval from dual. Delphi thinks the sequence
name is a table so it crashes.
Another problem is that the dual table is not visible from within delphi?
I'm really stucked this time.

Thanks in advance

Joao

2. Readlock=nolock

3. NT, Delphi 1.0 CS and Oracle 7.1 ?

4. Desperately seeking the Delphi Developers Guide CD

5. Delphi 1.0 C/S and MS SQL Server 6.0

6. Delphi SQL Backends???

7. Connection problem with MS SQL Server / Delphi 1.0

8. Java Developers,Dallas,TX

9. Delphi 1.0 conect to MS-SQL Server 6.0

10. How to link to SQL Server 1.0 Through Delphi 1.0 BDE

11. Deleting a detail record using Delphi 1.0 on a MS Access 2.0 database

12. Delphi 1.0, ODBC, MS Access 2.0