Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to update dbf from Openrowset?
Message
From
07/01/2009 06:04:56
 
 
To
05/01/2009 14:55:24
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01368838
Message ID:
01371602
Views:
14
Cetin,

You are a prince!
Thank's a lot and a prosperous and happy new year to you and yours.

BR

Peter

>>>Peter,
>>>Update command in openrowset() errors but works despite the error. I would however use a CLR procedure if I had to update from within SQL server.
>>>
>>>
select * from openrowset('VFPOLEDB', 
>>> 'c:\myPath\testdata.dbc';'';'',
>>>  'update customer set contact="Ana TrujilloXX" where cust_id = "ANATR"')
>>>
>>>Cetin
>>
>>Cetin,
>>
>>I'm sure you would, and so would I if I only knew what you are talking about :-))
>>
>>I'm behind on Visual Studio - Common Language Runtime (right?) procedure fit's in how and where?
>
>You write your procedure using C# or VB (and thus can use OleDbConnection and such if you mark it unsafe) and add that assembly to a database. Once added it is part of the database and you can use that as if it were native SQL server function, SP etc. In the help check Create assembly ... I will try to send a sample when I get to ny work computer.
>Cetin
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform