如何在.Net中生成数据库脚本? [英] How Can I Generate Script Of Database In .Net?

查看:57
本文介绍了如何在.Net中生成数据库脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
我有一个主数据库,我应该用c#生成它的脚本。

我用C#创建一个空数据库。

我想要通过C#将表,视图,存储过程......复制到空数据库中。(除了数据之外的所有东西)。

我不知道该怎么做?

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?

推荐答案

看看下面的工具及其源代码,可能会让你知道如何继续。



http://scriptdb.codeplex.com/ [ ^ ]
Have a look at the below tool and its source code , might give you some idea on how to proceed.

http://scriptdb.codeplex.com/[^]


这篇关于如何在.Net中生成数据库脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆