Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 Export from FOXPRO

Author  Topic 

ashishashish
Constraint Violating Yak Guru

408 Posts

Posted - 2009-01-22 : 03:30:14
Hi I Just Want to Import data in Sql 2005 from Foxpro database and i m unable to do this....

Please if any body know how to do this then lEt Me Knoe,,,,

I just want it to do from Import\Export package....so any help will be Appreciated...
Thnaks

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-01-22 : 04:28:00
See how to create a connection string with
http://www.connectionstrings.com/



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

ashishashish
Constraint Violating Yak Guru

408 Posts

Posted - 2009-01-22 : 06:01:35
Sorry still cant get it ......
m unable to do this?
Help me out in this,,,,
I just make a plan to switch my Server 2000 From Sql 2005 But I am stuck in this?
Becouse On Daily Basis there are several files to upload on Server so How to Upload FoxPro Data file in Sql 2005 thanks.....

Thanks For your reply Sir...
But please can u explain more this for me?
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-01-22 : 06:52:45
Read Books Online how to create LINKED SERVER, and use the informaton in the provided links to successfully create a linked server to a FoxPro file.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

evmisu
Starting Member

17 Posts

Posted - 2009-01-22 : 06:58:30
SEE This and download the progarm for updating SQL Server: http://msdn.microsoft.com/zh-cn/vfoxpro/bb190232(en-us).aspx

hope it is helpful.

Andy
Go to Top of Page

ashishashish
Constraint Violating Yak Guru

408 Posts

Posted - 2009-01-22 : 07:11:16
quote:
Originally posted by Peso

Read Books Online how to create LINKED SERVER, and use the informaton in the provided links to successfully create a linked server to a FoxPro file.



E 12°55'05.63"
N 56°04'39.26"




Well I know How to create a linked server,,,,,
i have a linked server on my Server but it is in Sql but i jus donn knw wat to do wid FoxPro,
Well Thanks For Suggesstion
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-01-22 : 07:38:44
The very same thing. Just choose a FoxPro as datasource instead of another SQL Server.
The provided link will tell you all details.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

ashishashish
Constraint Violating Yak Guru

408 Posts

Posted - 2009-01-22 : 08:33:15
Ohkk I do only this for adding i linked server on My Instance.......

like this,,,,


EXEC sp_addlinkedserver
@server='Tech1_instance1',
@srvproduct='',
@provider='SQLNCLI',
@datasrc='TECH1\SQLEXPRESS'


Select * from openquery(Tech1_instance1,'select custid from testtable')

soi donn know how to do this for Foxpro....
well one more thing when i tried to Export Data from Dts IMport\Export which is in SQL 2000 den it give error for SQL 2005 when i run it says,,,,
Not A trusted Connection,,,i Only i just do something wrong with the Logins and roles ,,,,

But Still cant find it out wat,,,
So Any suggetions on this?

Thanks,,,for replies

Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-01-22 : 09:24:04
You connect FROM your SQL Server database TO the FoxPro file.


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

yosiasz
Master Smack Fu Yak Hacker

1635 Posts

Posted - 2009-01-22 : 11:39:36
Right click on the database you want to import TO.
A window coes that says SQL Server Import and Export Wizard
Click Next
For Data Source select nie that says FoxPro
Specify File location and user name and password if necessary
be sure you or whatever credential you are running as has rights to the location of that foxpro file .dbf
You can click on Advanced if you need to specify other special settings
Then click Next
Here select the database to where you want to import the FoxPro data
Click next
Then you can specify if either you want to write a query or just copy the database specified as a whole
if you want query you can either write it yourself or even specify a sql file. I say copy the whole database. Writing query to import foxpro tables is tricky .. select 'field1', 'field2' From 'xxx'

have fun
call me if you have any problems


Go to Top of Page

ashishashish
Constraint Violating Yak Guru

408 Posts

Posted - 2009-01-22 : 23:40:46
quote:
Originally posted by yosiasz

Right click on the database you want to import TO.
A window coes that says SQL Server Import and Export Wizard
Click Next
For Data Source select nie that says FoxPro
Specify File location and user name and password if necessary
be sure you or whatever credential you are running as has rights to the location of that foxpro file .dbf
You can click on Advanced if you need to specify other special settings
Then click Next
Here select the database to where you want to import the FoxPro data
Click next
Then you can specify if either you want to write a query or just copy the database specified as a whole
if you want query you can either write it yourself or even specify a sql file. I say copy the whole database. Writing query to import foxpro tables is tricky .. select 'field1', 'field2' From 'xxx'

have fun
call me if you have any problems







Do U Think That there is a option of uploading file on SQL 2005 Server through SQL 2005 DTS-Import\Export Wizard...
because i cant find any option for foxpro there?
Go to Top of Page

ashishashish
Constraint Violating Yak Guru

408 Posts

Posted - 2009-01-22 : 23:45:22
quote:
Originally posted by Peso

You connect FROM your SQL Server database TO the FoxPro file.


E 12°55'05.63"
N 56°04'39.26"





Yes I want to connect thr foxpro file through the SQl Server and upload it to SQL 2005
Go to Top of Page

yosiasz
Master Smack Fu Yak Hacker

1635 Posts

Posted - 2009-01-23 : 10:18:56
you are missing the foxpro driver then ....it should be there. if you don't see it it ain't installed chico.
Go to Top of Page

ashishashish
Constraint Violating Yak Guru

408 Posts

Posted - 2009-01-23 : 23:54:35
quote:
Originally posted by yosiasz

you are missing the foxpro driver then ....it should be there. if you don't see it it ain't installed chico.



Ohk Temme from where i get that foxpro driver?
Go to Top of Page
   

- Advertisement -