想要在c#中动态管理SQL Server

发布于 2024-08-15 18:00:25 字数 237 浏览 3 评论 0原文

我想动态管理SQL Server,即通过代码我想扫描SQL Server以获取可用数据库,而不是创建新数据库,访问旧数据库,更改它,然后根据表模式将数据插入数据库,什么是更好的方法我应该使用吗?

我听说过 nhibernate、SQL Server Management Object (SMO)、Smss (SQL Server Management Studio) 的名称,但除了它们的名称之外我不知道更多,

请指导我优缺点

I want to manage SQL Server dynamically, that is through code I wan to scan SQL Server for available databases than I want to create new database, access older database, alter it, and insert data into database depending upon table schema what is better approach what should I use?

i heard name of nhibernate, SQL Server Management Object (SMO), Smss (SQL Server Management Studio) but i do not know more than their names

please guide me with pros and cons

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

云淡风轻 2024-08-22 18:00:25

NHibernate 是一个与 SQL Server 没有直接关系的 ORM。 SMSS 是一个用于管理 SQL Server 的 GUI 工具。 SMO 正是您所需要的。例如,请参阅

NHibernate is an ORM which has no direct relation to SQL Server. SMSS is a GUI tool for managing SQL Server. SMO is what you need. See this, for example.

面如桃花 2024-08-22 18:00:25

SMO 是必经之路。您可以在 MSDN 中找到详细信息。

SMO is the way to go. You have detailed information in MSDN.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文