如何动态创建数据库 [英] how to create database dynamically

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

问题描述

我负责动态创建数据库,运行时我将servr名称,数据库,用户名,密码输入文本框,然后单击按钮,通过脚本创建数据库.

i having task to create database dynamically, run time i give servr name ,database,user name,password to the text box and click to button, through script the database to create.

推荐答案

http://www.dotnetspider .com/resources/39945-Create-Database-dynamically-using-asp-net-c.aspx [ http://www.dotnetfunda.com/codes/code924 -create-database-dynamically-using-aspnet-csharp-code-.aspx [
http://www.dotnetspider.com/resources/39945-Create-Database-dynamically-using-asp-net-c.aspx[^]
http://www.dotnetfunda.com/codes/code924-create-database-dynamically-using-aspnet-csharp-code-.aspx[^]

I hope the above information will be helpful. If you have more concerns, please let me know.


Google是您的朋友:很好,经常拜访他.与在这里发布问题相比,他可以更快地回答问题.

使用动态创建数据库" 从您的问题主题粘贴 进行的快速搜索获得了637,000,000次匹配.仅首页上有很多说明-请选择适合您情况的内容.
http://www.google.co.uk/search?sourceid = chrome& ie = UTF-8& q =动态创建+数据库 [ ^ ]

尝试使用Google-与在此处发布问题相反,它可以节省您很多时间.
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

A quick search using "create database dynamically" pasted from your question subject gave 637,000,000 hits. The first page alone is full of explanations - just pick the one that fits your circumstances.
http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=create+database+dynamically[^]

Try to use Google - it can save you lots of time, as opposed to posting a question here...


要添加到已经给出的答案中,请重新考虑动态创建数据库.

通常,没有理由动态创建新数据库.这主要是设计问题.在许多情况下,可以使用一个(或几个)建模良好的永久数据库解决多个数据库的需求.

由于您没有指定动态创建数据库的原因,因此无法说出哪种方法更适合您的情况,但是如果您再次考虑这种情况,则可能会得出不同的解决方案.
To add to the answers already given, re-consider creating the database dynamically.

Usually there''s no reason to create new databases dynamically. This is mainly a question of design. In many cases the need of multiple databases can be resolved with a single (or several) well-modeled permanent databases.

Since you didn''t specify the reason to create the database dynamically, there''s no way of saying which approach is better in your situation but if you think about the situation again you may end up to different solution.


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

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