I have the full Visual Studio 2010 (not express) installed, with SQL Server that came with it as well:
I was trying to locate SQL Server Management Studio (ssms) in order to follow this tutorial but I can't seem to find it in my installation.
I could theoretically download the 2008 Management Studio Express but given the so many editions and versions of SSMS (e.g. 2012 Express), how do I know whether it is compatible with my VS 2010?
Also, why download an Express Edition if I already have it in my original Visual Studio 2010 DVD?
So my questions are:
- Is SSMS already installed but I don't see it? (if so, how do I locate it?)
- If it's not installed, do I just need to run Setup again, then install it?
- If it isn't really on the VS 2010 DVD (as many on SO suggest), which downloadable Express edition is most compatible with my VS 2010 (not express)?
Update: (for the benefit of future MS SQL Server newcomers)
Thanks to the answers below I managed to successfully install what I needed and most importantly understand the tools picture.
So to answer my particular questions one by one:
- No
- No
- SQL Server Management Studio 2008 Express
Tips:
- Once everything is installed, the next question is "What do I do next?". Fortunately, there is a great tutorial which to me is much clearer than the cumbersome (repetitious, cyclic links, non-linear, etc.) official Microsoft documentation.
- Despite the greatness of the functionx.com tutorial, it doesn't provide enough details on how to initially connect to local. Once again, SO comes to the rescue and clarifies that 2 more conditions must be met: (a) SQL Server Browser service must be running. (b) Server name must not be "local" but rather
<local-pc-name>\SQLEXPRESS
. - To programmatically create a database in C#, use ADO.NET as well.
- Why use schemas.
- Don't even think about storing database files on a network share.
- If you get "Invalid object name" in a SELECT statement for a table you just created, refresh the local cache.
- When encountering
System.Data.SqlClient.SqlException
for the first time you use C# with an existing database usingnew SqlConnection()
, remember that "Data Source=" cannot specify the computer name alone (as in the tutorial) but rather have \SQLEXPRESS appended to the computer name. Also, make sure TCP/IP Client Protocol is enabled.