Click here to Skip to main content
15,889,844 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello. I have SQL Server 2005. I have my database and tables. I am trying to export the tables to .DBF file for a Foxpro program. How can I export or convert my SQL 2005 Database to a .DBF file for Foxpro?
Posted

1 solution

This is a quick run through to generate Insert statements for all of the data in your table, using no scripts or add-ins to SQL Management Studio 2008:
1.Right click on the database and go to Tasks -> Generate Scripts
2.Select the tables (or object) that you want to generate the script against.
3.Go to Set scripting options and click on the Advanced button.
4.In the General category, go to Type of data to script
5.There are 3 options: Schema Only, Data Only, and Schema and Data. Select the appropriate option and click on OK.

You will then get the CREATE TABLE statement and all of the INSERT statements for the data straight out of SSMS.

If this solves your issue kindly up vote and mark this as solution.. Thanks..
 
Share this answer
 
Comments
Lolo1986 25-Feb-15 16:30pm    
This option will create a .sql file.
manak chand 26-Feb-15 1:20am    
you will be having Create SP scripts in .Sql file.. you can select which SP to Create ... and also provides options for Create, Drop & Create and Drop for Schema as well as data..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900