Conflict between sql server 2008 r2 and 2012 - sql-server

I have both SQL Server 2008 r2 and SQL Server 2012 installed, but when I open SQL Server 2008 r2 management studio and enter by (localhost), it's version seems to be 11.0.2218 which is for sql server 2012 management studio, so I can't access or create older tables.
Is there any way to change SQL Server management studio?

Open your SQL Server Configuration Manager, Under SQL Server Network Configuration you will find Protocols for and all the instances that is installed will be there. MSSQLSERVER is the default instance. Find your instance name there.
There other option is to run regedit Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server You will find keys like.
MSSQL10_50.MSSQLSERVER and
MSSQL11.SQLEXPRESS
Yours will be different though.
That will show you the SQL Server version and instance. Mine show MSSQL10.5 which is 2008 R2 as MSSQLSERVER which is the default instance, and MSSQL11 as SQLEXPRESS which is my named instance for 2012

Related

SQL Server Database Migration Assistant: Cannot connect to server

I am trying to migrate a database in-place (same PC) from SQL Server 2008 R2 Express to SQL Server 2019 Express, by using DMA (Database Migration Assistant). But I cannot connect to the target server (2008) during the "Assessment" task.
I have installed SQL Server 2019 as coexisting installation assigning the following instance names:
MSSQLSERVER (default name assigned during SQL Server 2008 R2 installation)
MSSQLSERVER2019 (different instance name assigned during SQL Server 2019 installation)
The PC is named DESKTOP1 and this results into the following server names:
DESKTOP1 for SQL Server 2008 R2
DESKTOP1\MSSQLSERVER2019 for SQL Server 2019
Both the server names work fine and I can normally connect to the servers by means of Management Studio.
The weird behaviour is that during the database assessment task, I couldn't connect to the source database server (DESKTOP1). Then I tried to go directly to the "Migration" task and I was able to connect. After this I went back to the "Assessment" task and (kind of magic) I was able to connect to the server DESKTOP1.
Do you have any clue about this issue? It looks like during Migration task there is something that enable the server connection.
Thank you!

SQL Server 2008 Management Studio Not Showing Database

I've got a fresh install of Windows Server 2008 R2 SP1 and just installed SQL Server 2008 R2, including SQL Server 2008 R2 Management Studio.
When I go into Management Studio, it does NOT show the SQL Server instance that was created during setup. It only has (local) and won't let me connect to it at all.
Any ideas?
First check if SQL Server 2008 instance is installed show on your SQL Configuration Manager.
If it doesn't exist you need to re install you sql server 2008 r2 and follow these steps on this link below:
SQL SERVER – 2008 – Step By Step Installation Guide With Images
And it exist just add server name : yourpcname
Best Regards
Problem solved. Management studio requires <computer name>/<instance name> under the "Server" section. I was only entering in the instance name.
Another solution that worked for me:
enter "localhost" as the server (computer-name\MSSQLSERVER failed)
Not sure why but the name "MSSQLSERVER" as shown in Configuration Manager is not the name shown when I log in via Management Studio. The name in Management Studio is SQL Server 9.0.5000 which corresponds to SQL Server 2005 SP4 (which is correct in my case).

if i create my database with sql server 2008 r2 management studio

I Create my database with sql server 2008 R2 .
now when setup this software in other computers must install sql server 2008 R2 management studio ?
not exist other way ?
and how i set SqlConnection that run at other systems.
(i connect to database with data connection in visual studio)
thanks.
Exist other way. I mean, there are other ways. Nearly any software that can connect to a database created in SQL Server 7, 2000, 2005 or 2008 is capable of connecting to a database created in SQL Server 2008 R2.
SQL Server Management Studio is used when a human user wants to connect to the database, but not when software connects to it.

Database server version is different than the version of SQL Server I have installed

I'm opening up SQL Server 2008 R2 Management Studio.
When I connect to my database server, it says the version is 9.0.2047. But when I connect to my analysis server and report server, they are both version 10.50.1600.1.
How can I change my database server so that it is running version 10.50.1600.1?
In the SSMS Object Explorer, from the "Connect dropdown > Database Engine..." item, you can choose from all your available database servers.
It seems like you have different versions of SQL Server installed alongside each other.
Uninstall SQL Server 2005, and install SQL Server 2008 R2.
Here's a nice website with versions for you.

SQL Server 2005 Express installed after SQL Server 2008 Express

I already had the SQL Server 2008 Express engine installed (just the bit that comes with VS 2008 Express). I then installed SQL Server 2005 Express followed by SQL Server 2005 Management Studio Express, all of which seemed to install OK without any errors. However, when I run SQL Server 2005 Management Studio and enter the Server name as machine name\SQLEXPRESS and click Connect I get the message:
"This version of SQL Management Studio Express can only be used to connect to SQL Server 2000 and 2005 servers".
Presumably the instance name SQLEXPRESS refers to the 2008 version, is the 2005 instance a different name, or is it a different problem? Any ideas please, thanks
You are right that the SQL 2008 Express took the 'SQLEXPRESS' instance name. The 2005 toolset cannot connect to 2008. You need to find out the isntance name under which the 2005 VS installed it's Express. Easiest way is to start the Service Manager (run services.msc)and see the instance name there.
Run "services.msc" and check the service name that is running your SQLServer 2005 Express instance. You should use it, and not "SQLEXPRESS" if it is running your SQLServer 2008 instance.
Btw, SSMS 2008 works beautifully with 2005 instances.
Check this link to download SSMS Express 2008. I'm not sure code completion will work with SQLServer 2005 tho.

Resources