Cannot create a connection to data source 'TfsOlapReportDS' - sql-server

When I open my project dashboard on my TFS project portal web page, I get the following error.
Reporting Services Error
Cannot create a connection to data source 'TfsOlapReportDS'. (rsErrorOpeningConnection) A connection cannot be made. Ensure that the server is running. No connection could be made because the target machine actively refused it
SQL Server Reporting Services
What can I do to resolve this error?

I had checked that SQL Server Analysis Services was running in
Control Panel → Administrative Tools → Services
The service was running. The solution to this was that I needed to go into
Start → Programs → Microsoft SQL Server 2008 R2 → SQL Server Configuration Manager → SQL Server Services.
That instance of SQL Server Analysis Services wasn't Running. I started it, and this prevented the error message above.

Related

SSIS OLEDB Connection Manager - Unable to connect to a database (No database names appear)

I am trying to create a connection manager in Microsoft SQL Server Data Tools for Visual Studio 2017 (SSDT) for an integration services project.
In the Connection Manager:
The Provider is set to: Native OLE DB\SQL Server Naive Client 11.0
The Server name is set to: the name of the local machine
Log on to the server is set to: Windows Authentication
Connect to a database is set to: Select or enter a database name. However no database names appear in the drop down box - the drop down box is blank. I am expecting the name of the database i am working on, including the master database etc to be present.
When I Test Connection, I get an error message which says:
'Test connection failed because of an error in initializing provider. Login timeout expired
A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.
Named Pipes Provider: Could not open a connection to SQL Server [2]..'
I am using SQL Server 2017 and Microsoft SQL Server Management Studio 18.
Allow remote connections has been ticked in SSMS.
The only thing i can see is the SQL Server Agent and SQL Server Browser has stopped / is not running and the TCP/IP Protocols for SQLEXPRESS is set to disabled - I am unable to enable it without a further Access is denied (0x80070005) error.
I have tried to follow all of the guides but cannot progress. Could somebody please offer some further guidance?
I have resolved the issue. It was an extremely silly oversight! On installation, the server name in the Visual Studio 17 Connection Manager was listed as: Local MachineName only. In SQL Server, the Server Name was listed as: LocalMachineName\SQLEXPRESS. The Server Name in VS17 has to be exactly the same as SQL Server. As i said, this is a very silly oversight on my part but have documented for future reference.
SQL Server Configuration Manager ==> SQL Server Services(Left sidebar) ==> Right Click and Start all Stopped services

Connecting to an instance of SQL from TFS administration console throws connectivity error?

I am trying to connect the instance of the sql server 2012 which is getting connected from management studio and anywhere but while configuring tfs on system when I put the instance name then it throws error:
F255049: . Verify that you have entered the correct name for the server, including the instance name, that the server you are attempting to connect to is online, and that you have the required permissions to connect. If you are attempting to connect to the remote SQL Server instance, then verify that it is configured to allow remote connections, that TCP/IP protocol is both enabled and configured to use port 1433 (default), and that Windows Firewall does not block this port
Now I have done everything i.e. turning off the firewall, enabling TCP/IP, named pipelines etc but nothing working and it remains the same.
Why?
I am configuring the TFS on the same server and the same instance name is getting connected in management studio.
On TFS Side you can check :
Check if you are the member of the Administration Console Users. else this error may appear.
On SQL side check following points :
Incorrect SQL Installation order especially if you are using Express edition
Database In Recovery
List item
Database Out-of-Sync – during migration to newer version of TFS
The Service Account has been added in SQL Server.
SQL Database not running or not reachable
TFS Proxy not reachable

SQL Server Browser Service not present in SQL server configuration manager

I am not able to connect to my (LocalDb)\v11.0 from OLAP Cube project while deploying because of the SQL Server Browser Service is not running.
I am getting error like
"Error 4 The project could not be deployed to the '(LocalDb)\v11.0' server because of the following connectivity problems : A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. To verify or update the name of the target server, right-click on the project in Solution Explorer, select Project Properties, click on the Deployment tab, and then enter the name of the server. 0 0"
So I opened the SQL server configuration manager and tried to make the sql server browser service on but I am not able to find it in the configuration manager
Please suggest what should I do?

ODBC Data Source Administrator with MS SQL Server

I have scoured Stack Overflow and the internet in general for steps leading to an answer, but have as of yet been unsuccessful. My main goal is to use ASP scripts with MS SQL databases on my standalone Win7 PC, but the short term goal is to be able to configure an ODBC User or File DSN connection that tests successfully in the ODBC Data Source Administrator.
I have SQL Server 2012 installed and can successfully connect to the database engine from SQL Server Management Studio.
When I try to configure a DSN entry in ODBC, the error message reads
[Microsoft][SQL Server Native Client 11.0]Named Pipes Provider: Could not open a connection to SQL Server [53].
All attempts to test the data source lead to a 15-second time-out with the TESTS FAILED! message.
I have tried all of the usually recommended adjustments. What other details could I provide? HELP!!
Named pipes is disabled by default. You need to enable it from the Sql Server Configuration Manager if you want to connect over named pipes.
SQL Server 2017; SQLServerManager14.msc
SQL Server 2016; SQLServerManager13.msc
SQL Server 2014; SQLServerManager12.msc
SQL Server 2012 (11.x); SQLServerManager11.msc
You will need to use one of these .msc files from START > RUN to open the Sql Server Configuration Manager
I have SQL Server 2017 so I will give you steps for that.
1. Start
2. Run
3. Type in SQLServerManager14.msc and hit OK
The SQL Server Configuration Manager will open.
4. In the left pane of the Configuration Manager, look for "SQL Server Network Configuration" and expand it.
5. Find the "Protocols for {Your Server}" and double click it. There could be multiple options here if you have multiple SQL Server
Instances running on the server. Make sure you are updating the
Protocols for the correct instance(s).
6. Double click named pipes and change it from disabled to enabled
7. Restart your SQL Server services
You will now be able to connect over named pipes.

SQL Server Service wont start up

I just rebooted my development server but when the server came back up, I can no longer connect to the DB.
I can't even connect from the Management Studio on the server.
So I check the services and the SQL Server (MSSQLSERVER) and SQL Server Agent (MSSQLSERVER) are not started. Starting them gives me an error
Windows could not start the XXX
service.
Any ideas?
EDIT: In addition, I ran the service from the command line and noticed this error:
2010-11-24 15:38:32.02 Server Error: 26055, Severity: 16, State: 1.
2010-11-24 15:38:32.02 Server The SQL Server failed to initialize VIA suppo
rt library [QLVipl.dll]. This normally indicates the VIA support library does no
t exist or is corrupted. Please repair or disable the VIA network protocol. Erro
r: 0x7e.
So I went into The Configuration Manager -> Network Configuration -> Protocols and disabed VIA. That allowed me to start it back up again... but I'm worried that is should be enabled...
-Evan
Check the event viewer and see if there's a reason logged for it not starting. I've seen something similar when the server runs out of available ram.
Since this is your dev server you probably don't need VIA service running, as long as SQL is started you should be ok.
Firstly check the event log
If these errors is shown
The SQL Server failed to initialize VIA support library [QLVipl.dll].
TDSSNIClient initialization failed with error 0x7e.
Then only disable your VIA protocol services from both.
SQL Native Client
SQL Server Network Configuration
After that restart you SQL browser service and SQL server agent service from SQL server configuration manager

Resources