Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connection handle is invalid
Message
 
 
À
30/11/2012 18:13:56
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2008
Divers
Thread ID:
01558490
Message ID:
01558522
Vues:
39
I am not. But the application gets only one connection; at the top of the application. So, I think, both Select and Update should use the same connection. Especially since this code works for some databases and does not for others. I will (tomorrow) make a list of things to change and to see what could be different in the cases where the code works and where it does not.
Thank you.

>Are you sure that your update CA is using the same connection as the selects?
>
>>>Hi,
>>>
>>>I have a situation when on the TableUpdate() I get error "Connection handle is invalid." And the same program but with a different database, in the same place, does not work without error. The VFP application is using CursorAdapter to update SQL Server database. Can this type of problem be caused by some difference in the database table? Or what can I check in the debugger prior to calling TableUpdate() that would give a clue is where the problem may be?
>>>TIA.
>>
>>Just wanted to add something. I am sure that the application is not dropping the connection to the server. Because, right after I get this message (Connection handle is invalid), I go to a different window and add a record to the same table which calls TableUpdate() and it works. So it must have something to do with one particular application window. And even that is not consistent; works on some database and not on another.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform