I truly appreciate your article on creating database from code in vb.net
However, it appears as if nobody can answer my question or it may not be possible on the dotnet framework for now.
I need to create a database from code such that the name of the database will be supplied to the sql string from the value entered in a textbox control on a form. This textbox will be called by the click event of a button for creating a database. A name will be entered in the textbox, its value will now be supplied to the sql string after another button is clicked.
Can you help me on this?
Please reply.
About database creation...
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Mahesh ChandRank #1 · 393.3K reputationPosted Sep 12, 2008, 12:25 PM EDT
This is something you might try.
You connect to the master database in SQL Server using admin user and use "CREATE DATABASE" SQL statement and see if it works. I have not used it but it should work in theory.
Here are SQL statements and samples:
http://msdn.microsoft.com/en-us/library/ms176061.aspx
Vijaya KadiyalaRank #1,085 · 1.8K reputationPosted Oct 4, 2008, 1:01 PM EDT
Hi
Check out the below link
http://www.codeproject.com/KB/aspnet/Create_Database.aspx
Thanks -- Vj
http://dotnetvj.blogspot.com
http://oravj.blogspot.com