Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Guids
Message
De
20/06/2008 17:59:23
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Re: Guids
Versions des environnements
Environment:
C# 3.0
OS:
Vista
Database:
MS SQL Server
Divers
Thread ID:
01325529
Message ID:
01325861
Vues:
18
>I have not used a "linked server" before as I have worked only with fat fox clients the last 10 years. Can you give me a link to a resource? Is fox or Sql your linked server?
>
>Thank you.

SQL server linked server pointing to VFP. ie:
EXEC sp_addlinkedserver 
    @server = N'myVFPServer',  -- 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"'
After creating the linked server you can do something like this (works almost at the same speed with SqlBulkCopy and doesn't have other awkward errors that SqlBulkCopy has):
select * into SQLTable1
  from OpenQuery(myVFPServer, 
  'select * from myTable')
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform