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

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.

Related

Configure remote connections without sql server installation?

We have an application called IpSwitch Whatsup and it's installed in a machine that I can connect to remotely as administrator. This is all in our intranet.
We need to connect to the sql server database being used by IpSwitch Whatsup, but this particular machine doesn't have sql server installed. On the other hand, in sql server configuration manager there is indeed a sql server installation for whatsup (the entry says SQL Server (WHATSUP)).
So, two questions:
How does one go about in connecting to this database? I'm pretty sure I know the name of the database and I already know the server name and instance, so I would like to connect to this DB from a sql server installation in another machine.
How does one configure a sql server installation to receive remote connections if it doesn't have sql server installed?
Thanks.
For the first question, you just type in (or browse) the appropriate instance name and authentication options using SSMS - which is the GUI tool used to manage sql server instances. Note - the term "sql server installation" can mean different things so it is not a useful reference.
As for the second question, review the information here. Note that any task you do in SSMS can be done via tsql - you can see the appropriate commands using the script button in the SSMS dialog windows.
And you can also (and probably should based on these questions) install SSMS on the same machine as your server instance so you can do "anything" "anywhere". Now would probably be a good time to review your disaster recovery options (and start backing up your databases regularly).

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 view a list of databases under server in SQL Anywhere like we do in MSSQL

I am very new to SQL Anywhere. I have been working MSSQL for a long time.
So in MSSQL, if we need to see the list of database under server, we can see that under Server Explorer.
How can I do same in SQL Anywhere?
I have just installed SQL Anywhere 16 and have no idea how to find Server name etc.
There should be a program called "SQL Central" (scjview.exe) that was installed with SQLAnywhere server. Run that and you should be able to see the servers.

What server and login must I enter to connect to a SQL Server that was installed together with Visual Studio 2013?

I am just learn C# from Java and now struggling with sql server
i usually use mysql with phpmyadmin
i use windows 7
i already install Visual Studio 2013 Community Edition, in control panel program and feature there is some name with sql server
i try to search the answer in google for 3 days & download many youtube tutorial. but still confuse what to do.
My goal :
i try to create ms sql database like i do in phpmyadmin
i dont want to create local database, i try to create database in server (the server sit in localhost)
heres what i do :
in visual studio 2013 - server explorer tab, i right click in data
connections
then select Create New Sql Server Database
dialog show up and my question :
What value i must put in Server Name
If i select radio button Use SQL Server Authentication. what value i
must put in username and password. (when installing visual
studio, it don't tell me anything)
thank, forgive my english
EDIT :
i already install management studio from here. At installing, it dont tell me any configuration.
Using SSMS i still can't create database, i already try :
via Windows Authentication with servername : 127.0.0.1 or localhost
via SQL Server Authentication with username : sa, password :
[empty], or Password123, or [myComputerPassword]
i already try uninstall & install Visual Studio 2013 Community Edition & SQL Server 2014 Management Studio multiple time in different PC. But it dont tell me any configuration when installing.
based on my newbie feeling : (maybe) it look like installation don't create instance server
here's my control panel look like :
Unless SQL Server was installed with non-default settings, the following connection parameters should allow you to connect to your (locally installed) SQL Server instance:
Password: chances are that SQL Server was installed with SQL Server authentication disabled. Try to log in with the option Integrated Authentication or Integrated Security enabled, then you won't even have the option to enter a username and password.
Server: try these in the following order:
.\SQLEXPRESS (which stands for "instance named SQLEXPRESS on the local host, .")
. (which stands for "(instance with default name on the) local host")
(localdb)
Basically, the server name consists of up to three parts: First, the network host on which the desired SQL Server service is running (the local host or . in your case), the name of the SQL Server service after a \ (often MSSQLSERVER or SQLSERVER, the first of which you can omit because it's the default name), and a network port on which the SQL Server service is listening (you can often omit that, too).
You can find out your SQL Server's service name from Administrative Tools → Services. Locate the entry for the SQL Server service and note down the name in the parentheses; that's what will go after the .\ in the server name:
You usually get a local or express version of Sql Server installed when you install Visual Studio.
You can however..go a little further.
Sql Server Express 2014 (You may already have this installed based on what you chose during the install)
https://msdn.microsoft.com/en-us/evalcenter/dn434042.aspx
Sql Server 2012 Express
http://www.microsoft.com/en-us/download/details.aspx?id=29062
Under the 2012, you'll also note that one of the downloads is
SQLManagementStudio_x64_ENU.exe
This is "Sql Server Management Studio". This is a front-end to the Sql Server RDBMS. You could do most things through Visual Studio, but I usually install SSMS as well. SSMS is kinda the same thing as MySql Workbench.
You can also write scripts and execute them in SSMS.
You security mode is probably "Trusted" which means you connect to Sql Server using your windows credentials. This was auto-voodoo'ed mapped for you when you did the install.
Sql Authentication (the alternative to Trusted) is the username/password model. This takes extra setup and configuration (usually through SSMS), so your easiest bet is to rely on "Trusted" unless you find a need for something else.
I hope that helps.

How to install/register more than one instances in SqlServer

Is it possible to install/register another local server instance in any SqlServer version, besides the default local instance, where only one SqlServer version is installed?
Yes, it's possible. I have several combinations in my servers. I have one server that has both SQL Server 2000 and 2005 installed side by side. My desktop at work is a Windows 2003 Server, and I have SQL Server 2005 and 2008 installed side by side.
What you want is called a named instance. There will be a screen during the install, where you will be able to give it a name.
Yes. Usually the installer will detect that you have one or more existing instances and will prompt you for a instance name. We have setup three SQL Server 2000 standard editions on a development box to emulate the three production servers at one of our clients.

Resources