What's the SQL Server Express name after installing VS2012? - sql-server

I just installed VS2012 in my machine.
I'm trying to create a database but in order to create a sql connection I need the Server name, it use to be .\sqlexpress in VS2010, but apparently it changed, but I don't know the new name.
Can anybody tell what's this name?

The name of the instance is: "(LocalDb)\v11.0"

I think default instance is called .\SqlExpress
But if you are not sure about name of SQL Server instance you can always open up SQL Server Configuration Manager and it should have that local instance listed in it.

Related

How to find a list of local MS SQL Servers?

I looked at How can I determine installed SQL Server instances and their versions? already but CMD returns nothing:
C:\Windows\system32>sqlcmd -L
C:\Windows\system32>
But when using Visual Studio (v2019), I go to View > SQL Server Object Explorer, I see two SQL Server instances with system databases inside. One is called (LocalDB)\MSSQLLocalDB and the other (LocalDB)\ProjectsV13.
Both are using SQL Server 2016 (v13.0.4001). Using that I was able to connect through SSMS 2018 as well.
My question is: why aren't these instances showing up in the command line? And can I delete one of the server instance? Why are there two?
Using SSMS, in the connection manager typing the following in the server name box does it:
.
open cmd and type hostname, and use that
(LocalDB)\MSSQLLocalDB
(LocalDB)\ProjectsV13 I think this depends on the installation

(LocalDb)\MSSQLLocalDB as Server Name for Report Server Configuration Manager

I'm doing the SSRS setup in my DEV environment. I've been using (LocalDb)\MSSQLLocalDB for some of my databases. Now that I want to start using SSRS, can I use (LocalDb)\MSSQLLocalDB as a data source for SSRS? I already tried, but I'm not able to connect it. However, if I use the server name (name of my computer) it works.
Do I have to use the actual server name? Is local database (LocalDb)\MSSQLLocalDB a wrong way of doing it? I'm assuming that the actual server name will be the best practice.
If I have to use the server name, that means that I will need to migrate my databases from (LocalDb)\MSSQLLocalDB to the instance of the server name.
What do you recommend?
LocalDb instances run in your desktop session, and are meant for desktop applications (particularly Visual Studio). So no. You should migrate your databases to a service-based SQL Server instance for SSRS (which runs as a Windows Service) to access them.

Running SSMS for SQL Server 2012 with multiple instances with different collation

I already have SQL Server 2012 (collation: Latin1_General_CI_AS) working happily on my machine. But I need to connect to an old database with different collation (SQL_Latin1_General_CP1_CI_AS).
So, I installed another instance of SQL Server 2012 with this collation. But I am not able to access this instance of SQL Server using SQL Server Management Studio(SSMS).
There is just one SSMS on my machine and whenever I try to connect to it, it connects to earlier instance of SQL Server 2012. How do I get SSMS connected to new instance of SQL Server?
Thanks.
If you are trying to connect from local and not sure of instance name..You can try selecting the browser for more option in servernames and click on local servers as shown below.This will enumerate all the instances present in machine..
The new instance is likely not the default instance. The default instance would be something like machinename\mssqlserver. You can connect by using machinename. Other instances need the name specified. machinename\nondefaultinstancename. SQL Browser service need to be running as the non default instance likely uses dynamic ports, unless you set it up to be static.
Since the instances are on the machine you are working on you do not need to worry about opening firewall ports.

How to know the server name of SQL Server?

I have SQL Server 2008 R2 on my machine.
I want to connect with Windows authentication mode.
I dont remember the server name....I have also checked in SQL Server Configuration
Manager but there is no instance running.
so , How to know the serve name of SQL server ?
did you try
SELECT ##SERVERNAME
Open Regedit and navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
You'll see instances listed there with names taking the form
MSSQL10.SQLEXPRESS
MSSQL10 is the version number (10 applies to both 2008 and 2008R2) and the part after the period is the instance name. That gives you a server name of
MYCOMPUTER\INSTANCENAME
The name will always be your PC name which you can find by right clicking your "My Computer" and going to properties.

Change SQL SERVER 2005 from default instance to named instance?

I have installed SQL Server 2005 and now have instance name as the default one:
SERVERNAME
I'd like to change to:
SERVERNAME\MyDB
Is this possible? If yes, how?
No, unfortunately it isn't possible to do this without a complete uninstall/reinstall of basically a new instance of Sql Server.
It depends on the problem you can set an alias for the default instance, is like a nickname for instance, so any customer can see your named instance as you wish.
You can do this using the SQL Server Configuration Manager one of the Configuration Tools from SQL Server 2005 and above.

Resources