Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send updates to the MSSQL server VFP6.0
Message
From
21/02/2004 07:28:57
Suhas Hegde
Dental Surgeon
Sirsi, India
 
 
To
21/02/2004 05:11:51
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00879545
Message ID:
00879592
Views:
11
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform