Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update with SQL Pass Through
Message
De
17/01/2014 17:07:53
 
 
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 9 SP2
OS:
Windows XP
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01592099
Message ID:
01592101
Vues:
60
>>I'm messing around with "SQL Pass-Through" and I'm able to pull data pretty easily but how would I UPDATE data in a SQL Server 2000 table using SQL Pass-Through?
>>
>>here is my select statement, which works well.
>>
>>
>>m.nConnectionHandle = SQLCONNECT('TimeClockPlusTest')
>>m.cSelectedJob = '16536%'
>>
>>TEXT TO lcCmd NOSHOW PRETEXT 15
>>
>>select CostRecordId, Level1, Active from dbo.MasterCostCodeList  where level1 like ?m.cSelectedJob
>>
>>ENDTEXT
>>
>>=SQLEXEC(m.nConnectionHandle,lcCmd,'CostCodeInfo')
>>
>>=SQLDISCONNECT(m.nConnectionHandle)
>>
>>
>>What I'd like to update
>>
>>UPDATE MasterCostCodeList SET Active = 1 where level1 = ?m.cSelectedJob
>>
>
>It should work the same way as SELECT. Do you have any problem here?

I read something in the VFP help about using CursorSetProp() to make it update-able. I'll see what I can discover
Thanks
Jon
Non-MVP Non-MCP Non-MCSE

Visual FoxPro, What else is there?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform