Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Create database


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 0
Jostein Torseter

Posts: 1
Registered: 4/3/14
Create database  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 4, 2014 5:15 AM
I have a Delphi program that uses an MSSQL Express database. The database should be created on installation or first startup of the Application, and here my problem starts. How can I Connect to the database server to run the "create database" script? A normal sql Connection requires a Connection string containing the DB name. Pluss i am not sure such a Connection could even do what I want.
I want to display a window to the user where he can enter the database Properties (db, username, pwd), and then i want to Connect to the server. If the database does not exsist, I want to create it.
Any suggestions?
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02