Error while altering ssas cube with alter xmla - ssas

Getting following error when trying to alter cube :
Message: OLE DB error: OLE DB or ODBC error: Unspecified error.
Message: OLE DB error: OLE DB or ODBC error: Communication link failure; 08S01; TCP Provider: An existing connection was forcibly closed by the remote host.

Well.. i could resolve this issue by changing the log on as for sql server analysis services from local system to domain/user account.

Related

Sometime Sql Connection Error from windows forms-Network related instance error

Sometimes following error happening in windows application. The error is like
A network-related or instance-specific error occurred while
establishing a connection to SQL Server. The server was not found or
was not accessible. Verify that the instance name is correct and that
SQL Server is configured to allow remote connections. (provider: Named
Pipes Provider, error: 40 - Could not open a connection to SQL Server)
I am having more than 50 forms in my application and most of the times there is no error. But sometimes, there is an error like this and when I am trying to connect sql its works fine.

Can't connect to SQL Server 2003 error 121

This is the error I am receiving when connecting to our SQL Server 2003 database
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 121)
"the semaphore time out has expired"
but when I try to connect using another pc its working
This is a weird error message "the semaphore time out has expired" and I've tried all the possible solution related to the link that you gave

SSAS - OLE DB error in establishing a connection

I have a problem when I try to process a SSAS project in Visual studio 2013 (sql server 2012) using Pubs data sample of Microsoft. Could anyone tell me how to resolv it? Thanks in advance!
OLE DB error: OLE DB or ODBC error: 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.;
08001; Client unable to establish connection; 08001; Encryption not
supported on the client.; 08001.
Change the Provider in the connection manager to OLE DB.
If that doesn't work, try restarting the SSAS service.
This happened to me today. It took 3 hours of trying everything I could to fix it and I wanted to share it so maybe someone else can be saved those hours. My solution is particular to my problem whereby I'm using impersonation to log into the server with a specific username and password.
In my case I had an SSAS tabular model with a connection to a remote Azure server. I am using Git on Azure DevOps for my source control and I had just moved over to a new development machine on our local network so I updated the remote repo with the latest version of the model, connected to the new dev machine and cloned the repo there. Then I tried to resume my work, but I was getting the same error you were: "OLE DB error: OLE DB or ODBC error: A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible..." blah.
Anyway, I tried resetting the SSAS services, changing the connection provider, rolling back to a previous commit that I knew worked, etc. Nothing worked.
The problem was my impersonation settings!!! I have SSAS_Data_Model credentials created for this project so when I cloned the repo, for some reason the impersonation must not have come through with the password.
So, in Visual Studio, go to Tabular Model Explorer, click on Model -> Data Sources, Edit Connection -> Impersonation... -> and under 'Specific Windows user name and password', you need to re-enter the password for your username. This finally got it working again and I can import tables into my model once more.
Try to test the connection when you provide appropriate server , database , provider. So you will be able to get the connection related problems there itself.
(data source designer -> connection string edit)

connecting to local database in wpf application : error 26

WPF with local database application
I was about to start but I faced this problem
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
I searched alot to found that the error will be in the connection string
but I'm using the connection string from application settings which done by the wizard
using ( SqlConnection _SqlConnection = new SqlConnection ( Properties . Settings . Default . DatabaseConnectionString ) )
{
_SqlConnection . Open ( ); // <= Error Occurs Here
_SqlConnection . Close ( );
}
Error :
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
You're using the wrong type of connection object.
SqlConnection is for the grown up SQL server, not for SQL Server Compact. connectionstrings.com has the connection strings you need. For the connection object itself I believe you need the SqlCeConnection class (add a reference to System.Data.SqlServerCe).

linked server Error

following error occur when i try to insert record from SQL server 2000 to SQL server 2005, while select query is running fine
OLE DB provider "SQLNCLI" for linked server "insight_db" returned message "Protocol error in TDS stream".
OLE DB provider "SQLNCLI" for linked server "insight_db" returned message "Communication link failure".
Msg 10053, Level 16, State 1, Line 0
TCP Provider: An established connection was aborted by the software in your host machine.
If the insertion is convoluted can you do it with a stored procedure? Minimise the size of the chunk of info passing between DBs. Then check the network traffic: is the link being overwhelmed with competing "stuff" ?