Create new SQL Server 2008 Express database without SSMS

1136870 pts.
Tags:
SQL Server 2008
SSMS
Is there a way for me to create a new database with SQL Server 2008 (Express) but not using SSMS? Do I have to use SP1 for this? Thanks again.
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

Thanks for coming to ITKE. Simple answer:

18

down vote
 

You can use the SqlCmd utility from the command line to execute SQL. 

Open a command prompt and then type SqlCmd.exe and press enter, you should then get 1) which means you are connected.

Once connected execute
1) CREATE DATABASE dbname
2) GO

 

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: