Anyone have any experience exporting data from foxpro (maybe visual
foxpro) to be able to be converted / imported into sql?
–
Stevo
Anyone have any experience exporting data from foxpro (maybe visual
foxpro) to be able to be converted / imported into sql?
–
Stevo
On 22/07/2014 20:53, Stevo wrote:[color=blue]
Anyone have any experience exporting data from foxpro (maybe visual
foxpro) to be able to be converted / imported into sql?[/color]
odbc probably your friend there
Dave Howe sounds like they ‘said’:
[color=blue]
odbc probably your friend there :)[/color]
So my response to Dave’s comment is…
We don’t have visual foxpro installed anywhere. This is from a small
software package developed by an outside source.
–
Stevo
Stevo wrote:
[color=blue]
Dave Howe sounds like they ‘said’:
[color=green]odbc probably your friend there :)[/color]
So my response to Dave’s comment is…
We don’t have visual foxpro installed anywhere. This is from a small
software package developed by an outside source.[/color]
You should still be able to download the ODBC Visual Foxpro driver and
point it to the database and then dump the data in to Excel. Then
you’ll need to cleanse the data.
If you have data that format appropriately in to Excel (such as codes
that have leading zeros), then you can use something like WinSQL to
issue your queries against the ODBC datasource and then copy/paste it
in to something else…
http://msdn.microsoft.com/en-us/library/ms710251(v=vs.85).aspx
Updates page which has link to the OLE driver and a reference to the
ODBC driver
http://msdn.microsoft.com/en-US/vfoxpro/bb190232
And further to that, if you do dump the tables in to Excel you can
create formulae which will create the INSERT statements for each line.
You’ll just need to set up the destination tables in which-ever
database engine you are using first and make sure you honour data-types
and constraints.
Scott Campbell sounds like they ‘said’:
[color=blue]
And further to that, if you do dump the tables in to Excel you can
create formulae which will create the INSERT statements for each line.
You’ll just need to set up the destination tables in which-ever
database engine you are using first and make sure you honour
data-types and constraints.[/color]
So my response to Scott’s comment is…
You sure are talking like I’ve done a bunch of db admin work before.
Only db stuff I’ve ever done pretty much is with Groupwise and I don’t
really have to do any dba stuff with that.
–
Stevo
Stevo wrote:
[color=blue]
So my response to Scott’s comment is…
You sure are talking like I’ve done a bunch of db admin work before.
Only db stuff I’ve ever done pretty much is with Groupwise and I don’t
really have to do any dba stuff with that.[/color]
I guess the question then becomes what are you comfortable with, with
databases?
Have you ever set up a DSN in the ODBC Manager?
Do you understand the standard sql statements, select, insert, update,
delete?
High level steps would be like this:
1). install the foxpro ODBC driver on your computer (ideally a 32bit
machine to avoid confusion because the ODBC Manager is different for
32bit and 64bit)
2). Add a DSN and configure the foxpro ODBC driver (through Start →
Control Panel → Administrative Tools → Data Sources (ODBC)) to point
to a copy of your foxpro database.
3). If you are using Excel go to Data → From Other Sources → From
Microsoft Query
4). Choose the DSN created in step 2 and click on ok
5). enter credentials for the database if needed
6). you should be prompted to select a table from the database, click
next
7). click next
8). click next
9). select “Return Data to Microsoft Excel” and click finish
10). select where in the spreadsheet you’d like the data dumped to
And now you have the contents of the table dumped to Excel. From there
you need to insert the data, so in the past I would use concat
statements in Excel to create an INSERT statement, then copy and paste
that in to a tool like WinSQL to bulk load data.
You do need to be wary if you are moving between different database
enginers as some column types aren’t supported or work differently -
mySQL plays it fast and loose, whereas DB2 can be a real syntax nazi.
And I believe foxpro is pretty pedantic about ODBC driver versions.
Steve:
You might check this:
http://stackoverflow.com/questions/16819811/how-to-convert-visual-foxp
ro-database-into-sql-server-database : )
–
Susan
Novell Community Chat Moderator
http://forums.novell.com/faq.php?faq=novfor#faq_rules
http://www.ncci.org NCCIrregulars Web Site
https://www.facebook.com/groups/NCCIrregulars
Please read the following before posting in here:
http://preview.tinyurl.com/27zopdy
On 23/07/2014 21:42, Stevo wrote:[color=blue]
Dave Howe sounds like they ‘said’:
[color=green]odbc probably your friend there :)[/color]
So my response to Dave’s comment is…
We don’t have visual foxpro installed anywhere. This is from a small
software package developed by an outside source.[/color]
Foxpro odbc driver is a free download from ms site.
you should be able to use it with DTS, or MS Access, to grab the data
from the tables and/or report on it directly.
Susan sounds like they ‘said’:
[color=blue]
Steve:
You might check this:
http://stackoverflow.com/questions/16819811/how-to-convert-visual-foxp
ro-database-into-sql-server-database : )[/color]
So my response to Susan’s comment is…
I had already looked that over, still pretty greek to me.
For stuff like this, I’m usually done if the server can be pinged.
–
Stevo
Have you installed the FoxPro ODBC to see what you can see?
–
Susan
Novell Community Chat Moderator
http://forums.novell.com/faq.php?faq=novfor#faq_rules
http://www.ncci.org NCCIrregulars Web Site
https://www.facebook.com/groups/NCCIrregulars
Please read the following before posting in here:
http://preview.tinyurl.com/27zopdy
Susan sounds like they ‘said’:
[color=blue]
Have you installed the FoxPro ODBC to see what you can see? :)[/color]
So my response to Susan’s comment is…
I have not, but a person in our dept (who has taken dba classes) figure
out some stuff and I guess got the data extracted.
–
Stevo
Yayyyyyyy!
–
Susan
Novell Community Chat Moderator
http://forums.novell.com/faq.php?faq=novfor#faq_rules
http://www.ncci.org NCCIrregulars Web Site
https://www.facebook.com/groups/NCCIrregulars
Please read the following before posting in here:
http://preview.tinyurl.com/27zopdy
Stevo,
Great - caught your post very late. I have plenty experience with VFP
and data exporting if the need is still there.
Kevin
salisburyk’s Profile: https://forums.novell.com/member.php?userid=5436
View this thread: https://forums.novell.com/showthread.php?t=478404