Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send updates to the MSSQL server VFP6.0
Message
From
20/02/2004 23:25:26
Suhas Hegde
Dental Surgeon
Sirsi, India
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Send updates to the MSSQL server VFP6.0
Miscellaneous
Thread ID:
00879545
Message ID:
00879545
Views:
45
HI,
I have a few problems.

I have at table in the Sqlserver

CREATE TABLE [dbo].[test_guid] (
[test_guid_id] uniqueidentifier ROWGUIDCOL NOT NULL ,
[a] [char] (10) NULL ,
[b] [char] (10) NULL ,
[bit1] [bit] NOT NULL ,
[timestamp_column] [timestamp] NULL
) ON [PRIMARY]

and a few values in it with bit1 .f.

i make a cursor with a valid handle like

cursorsetprop("buffering",5,0)

sqlexec(handle,'select * from test_guid','test1') && returns 1 and i get the cursor with the records.
** so far so good. Then
sqlexec(handle,'select top 0 test_guid_id,bit1 from test_guid','test2') && returns 1 and i get an empty cursor

insert into test2 values(test1.test_guid_id,.t.) && value gets inserted locally.
skip in test1
insert into test2 values(test1.test_guid_id,.t.) && value gets inserted locally.

** NOW how to update test2 ??? thats bugging me for days. I tried a lot with cursorsetprop. But the error returned was 1491. No update tables as specified.Use the tables property of the cursor.

Can any one tell me if it works this way and if so how ? If not how should i modify this ?

thanx in advance.
Next
Reply
Map
View

Click here to load this message in the networking platform