且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否可以通过查询创建数据库?

更新时间:2023-01-01 11:01:59

当然有可能,因为 SQL 轻轻提供 DDL 语句,例如,参见***的数据定义语言 [ ^ ]。


参见此处 [ ^

是。一些示例:

创建SQL Server数据库使用C# [ ^ ]

SMO - 管理你的SQL Server! [ ^ ]

Google可以为您提供更多帮助......


Please help.

I want to create a ms access database through query.

Is it possible?

Database Name=emplyee

e.g. Create database employee

And I want to use that query in coding of C# Windows application to create a new database, programmatically, on a button click.

Of course it is possible, since SQL gently provides DDL statements, see, for instance "Data definition language" at Wikipedia[^].


See here[^]


Yes. Some samples:
Create an SQL Server Database Using C#[^]
SMO - Manage your SQL Server![^]
Google can help you more...