简体   繁体   中英

how can I copy the tables schema from database to another database using SqlserverCe in asp.net?

I want to copy the sqlserverCe database(.sdf) tables into another sqlserverCe database(.sdf) in the same application in ASP.NET.

Is it possible? If possible, please help me how can I do this?

You could use my scripting library, which can script entire schema to a file, and run the script using the ExecuteSql method against the other sdf file. http://exportsqlce.codeplex.com

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM