Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: Ken Murphy
  Where is Ken Murphy?
 Springhill
 Canada
 Ken Murphy
 To: Stefan Wille
  Where is Stefan Wille?
 Munich
 Germany
 Stefan Wille
Subject: RE: Foxpro 9 vs. SQL Server 2005
Thread ID: 164668 Message ID: 164670 # Views: 2 # Ratings: 0
Version: Visual FoxPro 9 Category: Databases, Tables and SQL Server
Date: Wednesday, March 19, 2008 5:36:54 PM         
   



> Hallo Together,
>
> I´d like to replicate my Data from my Foxpro Application to a SQL Server 2005. The problem I got is that it is not possible to bring OLE Objects form a "General- Field" Column into the SQL Server 2005. The Column in the SQL Server 2005 has a image Column Datatype. I also have tried the varbinary(Max) Datatype without success.
>
> Can anyone tell me how i can realize this?
>
> Thanx in advance
>
> Stefan

This is one of the reasons to NEVER use General fields. You can put things into a general field, but it is hard to get them back out :(

In VFP, your best bet is to use a Blob field and in VFP FILETOSTR() to save the object or STRTOFILE() to display the object. What are you storing in that general field? That will determine how you should store it in SQL.


Ken
You shall know the truth - and the truth shall set you free. (John 8:33)

ENTIRE THREAD

Foxpro 9 vs. SQL Server 2005 Posted by Stefan Wille @ 3/19/2008 5:30:58 PM
RE: Foxpro 9 vs. SQL Server 2005 Posted by Ken Murphy @ 3/19/2008 5:36:54 PM
RE: Foxpro 9 vs. SQL Server 2005 Posted by Borislav Borissov @ 3/19/2008 5:40:38 PM
RE: Foxpro 9 vs. SQL Server 2005 Posted by Ken Murphy @ 3/19/2008 6:03:26 PM
RE: Foxpro 9 vs. SQL Server 2005 Posted by Borislav Borissov @ 3/19/2008 5:42:00 PM
RE: Foxpro 9 vs. SQL Server 2005 Posted by Cetin Basoz @ 3/19/2008 10:31:35 PM
RE: Foxpro 9 vs. SQL Server 2005 Posted by Stefan Wille @ 3/20/2008 9:34:45 AM
RE: Foxpro 9 vs. SQL Server 2005 Posted by Andy Kramek @ 3/20/2008 11:34:05 AM
RE: Foxpro 9 vs. SQL Server 2005 Posted by Stefan Wille @ 3/20/2008 12:52:31 PM
RE: Foxpro 9 vs. SQL Server 2005 Posted by Ken Murphy @ 3/20/2008 1:08:55 PM
RE: Foxpro 9 vs. SQL Server 2005 Posted by Andy Kramek @ 3/20/2008 1:39:49 PM
RE: Foxpro 9 vs. SQL Server 2005 Posted by Stefan Wille @ 3/20/2008 1:58:30 PM
RE: Foxpro 9 vs. SQL Server 2005 Posted by Cetin Basoz @ 3/20/2008 2:33:31 PM