Remote Procedure call failed with sql server 2008 R2 - sql-server

I am working with SQL Server 2008 R2. I am unable to connect to my database remotely. I got the following 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
I have checked the SQL Server properties and I enable the Allow remote connections.
I have checked the Service manager and SQL Server service are running.
I have checked the configuration manager, I can't see any services under SQL Server Services
and it shows Remote Procedure call failed
So please guide me.

Open Control Panel > Administrative Tools > Services > Select Standard services tab (under the bottom) > Find start SQL Server Agent
Right Click and select properties,
Startup Type : Automatic,
Apply, Ok.
Done.

I just had the same issue and was able to solve it by installing Service Pack 1.

This error occurs only after I have installed the Microsoft Visual Studio 2012 setup in my work machine.
Since it is being a WMI error, I recompiled the MOF file –> mofcomp.exe "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"
I also un-registered and re-registered the sql provider DLL –> regsvr32 "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmprovider.dll" but issue not resolved.
Solution:
I have applied SQL Server 2008 R2 SP2 on my SQL 2008 R2 instance and that fixed the issue with Sql Server Configuration Manager. You can download setup from here... http://www.microsoft.com/en-us/download/details.aspx?id=30437 .

After trying everything between Stackoverflow and Google, I finally found a solution : http://blogs.lessthandot.com/index.php/datamgmt/dbadmin/remote-procedure-call-failed/
TL;DR :
If you are (or were) running multiple versions of SQL Server on your machine, that Configuration Manager shortcut on your start menu might be pointing to an older version, which it shouldn't be. It was pointing to an old Sql Server 2008 instance in my case.
The solution was to :
Go to either C:\Windows\SysWOW64 or C:\Windows\System32, depending on your system.
Look for an executable called SQLServerManagerXX.msc, and run the latest version if you have multiple ones. In my case, I had both SQLServerManager11.msc and SQLServerManager10.msc, where the 10th gave the error, and the 11th worked perfectly.

I can't comment yet, but make sure you made all the checks in this quide: How to enable remote connections in SQL Server 2008? It should work fine if all steps are made.

Upgrade your SQL Server to SP3
You can install it from:
http://www.microsoft.com/en-us/download/details.aspx?id=27594

This error appears to happen when .mof files (Managed Object Format (MOF)) don’t get installed and registered correctly during set-up. To resolve this issue, I executed the following mofcomp command in command prompt to re-register the *.mof files:
mofcomp.exe "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"
This one worked for me

start SQL Server Agent from the command prompt using:
SQLAGENT90 -C -V>C:\SQLAGENT.OUT

You might need to install SQL Server 2008 SP3.
SQL Server 2008 Service Pack 3
SQL Server 2012 Configuration Manager WMI Error – Remote Procedure call failed [0x800706be]

I got the samilar issue, while both SQLServer and SQLServerAgent services are running. The error is fixed by a restart of services.
Server Manager > Service >
SQL Server > Stop
SQL Server > Start
SQL Server Agent > Start

Open Control Panel
Administrative Tools
Services
Select Extended services tab
Find SQL Server(MSSQLSERVER) & SQL Server(SQLEXPRESS)
Stop these services and Start again (from the start & stop button displayed above)
Done.

Related

I have installed SQL Server and Managment Studio on laptop but server name has gone

The other week I installed the latest version of SQL Server and Management Studio. In the Server Name box was a long name made up of some path and other parts however it has now disappeared and reading all these answers has not helped. I downloaded two backups of databases from a live server and restored them down here. I could access them and everything was fine until the server name disappeared and I have no idea (none of the ones on here work) how to get it back.
If I try localhost, 127.1.1.0 or . as the server name it doesn't work the error I get is:
A network or instance-specific occurred whilst establishing connection to SQL Server....Provider: Named Pipes Provider, error 40- could not open connection to SQL Server
If I go into services I only have SQL Server Browser and SQL Server VSS Writer. Under Browser it is disabled. If I start it or tell it to start on delayed or manual or just start it, it starts okay and then two seconds later its stopped again with no error message.
If I got to CMD and type (under) I get (under that)
C:\Windows\system32>SQLCMD -L
Servers:
;UID:Login ID=?;PWD:Password=?;Trusted_Connection:Use Integrated Security=?;
*APP:AppName=?;*WSID:WorkStation ID=?;
No list of servers which another answer suggested.
I cannot find under services a MS SQL Service for some reason.
Everything was working fine the last time I came to do some work on this so I don't know if some virus was detected that removed the service or something.
I had two databases to connect to and run queries against and try to get a Windows Service working again locally but I can't get the DB to work.
I am on Windows 8.1 64bit laptop with enough diskspace.
If I go to C:\Program Files\Microsoft SQL Server\110\LocalDB\Binn and double click sqlservr.exe, I get the error
Your SQL Server Installation is either corrupt or has been tampered with (Error getting Instance ID from name) Please uninstall then re-run setup to correct this problem.
Is it a case of me having to uninstall Management Studio and restarting again? I don't know what could have corrupted it but I need it working.
Should I just use the SQL Server 2017 Configuration Server to see if that can fix it or do I need to delete whole directories or "uninstall" from "programs and features" and try to install it again?
Still have no scooby to why the server name disappeared in the first place. Anyone got a clue?
SQL Server should appear in Services (you should not start it by double-clicking sqlservr.exe). If it doesn't appear anymore, you should reinstall SQL Server. After that you may attach the MDF and LDF files of your user databases, if they are still available (but in your case, you can also restore the backups again).
It seems your SQL server is not installed properly or corrupted now.
If the SQL Server installs on any machine there is a service named 'Sql Server(MSSQLSERVER)' or similar must be there and in 'Running' mode to connect to the database.

Not all privileges or groups referenced are assigned to the caller

I'm a noob on DBA profile. I was installing a SQL server 2008 R2 on Windows 2008 R2. while installing sql-server i received the following error. I was not able to locate any log at *C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap*
TITLE: Microsoft SQL Server 2008 R2 Setup
The following error has occurred:
Not all privileges or groups referenced are assigned to the caller.
Click 'Retry' to retry the failed action, or click 'Cancel' to cancel
this action and continue setup.
For help, click:
http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.50.1600.1&EvtType=0xB2652E58%25400xDC80C325
BUTTONS:
&Retry Cancel
Could you please help me troubleshoot/fix this issue?
As it was a new instance, rebuilding the system databases worked for me. Be careful if it is an old instance as all data will be wiped out (you still can take backups and restore data, just a bit more complicated). Details as to how to rebuild the databases here
If you are trying to install MSSQL Server 2008 R2 after uninstalling any higher or lower version of MSSQL Server i.e MS SQL Server 2012,2014. Please make sure that you have removed every single file with the name SQL Server except the following three files from the control panel >> Programs >> Uninstall a Program.
Microsoft SQL Server Compact 3.5 SP2 ENU
Microsoft SQL Server Compact 3.5 SP2 Query Tool ENU
Microsoft SQL Server Compact 4.0 SP1 x64 ENU CTP1
Also, removed the MSSQL Server folder from the following path
C:\Program Files\
C:\Program Files(x86)
C:\ProgramData\Microsoft
After then restart the system and try to install it.
Please let me know if you receive any errors.

Can't create a SSISDB catalog due to missing SSISDBBackup.bak file, even though SSIS is installed

I've downloaded SQL Server 2016 standard edition trial along with SSDT in order to test what one can do with a standard edition in SSIS, SSRS, and SSAS.
I also wanted to know whether standard version's SSISDB logging capabilities differs from the one in Enterprise. For this I wanted to create an SSISDB catalog under Integration Services Catalogs in SSMS.
When I try to do this, however, I get the error saying that
The catalog backup file 'C:\Program Files\Microsoft SQL Server\130\DTS\binn\SSISDBBackup.bak could not be accessed. Make sure the database file exists, and the SQL server service account is able to access it
From googling this issue it appears as this message shows up whenever someone doesn't have SSIS installed, but I have SSIS on the machine, I've even made a small Project and executed it from within SSIS without any issues just to verify.
I have set this up on localhost where I am the admin. Does anyone have any ideas why this won't work?
Regards,
Cenderze
To check if SSIS installed, open Sql Server Configuration Manager, in the SQL Server Services, is something like 'SQL Server Integration Services 13.0' running?
Experienced this error message on MS SQL Server 2017.
Resolved by launching MS SQL Server 2017 install media, added Integration Services feature.
After successful installation, when back into SSMS, right-click on Integration Services Catalog for Create Catalog... option.
You will be asked for an encryption password to create the new SSISDB.
Hope this helps!
I faced with this error when I used lower version of SSMS than SSIS. Check if you use proper version of SQL Management Studio.
You need to go back to the SQL Server installation and check the integration services checkbox.
The issue is because SQL Integration services is not installed properly with the existing SQL Server you are using.
you can check if SQL Integration services are installed or not by,
Opening --> SQL Server Configuration Manager--> SQL Server Services --> Check if "SQL Server Integeration Services is there"
if its there and if you still get the same issue try re-installing.
Else install the SQL Integration services to your existing SQL Server.
The detailed step to installation is given in this link : https://www.mssqltips.com/sqlservertip/6635/install-ssis/
hope this helps !!

SQL Server 2005 Express successfully installed, but is nowhere to be found!

I've SQL Server 2008 Express installed. I've just download and installed SQL Server 2005 Express, but I changed the name of instance into SQLEXPRESS2005 (I added 2005 at the end to avoid conflicting names).
Unfortunately, when I try to access the 2005 instance either using the SQL Server Management Studio or the VWD 2008 Express (Database Explorer window), I don't see it.
I just disk-recovered my system, so I lost many of my files. But, before that, I had both versions, one having 2005 as instance name.
So here are the summary of the issues:
I was able to download and install successfully the Express 2005
When I try to connect to a server, I only see.\SQLEXPRESS as option (there's no SQLEXPRESS2005)
When I try to connect from the VWD, I get the Server not found ERROR!
I can see the SQL SERVER 2005 icon on the Control Panel window. But, when I try to
uninstall it, I get a error message telling that this program is not found
When do Start -> All Programs, I can see the The Microsoft SQL Server 2005 folder
It's really strange as I was successfully able to install both versions before I experienced problem with my system.
Thanks for helping.
Do you see the service for the SQLEXPRESS2005 instance? If it isn't there then the instance doesn't exist and you'll need to reinstall.

Start Sql Server Agent

I just got SQL Server 2008 Enterprise edition, but I can't start the Agent XPS service. I looked over surface area configuration and tried to change the service start mode from Disabled to Automatic (in the SQL Server configuration manager) and there I generated an error message:
The remote procedure cannot be completed.
The error code is 0X800706be, I didn't change any setting and I'm connecting to the server with windows authentication, what do I need to do to fix this?
Make sure that the logon account for the SQL Agent service has the "Logon as a service" rights specified in "Security Settings\Local Policies\User Rights Assignment\"
Do you have 2005 installed also? There are too many common things like DLL(s) that are being used by both 2005 and 2008 to have them both running on the same machine and not have any problems.

Resources