Create Database SQL Server with VB or VB.Net
Hello who can help me, please...
I have tried to Creating a SQL Server database programmatically using VB.NET, but I want to Create using textbox1.text where user can enter database name (Database Location) into textbox1.text. Examples : I want enter to textbox1.text = DBSales or use Browse to search the location where the Database will be saved, and then Database was created with Name DBSales in the location that user choose.
Thank's
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jan MontanoRank #1,295 · 1.3K reputationPosted Jul 25, 2007, 5:46 PM EDT
Good day to you. What in particular are you asking for assistance? How far have you gone with your problem? I assume you already did an automation to create a database. But you want the table name to be read from textbox1.text? Please correct me if I am wrong. And when you said " location where the Database will be saved," are you referring to the path the database file will be saved?
Regards,
Jan
Antoni Toni6 reputationPosted Jul 27, 2007, 4:32 AM EDT
Jan MontanoRank #1,295 · 1.3K reputationPosted Jul 29, 2007, 7:15 PM EDT
Please post the partial code you have and point where error occurs. and what you want to achieve. Thanks ;)
Munir ShaikhRank #472 · 5.3K reputationPosted Jul 29, 2007, 9:10 PM EDT
This will solve your problem, but this is in Windows form check this,
http://www.vbdotnetheaven.com/UploadFile/mahesh/
CreateSQLDatabase04252005064419AM/CreateSQLDatabase.aspx
Regards,
>>Munnamax