Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update with OpenQuery
Message
From
31/03/2009 07:55:45
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Environment versions
SQL Server:
SQL Server 2005
Application:
Desktop
Miscellaneous
Thread ID:
01392295
Message ID:
01392327
Views:
44
>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 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). IMHO move completely to SQL server.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform