Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CA and SQL syntax problem
Message
 
À
21/07/2006 14:40:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01137447
Message ID:
01138685
Vues:
13
Hi David!
Thanks for your prompt response. When the UPDATE seemed to not be working for this particular table (TABLEUPDATE(.T.,.T.) returned .F.), I swithced it over to Manual Update so I could isolate the command. The original inoperable command looked somthing like this test cursor (ORDER is NUMERIC):
update test set
ORDER = ?crsTest.ORDER,
DETAIL = ?RTRIM(crsTest.DETAIL),
INSTOCK = ?crsTest.INSTOCK,
DETAIL2 = ?RTRIM(crsTest.DETAIL2)
where PK = ?crsTest.PK
...these two work:
update test set
DETAIL = ?RTRIM(crsTest.DETAIL),
INSTOCK = ?crsTest.INSTOCK,
DETAIL2 = ?RTRIM(crsTest.DETAIL2)
where PK = ?crsTest.PK
...and...
update test set
[ORDER] = 1,
DETAIL = ?RTRIM(crsTest.DETAIL),
INSTOCK = ?crsTest.INSTOCK,
DETAIL2 = ?RTRIM(crsTest.DETAIL2)
where PK = ?crsTest.PK
In resigned despeiration, I tried:
update test set
[ORDER] = ?crsTest.[ORDER],
DETAIL = ?RTRIM(crsTest.DETAIL),
INSTOCK = ?crsTest.INSTOCK,
DETAIL2 = ?RTRIM(crsTest.DETAIL2)
where PK = ?crsTest.PK
...to no avail.

I have not used the profiler yet...I mean seriously, I haven't had the chance to use it, ever. I will learn it now!

If you can give me a solution to this, I'll eat a red-herring raw, and you can insult my intelligence all you like!
John MR Fitzgerald
Order Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform