Errors when launching/repairing/etc. in SQL Management Studio - sql-server

I'm getting this error when I launch the SQL Management Studio 2016.
How can I solve this?
I tried to reinstall several times (the installation process does not throw any errors) and when I try to "repair" the installation I got 0x800713ec error.
I also have this error when I open the databases folder.

Try the following:
Run Windows update
Run SSMS as administrator
Make sure you are not using any add-on plugin such as SQL Assistant or the like.
If you are using version 2012 make sure to install Service Pack 1.
Install SSDT

Related

Microsoft SQL Server Management Studio error at startup

I get this error when I try to run Microsoft SQL Server Management Studio:
The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
SxSTrace detail:
1, 2
What I did for solving the problem:
reinstalled SQL Server
reinstalled Microsoft SQL Server Management Studio
updated at recent version of .NET Framework
reinstalled Visual C++ Redistributable
And I still get that same error.
What should I do?
you should install an earlier version. I had the same error and I installed version 18.5 and it worked just fine.
https://learn.microsoft.com/pt-br/sql/ssms/release-notes-ssms?view=sql-server-ver15#185
I had the same error with version 18.9.2. I don't know if it's related to the problem, but I firstly installed SSMS in Program Files and not in Program Files (x86).
First I have tried to repair the installation, with no success.
Then I have uninstalled SSMS, rebooted by PC, re-installed SSMS (this time in the default Program Files (x86) folder) and rebooted my PC again.
After these steps, I was able to start SSMS without errors.
I did the following to solve this error.
Copied all the files and folders from the folder C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\ from a working machine and pasted on the server which was having issue.
Once the copying was completed, I it started appearing in Add or remove programs # control panel.
Post copy SSMS started working normally.
I removed the following Sql related ones from the control panel.
Then i followed these steps
https://stackoverflow.com/a/66085979/16391774
I reinstalled the same version (at present latest version v18.12.1 and i used it version) and my problem was solved.
Uninstalling did not work.
Upgrading (Installing newer version or same version) did not work.
What worked:
delete or rename “C:\Program Files (x86)\Microsoft SQL Server Management Studio 18”
delete registry manually or via .reg file
reg DELETE “HKLM\SOFTWARE\WOW6432Node\Microsoft\Microsoft SQL Server Management Studio” /reg:32)
Afterwards, installing SSMS worked without a flaw and it started.
Found at https://social.msdn.microsoft.com/forums/en-US/7ab37d2b-6bac-4221-b827-d274b00b9a56/ssms-18-how-to-uninstall?forum=sqlkjmanageability&prof=required, similar to https://superuser.com/a/1440276/146668 .

SQL Server Management Studio 2016: The application cannot start

I installed SQL Server Management Studio 2016. When I tried to open it gives this error. I tried uninstall and again install. Also I uninstall all Visual Studio and SQL Server and reinstall all of them but problem still continue.
How can I solve this issue?
In my case, the issue was with broken VS2015 isolated shell installation.
I resolved it by downloading and re-installing this shell from Visual Studio Isolated Shell page https://learn.microsoft.com/en-ca/visualstudio/extensibility/visual-studio-isolated-shell (which should eventually lead you to http://go.microsoft.com/fwlink/?LinkId=615451 - after filling out the survey).
Note:
I had following warnings after the VS1205 shell install. But that
did not matter, since the existing version of these components was
higher.
I had no VS IDEs installed on my computer prior to
installing SSMS 16.5.3 (or 17.1). Both had the same issue. For now I
am using only SSMS 16.5.3, since I do not have a need for 17.1
I completely remove all microsoft application and re install sql server 2016 and the reinstall ssms and ssms worked and finally I install vs17 now its working.
Problem is about to "Microsoft Visual Studio 2015 Shell(Isolated)"
We need to install vs after ssms.
Happened to me on SSMS v17.9.1.
I've repaired Microsoft Visual Studio 2015 Shell (Isolated) and the problem went away.
According to MSDN documentaion:-
An unexpected error has prevented Visual Studio from starting. This error appears when one of the following items occurs:
The integrated development environment (IDE) was not able to load Msxml3.dll.
The IDE was not able to load Mso.dll.
The IDE was not able to load DTE.olb.
The license key for Visual Studio was not created during setup.
Script blocking is turned on and not allowing scripting code to execute.
Setup for the .NET Framework, a component required by Visual Studio, failed to generate a valid native image for mscorlib.dll.
The Klez virus is present on your computer
And the article is introduced specific procedures to correct this error.
Hope helps.

SQL Server Data Tools: One or more issues caused a failure

I have a problem to install SQL Server Data Tools (SSDT), I get the following error:
One or more issues caused the setup to fail. Please fix the issues and then retry setup.
Bellow I added the log file.
https://drive.google.com/file/d/0B0baRS5dYAX_U0RibGhGd19qVnc/view?usp=sharing
I have Windows Server 2012 R2 and SQL Server 2012. I installed SSDT is from this page - https://msdn.microsoft.com/en-us/mt186501 - SSDT in Visual Studio 2015
Can anyone help with this cause?
The failure is due to the VS2015 Isolated shell returning an error. You can run this yourself and see if it succeeds (in which case SSDT install should proceed OK) or fails, in which case you should see a good error message.
To get the shell installer run "SSDTSetup.exe /layout" from the command line. This will copy all dependencies onto your machine in a payload folder beside the setup installer. You can then run the vs_isoshell.exe installer yourself.
Install 'VS_ISOSHELL.exe' first. You can find it in the directory PAYLOAD/X86.
After the installation run SSDTSETUPD.exe. It should be working properly now.
User MLGuy's answer solved it for me: Disable IE Enhanced Security Configuration and rerun the installer.
SQL Server Data Tools 2015 installation error

Why does ISDeploymentWizard.exe fail to launch from command line, but can be run through SSDT

I am trying to automate SSIS package deployment with only SSDT on my source computer. When I start the ISDeploymentWizard from SSDT for VS 2013 I can successfully deploy packages to a VM that I am running, but when I try to launch from the command line it fails with the following error:
To launch the Integration Services Deployment wizard, one of the Integration Services,
Management Tools - Basic or SQL Server Data Tools has to be installed by the
%SQL_PRODUCT_SHORT_NAME% Standard, Enterprise, Developer, or Evaluation Edition. To install
a component, run SQL Server Setup and select the component name.
I have SQL Server Data Tools for Visual Studio 2013 installed so I do not understand why I am receiving this error. The VM that I am running is a Windows Server 2012 R2 and has SQL 2014 installed on it. When I run the wizard from the command line on the VM it appears to work properly.
Has anyone run into the same issue? Any ideas on how to solve it?
Thanks!
edit 1: To get the package to deploy via SSDT I must launch SSDT using the "runas" command and run as the user on the VM.
Can you try running the command prompt as 'Run as Administrator'?
I solved the issue by updating my SSDT through Visual Studio 2015 extensions and updates panel.

Visual Studio and SQL Server - correct installation sequence?

I am rebuilding my development machine. This issue is not new to me, but I don't remember the solution.
I started with SQL 2008 Developer, then VS 2008 Pro, then the SQL SP1, then VS SP1. The result is that I cannot open SSIS projects (see the error below). What is the correct order so that I can avoid the installation of SQL Server Express and still have all the features working?
---------------------------
Microsoft Visual Studio
---------------------------
Package Load Failure
Package 'DataWarehouse VSIntegration layer' has failed to load properly ( GUID =
{4A0C6509-BF90-43DA-ABEE-0ABA3A8527F1} ). Please contact package vendor for
assistance. Application restart is recommended, due to possible environment
corruption. Would you like to disable loading this package in the future? You
may use 'devenv /resetskippkgs' to re-enable package loading.
---------------------------
Yes No
---------------------------
You should install SQL 2008 Developer first, this will rule out the need for VS installing SQL which comes with it. Or you could do like others suggested and choose custom VS installation.
My favorite way is this:
SQL 2008 Developer
Visual Studio Professional 2008
Run Windows Updates
Install Resharper :-)
Install RedGate SQL ToolBelt
But it seems that to get some features to work the proper order is:
Visual Studio Professional 2008 (with SQL Unchecked)
SQL 2008 Developer
Run Windows Updates
Install Resharper/Redgate Tools
Resharper and Redgate in my opinion are far the best tools for developing in C#/SQL.
It turns out I was missing 2 important pieces of information in my question that make this installation such a pain:
I was installing the 64 bit version of SQL Server
I was installing to a non-standard location (i.e. the D: drive, because C: is an SSD with not all
that much space)
This was not successful. Here is what I ended up doing in my first (second, and third) attempt:
Install VS 2008 Professional on D:
Install VS 2008 SP 1
Install SQL Server 2008 Developer Edition (instance and shared components on D:)
Install SQL Server SP 1
Apparently VS 2008 Pro does not require a database. I am not sure why I remembered that it does. While the Visual Studio installation was eventless, I encountered the following errors during the SQL Server installation:
The INSTANCESHAREDWOWDIR command line value was not specified.
I was able to resolve that be starting setup from the command line (thanks to this MSDN forum post):
setup.exe /INSTALLSHAREDWOWDIR="D:\Program Files(x86)\Microsoft SQL
Server" /INSTALLSHAREDDIR="D:\Program Files\Microsoft SQL Server"
/ACTION=install
Then towards the end of the installation, I got this error:
Upgrade Failed due to the following Error.The error code is :-2147467259.Message:Unspecified error
There is no solution, but a workaround, described in this post on connect.microsoft.com. It consists of copying a VS config file around before and after the installation, and re-running the installer just for BIDS (which is the one component that failed).
The SQL Server SP1 installation ran without issue. VS Studio, when trying to load a solution with an SSIS project, still threw the error that I posted in my original question.
I had ignored this error that popped up towards the end of the BIDS installation:
Microsoft Visual Studio Tools for Applications 2.0
Cannot find one or more components. Please reinstall the application.
However, there was no error in the install log and it completed "successfully", so I thought it would be ok to ignore the error.
It seems that my configuration is not possible (but I know with certainty that I had the 2005 versions of VS and SQL Server on a D: drive).
I uninstalled everything once again, manually deleted whatever folders were left, and reinstalled on the C: drive, including the SQL Server shared components. I put the instance folder on the D:.
Install VS 2008 Professional on C:
Install VS 2008 SP 1
Install SQL Server 2008 Developer Edition (instance on D:, shared components on C:)
Install SQL Server SP 1
This time everything installed and I can open my SSIS project.
If you are trying to install SQL-2008 and you also have visual studio 2008 installed with service pack one (SP1) and get the error
A previous release of Microsoft Visual Studio 2008 is installed on
this computer. Upgrade Microsoft Visual Studio 2008 to the SP1 before
installing SQL Server 2008”
Then welcome to the Microsoft beta testing program even if you purchased the faulty software.
With XP the most common solution seem to be renaming the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevDiv\VS\Servicing\9.0
and replacing 9.0 with 9.0Old. However this does not solve the problem if you are using windows 7 and the only solution I managed to find that worked was to uninstall VS2008 and all the components and to then install SQL-2008 and finally reinstall VS2008.
Install Visual Studio Professional 2008.
Install SQL 2008 Developer
Apply SQL SP1
Apply VS SP1
Then all should be good.

Resources