Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CA and SQL syntax problem
Message
 
To
21/07/2006 14:40:31
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01137447
Message ID:
01138685
Views:
12
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform