How to find running/stop service in my SQL Server Configuration? - sql-server

I have installed SQL Server 2012 on my system. But when I tried to access SQL Server Configuration, I couldn't see SQL Service running on my system. How do I ensure it's running?

I will bet you installed the SQL Tools, but not the Engine itself. Search for file "sqlservr.exe" on your local machine. A standard/default installation will put it somewhere in the %ProgramFiles% folder (ie c:\program files\microsoft sql server\mssql.1....). IF the file does not exist on your local machine, then the Engine feature was not checked/included, or the install itself failed, at which you should look at the setup log files.

Go to Windows Services by
1) Go to start > Run and type services.msc
or by using the Windows Start-->Programs-->Administrative Tools-->Services menu.
Then, double-click (or right click) the MSSQLServer service, and right-click the required action.

Related

Creating a database instance after having installed SQL Server Management Studio

I have installed the SQL Server Management Studio (v. 17.9.1) but I am not able to create an instance.
In fact no server appears in the box when I browse:
How can I proceed, step by step, to create a local instance?
You can create a local Database by using the command prompt. As open cmd with Admin privilege, > sqllocaldb create "database name" -s(start with it) . There is lot of option with sqllocaldb read there.
Go to windows services (services.msc) and check if SQL Server and SQL Server Browser are running. If not, start them and you should be able to login and create the DB.
type in sql server download in your browser and go to microsoft's website. You have downloaded SSMS but you do not have a server installed. Download SQL express or SQL developer edition and install. Once you have done this you will have a default instance (or named if you customized the install). I must have hit this posting 4 times trying to figure this out but now I'm off and running. If you want a test database to play with you can then download adventureworks (again just use your browser (sql adventureworks) and download the backup file. You can restore it by clicking on the databases folder once you have connected to your sql instance in SSMS.

SQL Server 2008 R2 SP1 Database Engine Shared: The feature you are trying to use is on a network resource that is unavailable

Previously, I had downloaded SQL Server 2008 R2 Express with Advanced Service (so that it includes SQL Server Management Studio). Now I want to uninstall this application. When I attempted to perform this, I received the following error:
SQL Server 2008 R2 SP1 Database Engine Shared
The feature you are trying to use is on a network resource that is unavailable.
Click OK to try again, or enter an alternate path to a folder containing the installation package 'sql_engine_core_shared.msi' in the box below.
The sql_engine_core_shared.msi cannot be found anywhere on my machine. Does anyone have any suggestions? Have done a lot of searching with no success. TIA.
This is the original exe that I had downloaded, and when it starts it unpacks a bunch of files into a GUID-named folder on the C drive:
SQLEXPRADV_x64_ENU.exe
At some point later this file is deleted, which is why I could no longer find the required MSI file. So all I did to resolve the issue was start that exe, then copy all the files in that directory to a different location so they don't get deleted. Then, when I run the installer, and that dialog comes up I pointed the directory to my backup location and the uninstall completed successfully, e.g.,
C:\MySqlServerInstallBackup\1033_enu_lp\x64\setup
HTH.

Connect to SQL Server with Management Studio using Windows Authentication

I am working with Management studio and I want to log in to databases located on another server in another domain. The only login I have for such is with Windows credentials.
I want to be able to log in via Management Studio on my local PC. I have found the only way to do so is using a command similar to:
runas /netonly /user:domain\username "C:\Progr...\IDE\Ssms.exe"
While this works, it isn't the easiest or nicest way. Is there a better way? Any way I can do it within Management Studio?
The only elegant ways to connect to a SQL Server in another domain but still use Windows Authentication are:
What you're already doing: runas /netonly
Connecting via remote desktop and opening SSMS locally on the remote server
In addition to the other answers you've received, you can also shift-right click on an executable or a shortcut to one and in the resulting context menu, there should be an option to run as a different user. I tried this on my Win 7 machine. I seem to recall that in XP, I had to install ShellRunAs for these options to show up.
You can get a graphical password prompt by downloading ShellRunAs or better yet, the entire Sysinternals Suite.
Store the executable(s) for ShellRunAs or the Sysinternals Suite in a location of your choice. I recommend:
C:\Program Files\Sysinternals
You can then enable a "Run as different user..." context menu option for all applications/shortcuts by running
shellrunas /reg
If you want to only enable this for SQL Server Management Studio, you can create a shortcut to it and pass the path the management studio like so:
"C:\Program Files\Sysinternals\ShellRunas.exe" "C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe"
If you download the entire Sysinternal Suite, I would recommend you add the directory to your PATH environment variable.
Please note that you will need to adjust the paths above based on your SQL Server Management Studio version and whether you're running 64 bit or 32 bit Windows.

Remote Procedure call failed with sql server 2008 R2

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.

SQL Server Installation - What is the Installation Media Folder?

I am installing SQL Server 2008. I have installed .NET framework 3.5.
Then I got folder SQL Server 2008 and performed following steps-
I clicked configuration Tools.
Then I clicked SQL Server Installation Center.
I clicked "Installation" hyperlink on left side.
Then I clicked "New SQL server stand-alone installation or add features to an existing installation"
Then I got a window "Browse for SQL server Installation Media"
Which folder should I choose? Or is there any other method to install SQL Server?
For the SQL Server 2017 (Developer Edition) installation, I did the following:
Open SQL Server Installation Center
Click on Installation
Click on New SQL Server stand-alone installation or add features to an existing installation
Browse to C:\SQLServer2017Media\Developer_ENU and click OK
If you've downloaded SQL from the Microsoft site, rename the file to a zip file and then you can extract the files inside to a folder, then choose that one when you "Browse for SQL server Installation Media"
SQLEXPRADV_x64_ENU.exe > SQLEXPRADV_x64_ENU.zip
7zip will open it (standard Windows zip doesn't work though)
Extract to something like C:\SQLInstallMedia
You will get folders like 1033_enu_lp, resources, x64 and a bunch of files.
If you are using an executable,
just run the executable (for example: "en_sql_server_2012_express_edition_with_advanced_services_x64.exe")
Navigate to the "options" tab
Copy the "Installation Media Root Directory" (should look something like the below snipping)
Paste it into the open "Browse for SQL server Installation Media" window
Save yourself the hastle of renaming and unzipping etc.!
For the SQL Server 2019 (Express Edition) installation, I did the following:
Open SQL Server Installation Center
Click on Installation
Click on New SQL Server stand-alone installation or add features to
an existing installation
Browse to C:\SQL2019\Express_ENU and click OK
While installing SQL Server, it extracts contents to temp folder under C directory. You can copy that folder after extraction finishes and then use that one for browsing
Check in Administration Tools\Services (or type services.msc in the console if you a service named SQL Server (SQLEXPRESS). If you do then it is installed.
From Visual Studio open Server Explorer (menu View\Server Explorer or CTRL + W, L). Right click Data Connections and choose Create New SQL Server Database. After that create tables and stuff...
If you want the Management Studio to manage the server you must download and install it from:
http://www.microsoft.com/downloads/en/details.aspx?FamilyId=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796&displaylang=en
I ran into this just now with SQL Server 2014 SP1. The installer gave me the exact same problem and I followed suggestions from other answers to this question, but it got me nowhere.
In the end I figured out that I needed to download and install SQL Server 2014 first, and then apply SP1 to it. (doh)
I had to select the folder C:\SQL2019\Express_ENU for it to work.
For SQL Server 2017
Download and run the installer, you are given 3 options:
Basic
Custom
Download Media <- pick this one!
Select Language
Select ISO
Set download location
Click download
Exit installer once finished
Extract ISO using your preferred archive utility or mount
I found this one without any solutions. I am using SQL server 2019.
you can do the following:
download the sql server 2019 from [here] https://www.microsoft.com/en-us/sql-server/sql-server-downloads
open the installer.exe and choose the Download media option
choose the iso option
after a while you will get a .iso file extract it in a folder it will give you file like this
the folder that you had extracted in it is the folder to be chosen hence it is the "Browse for SQL server Installation Media" target
hope that this helps you
Problem is about too long setup file name. Change setup.exe parent folder name(short a name). And try it!.
For me the Issue was I didn't run the setup as Administrator, after running the setup as administrator the message go away and I was prompted to install and continue process.
I downloaded from https://my.visualstudio.com/Downloads
It gave me an iso file (en_sql_server_2017_standard_x64_dvd_11294407.iso)
I had to double click on it and then it gave me an E: drive on my computer.
Then I was able to select the E: drive when it asked for the Installation Media location.

Resources