Click here to Skip to main content
16,015,504 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi I have a main data base that i should generate script of it by c#.
I create an empty database by C#.
I want to copy the tables,views,store procedures,...to the empty database by C#.(every thing except data).
I dont know how to do this?
Posted
Comments
DamithSL 25-Oct-14 8:42am    
what is the database server? and what have you tried so far?
maliheSadat 25-Oct-14 9:17am    
I didnt say database server.
I want to copy all things of a database(except data) to an empty database in c#.
[no name] 25-Oct-14 9:33am    
How are we to know what database server you are using if any at all? Do you suppose that SQL Server might be completely different than Oracle? Or MySQL? Or SQLCE?
maliheSadat 26-Oct-14 1:21am    
oh yes!My database server is sql server 2008.

1 solution

Have a look at the below tool and its source code , might give you some idea on how to proceed.

http://scriptdb.codeplex.com/[^]
 
Share this answer
 

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