Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Package gets all deleted records
Message
De
27/02/2008 16:17:13
 
 
À
27/02/2008 05:21:32
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Import/Export
Divers
Thread ID:
01296738
Message ID:
01297167
Vues:
12
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform