数据库创建 [英] database creation

查看:84
本文介绍了数据库创建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对C#还是陌生的,对C#来说还很陌生,我必须创建一个可动态创建数据库(或至少是数据库中的表)的应用程序.有什么水可以做吗?

谢谢,请原谅我的英语

I am new to C# pretty new to c# and I have to create an aplication which creates a database dynamicly (or at least tables in a database). Is there any wat to do that?

thanks and please excuse my english

推荐答案

您应该研究 SQL Server管理对象(SMO)
作为实现目标的一种途径.

除此之外,Google/Bing/Yahoo应该是您的不变伴侣.您将从那里得到的帮助远远超过在这里得到的帮助.
You should investigate the SQL Server Management Objects (SMO)
as one route to achieve your goal.

Other than that Google/Bing/Yahoo should be your constant companion. You will get far more help from there than you are likely to get here.


尝试使用此库(但前提是您已经创建了数据库).

DBKeeperNet-使数据库架构保持最新状态 [
Try this library (but it supposes you have a database already created).

DBKeeperNet - Keeps Your DB Schema Up-to-date[^]

You can also use ADO.NET DbCommand and run SQL commands directly.


如果您只是在寻找创建数据库的代码,请参见
If you are just looking for code to create a database - see Create a SQL Server Database Using C#


这篇关于数据库创建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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