Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Guids
Message
From
20/06/2008 17:59:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Re: Guids
Environment versions
Environment:
C# 3.0
OS:
Vista
Database:
MS SQL Server
Miscellaneous
Thread ID:
01325529
Message ID:
01325861
Views:
17
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform