SQL Server Database Migration Assistant: Cannot connect to server - sql-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!

Related

SQL Server Reporting server doesn't connect : SQL Server 2019 Enterprise

I installed SQL Server 2019 Enterprise edition (with custom instance name, not default one) with CU8 followed by SQL Server Reporting Services. But when I am trying to connect to the SQL Server Reporting Server in SQL Server Management Studio, it shows default instance name i.e. SSRS and it doesn't connect.
However, I am able to connect to the database engine server.
For the same reason I am not able to install Reporting Services Role in my primary site server as Reporting server instance name doesn't get populated. However I am not facing this issue in SQL Server 2012 Enterprise as SQL Server Reporting Services .exe file doesn't come as a separate file in SQL Server 2012 Enterprise and it is installed with SQL Server itself.

Conflict between sql server 2008 r2 and 2012

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

I can't connect to SQL Server locally

I have just installed Visual Studio 2010. It comes with SQL Server Express (if am I correct). The problem is: when I try to connect via SQL Server Management Studio Express using Servername-->BrowseForServer. There is no SQL Server Express instance just appears SERVERPC
So I can't connect this way .\SERVERPC or typing or this way .\SQLEXPRESS. I checked some protocols like TCP/IP, NamedPipes if they work properly. SQL Server is also running but I can't start SQL Server Agent and SQL Server Browser because all the buttons restart, start and stop are disabled
Start->All Programs->Sql Server _your version_->Configuration Tools->SQL Server Configuration Manager.
Go to sql server services and check if there are Sql Server at all (or is it running)

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.

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