Click here to Skip to main content
15,902,861 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everybody,

How can I create a new sql Database using the Server Explorer built in VS 12?
I tried to connect to my SQL server by clicking with the right button here:
<img src="http://snap.ashampoo.com/uploads/2014-02-23/nunYGNLr.png"></img>

and then on the Add new SQL Server DB

This window appeared:

<img src="http://snap.ashampoo.com/uploads/2014-02-23/ZLyF8Zhh.png"></img>

and the combobox is empty even if I click Update (or refresh... i Have the italian version and I don't know the right translation)...

How can I create a new istance? My Visual Studio setup has installed SQL server automatically... I cannot understand where is the problem....

<img src="http://snap.ashampoo.com/uploads/2014-02-23/h7taeGEi.png"></img>

Thanks!!
Posted
Updated 23-Feb-14 2:46am
v3

1 solution

:laugh:
It's not too obvious, is it?
In the second stage of your question, when you have this image showing:
http://snap.ashampoo.com/uploads/2014-02-23/ZLyF8Zhh.png[^] open the drop-down by clicking the down arrow at the right hand end. There will be a "short delay" and the it will open, and you will see the available SQL Server instances.
Probably, you want something like YOURPCNAME\SQLEXPRESS
It's pretty obvious from there.

However, I don't think you can create a new DB from there - it's easier to use SQL Server Management Studio (which installs with SQL Server Express and runs as a separate application)
 
Share this answer
 
Comments
LLLLGGGG 23-Feb-14 9:30am    
I tried to create a new one for an hour and I got it: I've chosen MS SQL Server Database file and I got my connection string: (LocalDb)\v11.0. I inserted it in the combobox and it worked nicely. I haven't got the SSMS... where can I find it?
OriginalGriff 23-Feb-14 9:36am    
If you installed SQL Server Express it'll be in the "MicroSoft SQL Server" folder of your program files list, or just press the start button and type "ssms".
LLLLGGGG 23-Feb-14 14:53pm    
I think VS12 installed it for me... There isn't any ssms file in my pc... I might miss something, but if you look at the last image, you'll find out that I have SQL Server Express installed on my PC, so why haven't I got ssms and I can create new mdf files??

I haven't got a clue...

Thanks!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900