Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Package gets all deleted records
Message
From
27/02/2008 16:17:13
 
 
To
27/02/2008 05:21:32
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Microsoft SQL Server
Category:
Import/Export
Miscellaneous
Thread ID:
01296738
Message ID:
01297167
Views:
11
>Use a linked server based on ADO. Then all is easier using OpenQuery (and it automatically drops deleted ones - in fact with this approach you have problems if you also want the deleted records).
>
>EXEC sp_addlinkedserver
>    @server = N'VFP_SERVER',  -- Your linked server name here
>    @srvproduct=N'Visual FoxPro 9',  -- can be anything
>    @provider=N'VFPOLEDB',
>    @datasrc=N'"C:\PROGRAM FILES\MICROSOFT VISUAL FOXPRO 9\Samples\data\testdata.dbc"'
>
>
>insert mySQLTable (orderId, orderDate,shippedTo)
>Select * From openquery(VFP_SERVER,
>'Select
>  order_ID,
>  Cast(Evl(order_date,Null) As DateTime) As order_Date,
>  TRIM(to_Name)
>  from customer')
>
What should I put in the @server line as the linked server? Where does that name come from?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform