Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send updates to the MSSQL server VFP6.0
Message
De
21/02/2004 07:28:57
Suhas Hegde
Dental Surgeon
Sirsi, Inde
 
 
À
21/02/2004 05:11:51
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00879545
Message ID:
00879592
Vues:
12
>>HI,
Cetin,
I think u understood a bit wrong.

I have a tables populated with values.
I make a view modify a few records and then would like to update a the column OF those MODIFIED RECORDS.
So I have the primary key/s

I make a view with top 0 or the 1=2 ,
make the view updatable, insert those primary keys already present on the server into the updatable cursor and then issue a tableupdate ? Should Succeed ? No it doesnt.
I dont have a problem in inserting Fresh records.

Remember the last question i asked about joins ? I just wanted to do a bit turn around by doing this.

*** your code
mySQLExec(m.lnHandle,"select top 3 temp_guid_id","GUIDVal") && *** eg: these three records are to be updated.
Select GUIDVal
Scan
Insert Into v_test Values (GUIDVal.temp_guid_id,.T.) && value gets inserted locally.
** Yes but remember the PKs are already present on the server. I just want to modify a column associated with these records
Endscan
? Tableupdate(2,.T.,'v_test') && Tableupdate to send updates ?Will it succede ? It fails for me.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform