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.
Loading
Vijaya KadiyalaPosted Oct 4, 2008, 5:01 PM
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
Mahesh ChandPosted Sep 12, 2008, 4:25 PM
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