从c#应用程序动态创建数据库 [英] dynamic creation of database from c#application
本文介绍了从c#应用程序动态创建数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要从我的c#应用程序动态创建数据库。当我在文本框中输入数据库名称时,应该创建一个具有这样名称的数据库。请通过提供c#代码
I need to create a database dynamically from my c# application.when i enterthe database name in a textbox a database with such a name should be created.pls help me by providing the c# code
推荐答案
看看下面的内容。你需要知道SQL Server管理对象(SMO)
SMO - 管理您的SQL Server! [ ^ ]
http://technet.microsoft.com/en-us/library/ms162169.aspx [ ^ ]
Have a look into the below ones. You need to be aware of "SQL Server Management Objects (SMO)"
SMO - Manage your SQL Server![^]
http://technet.microsoft.com/en-us/library/ms162169.aspx[^]
阅读这篇文章
http://support.microsoft.com/kb/307283 [ ^ ]
以编程方式创建SQL数据库 [ ^ ]
Read this article
http://support.microsoft.com/kb/307283[^]
Create a SQL Database Programmatically[^]
这篇关于从c#应用程序动态创建数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文