How to get GUI on SQL Server 2012 - sql-server

I have installed a Evaluation 180 days version of SQL Server 2012 from the official website of Microsoft, on a Windows Server 2012 R2 (with gui). At the end of the installation in the Installation center, everything passed and succedeed but when I quit the program, I don't have any way to execute SQL Server from a graphical interface. I can see MS instances created, services running but how can I get a GUI to work with SQL Server?

With the newer version of SQL Servers, the SQL Server Management Studio (the GUI) is a separate install and you will need to install it separately to the database engine installation (which is what you have done). You can download SSMS from here https://www.microsoft.com/en-us/download/details.aspx?id=29062. The page contains a lot of different download components, make sure you check the appropriate install and click download.
ENU\x64\SQLManagementStudio_x64_ENU.exe if you want the 64bit installation of SQL Management Studio
ENU\x86\SQLManagementStudio_x86_ENU.exe for the 32bit version.

you Need to Install SSMS
SQL Server Management Studio (SSMS) is a tool to manage and administer SQL Server and SQL Database.
SSMS is offered free of charge by Microsoft.

Related

Northwind.mdf - This database file is not compatible with the current instance of SQL Server (in Visual Studio 2017)

I want to practice with some database that I want to use inside Visual Studio 2017.
I had Northwind.mdf that I downloaded some time ago. But when I try to connect to it from VS2017 Servers panel, I get error message:
This database file is not compatible with the current instance of SQL Server.
Q1: Why?
Q2: Where and how do I know the version of Northwind.mdf?
Q3: Where and how do I know which version of database is supported by VS2017?
Q4: I can create my own database in VS2017, but why I cannot use the existing database?
SQL Server only supports databases up to two versions ago, I don't know what version of SQL Server comes with VS2017 but I suppose that is at least SQL Server 2016 (you can check it using the query select ##version), so it supports at most DB's from SQL Server 2012 and Northwind is for SQL Server 2000.
If you really, really want to use that database you have an upgrade path, is a bit cumbersome but is free (you should use a virtual machine for this if you can, I sometimes use the VM's that MS offer for testing IE for this sort of things):
Download and install SQL Server 2008 R2 Express, which is the last version that supports databases from SQL Server 2000. Import the database and make a full backup (you can also attach and detach the database files but I prefer to use backups).
If the version returned by select ##version if SQL Server 2016 or higher, download and install SQL Server 2014 Express. Restore the backup from 2008 to a new database and then make another backup of that database (if you are using this version just restore the backup in your current SQL Server and you are done).
Finally, restore the 2014 backup in the SQL Server used by VS2017.
Note that is you already have SQL Management Studio (or it's integrated in VS2017) you don't need to install the previous versions, since it can connect to different SQL Server versions (if you do all the installs on your system you shouldn't install the previous versions of Management studio, take care of this). Also, if you are doing this in your system I recommend uninstall the step versions as soon as possible.
i have the same problem, i want to use the northwind in VS2017 environment.
(btw - w3scoolsuse this northwind db to teach sql (october 2018)
so i download the sql script from here, install it and run it from cmd in my computer
sqlcmd -S (localdb)\mssqllocaldb -i InstNwnd.sql
This create db in my computer that i can access by sqlcmd, and by visual studio 2017.
If you want those files (without build it yourself) you can download it from my google drive ( i will upload it to github someday and change the link)

How do you upgrade a SQL Server Express instance from 2012 to 2014

I performed what I thought was an upgrade from SQL Server Express 2012 to 2014 by running the 64-bit executable. Everything seemed to be working fine during installation as it recognized my existing server instance (2012) which I presumed would be upgraded to 2014.
However, when I try to restore a 2014 DB from my web host, I get the following error:
The database was backed up on a server running version 12.00.2000.
That version is incompatible with this server, which is running
version 11.00.5343. Either restore the database on a server that
supports the backup, or use a backup that is compatible with this
server.
I definitely have 2014 installed, but when I view my instance from inside SMS 2014 it looks to still be running on SQL version 11.xxx which I presume is 2012 (the name of the instance is the same as it was when I was running 2012).
Did I do something wrong during the installation? How do I upgrade my instance to 2014 so that I can restore my DB locally?
downloadsqlserverexpress.com helps to find the correct download of SQL Server Express from MS Download Center. You need the one that contains the SQL Server Engine, not just Management Studio.
sqlserverbuilds.blogspot.com.au has a full list of SQL Server versions and builds.
Using it we can see that you are running Management Studio 2014 (build 12.0.2000.0), but you are connecting to SQL Server 2012 engine (build 11.0.5343).
Maybe you now have two engines running (both 2012 and 2014). You can check the list of running processes and verify if two instances of sqlservr.exe are running.
It should be possible to upgrade the engine in place by installing 2014 on top of 2012. I don't know why it didn't happen in your case. You could have chosen to install only Management Studio even if you had a full installer.
One long, but sure way to clean up would be to uninstall everything related to SQL Server and install 2014 again. Make proper backups of databases at first, of course.

How to install SharePoint Foundation 2010 with SQL server 2012 standard version on windows server 2012

I have to install SharePoint foundation 2010 with SQL server 2012 Standard Version on Windows server 2012
What I have flow the steps:
Installed Windows server 2012
Installed SQL server 2012 Standard Version
Installed SharePoint Foundation 2010(SP1)
But Issue is that SharePoint not picking the right SQL server 2012 Standard Version instance,it always uses the SQL server express instance that is comes with SharePoint SP1 .exe file.
I have tried this activity for 3- 4 times by removing SharePoint and SQL and Repair as well but always all the configuration databases are generated in the SQL express instance.
Did anyone having suggestions or solution will be appreciated.
Thanks
Your problem is that you are choosing Standalone installation and this option will always install SharePoint Data Bases in SQL Express.
When installing SharePoint you must choose Server Farm installation (even if SP and SQL are on the same server) at the second screen after accepting licence terms, some screens later you will be able to choose the SQL instance.
Here are some guides that may help you, however I recommend you to search more information:
https://technet.microsoft.com/en-us/library/cc287960(v=office.14).aspx
http://mahedee.net/installing-sharepoint-foundation-2010-step-by-step/
https://mohamedradwan.wordpress.com/2012/06/21/install-sharepoint-2010-with-ms-sql-server-2012-on-windows-server-2012/
Required accounts:
https://technet.microsoft.com/en-us/library/ee662519(v=office.14).aspx
https://technet.microsoft.com/en-us/library/cc288210(v=office.14).aspx

SQL Server 2005 - install & setup -ADD_LOCAL property / template.ini / UPGRADE property

I'm trying to install SQL Server 2005 Developer Edition on my Windows 7 Ultimate laptop.
When the installation runs, I am getting the following error :-
A component that you have specified in the ADD_LOCAL property is already installed. To upgrade the existing component, refer to the template.ini and set the UPGRADE property to the name of the component.
I had installed an Express version from the Web Platform installer, but I'm sure I removed that. Also installed were compact editions from a mobile development workshop I did last year. I removed those also.
Currently my Uninstall or change a program list in Control Panel has the following SQL Server related entries :-
Microsoft SQL Server 2005
Microsoft SQL Server 2005 Backward Compatibility
Microsoft SQL Server 2005 Books Online (English)
Microsoft SQL Server 2005 Mobile [ENU] Developer Tools
Microsoft SQL Server 2005 Upgrade Advisor (English)
Microsoft SQL Server 2008 Setup Support Files
Microsoft SQL Server Native Client
Microsoft SQL Server Setup Support Files (English)
Microsoft SQL Server VSS Writer
Where do I go from here to get this product installed ?
In the end I followed this article.
http://social.msdn.microsoft.com/forums/en-US/sqlsetupandupgrade/thread/50164862-ef20-4758-9c7a-0d6ae8f1b3f9/
After rebooting and running the installation again, and choosing just the client components (the problem part of the install) it is now installing smoothly.
I'm going to rerun the installation in a few moments and install the SQL Engine, Reporting Services, Analysis Services, and the other options such as the sample databases.
Job done; it seems.

Visual studio 2010 and Sql Server

Do visual studio 2010 include already Sql Server instance, or I need to install Sql Server developer edition to develop an application that need a Sql Server db.
If it installs a Sql Server express edition, it this enough or it's better to have Sql Server developer edition?
I would second that installing the "full" SQL Server Development Edition makes sense if you do serious database development.
However you can have both installed side by side, and having SQL Server Express is very useful for one reason - it supports placing database files in the App_Data folder of ASP.NET applications. While I don't do this for my own projects, it's a very nice feature for demos or open source applications you download from the web: just unzip, start VS, hit F5, and you have a running solution including database. Without SQL Express, you first have to move the MDF file, attach the database, set up user rights, replace the connection strings etc...
The Visual Studio 2010 installer gives you the option of installing SQL Server 2008 Express Edition. This edition of SQL Server is good enough for development purposes but is not intended for production use.
I think the size limitation is not the main issue.
In Sql Server 2008 you have some features in Sql Server Management Studio that aren't available in the Express management Studio or the Express database engine, like:
- suggesting the table and column names (in Query Window)
- Sql profiler
Cor Westra

Resources