Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problema updating from SQL server
Message
 
 
To
31/03/2009 07:57:15
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01392299
Message ID:
01392335
Views:
41
>>I access from SQL to VFP data. I have created a linked server and i wrote a stored procedure with a command like this
>>
>>UPDATE OPENQUERY(VFP, 'SELECT Ido, Ccf FROM myTable WHERE Ido=16949') Set Ccf='ABC'
>>
>>When i execute this stored i see in messages windows of sql server that all commands have been executed but if i requery the data the column ccf has not been modified.
>>
>>I use Visual Foxpro OLEDB provider versione 9 Sp2.
>>
>>I am very new to sql server, where is my error ?
>>
>>Thanks
>
>Michele,
>VFPOLEDB doesn't support updating via a linked server. If you use OpenRowSet() instead it gives error but updates.
>
>I wouldn't use VFP with SQL server (it creates other constraints as well). In my honest opinion move completely to SQL server.
>
>Cetin

Thanks, the problem is that i have two applications. Thefirst works in SQL server and the other in VFp. I have to build Stored procedure to update vfp tables, but alternatively i can modify the vfp application to read data from sql server and the update vfp tables. The ideal solution was from sql but i can do it in the other way. It is also intersting to know that oledb provider dosen't permit to make operation to write tables of vfp.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform