Microsoft SQL Server Management Studio 18 application error on startup - ssms

1
[]
I just install Microsoft SQL Server Management Studio 18 and the window pop up with
"Ssms.exe - Application Error"
"the application was unable to start correctly (0xc000007b). Click OK to close the application."
I tried most of the solution found on Google and YouTube.
(Window Update, reinstall .net framework, .net runtime, microsoft visual c++ redistributable package, use admin to run program, re-install and repair Microsoft SQL Server Management Studio 18)
I will be really appreciated it.
UPDATE: [Solved] I use dependency Walker to find out which dll is crushing the program (in my case mscvr120.dll) and re-download it to fix the crush.

Related

Using SMO with VS2013 Windows Desktop application project

I am building a VB.NET application in VS2013 that uses a database created in SQL Server 2012 (which is installed locally and on the only computer that the application will be run on).
I need to execute a SQL script when the user clicks on a button. I know that I need to Import resources from SMO but when I run the SharedManagementObjects.msi installer I get a message that says,
"Installation of Microsoft SQL Server 2012 Management Objects failed
because a higher version already exists on the machine. To proceed,
uninstall the higher version and then run Microsoft SQL Server 2012
Management Objects Setup again."
What do I need to do to get SMO installed to use in my project?
I am assuming you are using nuget??
It appears that you must have 2014 installed, search for this in your installed packages and click uninstall. Now try and install the 2012 version.
Or in the Package Manager Console:
Uninstall-Package Unofficial.Microsoft.SQLServer.SMO.2014
Followed by:
Install-Package Unofficial.Microsoft.SQLServer.SMO
http://www.nuget.org/packages/Unofficial.Microsoft.SQLServer.SMO.2014/

Microsoft SQL Server Data Tools package did not load correctly

Everything about my VS 2013 install appears to be working correctly except when I right click on a table in Server Explorer. I am trying to use the data tools to view the table, which is in a MS SQL database. Here is the message VS 2013 pops when I right click:
The 'Microsoft SQL Server Data Tools' package did not load correctly.
The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file 'C:\Users\...\AppData\Roaming\Microsoft\VisualStudio\12.0\ActivityLog.xml'.
Here are the last few lines of the ActivityLog.xml, btw one of the most cryptic log files I have ever read:
1222 Begin package load [Microsoft SQL Server Data Tools] {00FEE386-5F9F-4577-99F4-F327FAFC0FB9} VisualStudio 2014/02/14 13:50:50.112
1223 ERROR SetSite failed for package [Microsoft SQL Server Data Tools] {00FEE386-5F9F-4577-99F4-F327FAFC0FB9} 80131534 VisualStudio 2014/02/14 13:50:50.641
1224 Entering function CVsPackageInfo::HrInstantiatePackage {FEF13793-C947-4FB1-B864-C9F0BE9D9CF6} VisualStudio 2014/02/14 13:50:50.650
1225 Warning Unexpected system error mode before loading package [SqlStudio Editor Package] {FEF13793-C947-4FB1-B864-C9F0BE9D9CF6} VisualStudio 2014/02/14 13:50:50.650
1226 Begin package load [SqlStudio Editor Package] {FEF13793-C947-4FB1-B864-C9F0BE9D9CF6} VisualStudio 2014/02/14 13:50:50.650
1227 End package load [SqlStudio Editor Package] {FEF13793-C947-4FB1-B864-C9F0BE9D9CF6} VisualStudio 2014/02/14 13:50:50.691
1228 ERROR End package load [Microsoft SQL Server Data Tools] {00FEE386-5F9F-4577-99F4-F327FAFC0FB9} 80131534 VisualStudio 2014/02/14 13:50:51.044
Here is what I have done to try to solve this problem:
Disabled all plugins/extensions
Checked for and applied all updates for all extensions and VS 2013 including Update 1
Did a full VS 2013 install repair operation
VS 2013 now includes the SSDT tools in VS 2013, so I cannot download and install anything, it is suppose to already be working. Not unless someone knows of a different trick.
I am out of ideas and I have searched quite extensively about this, most of it applied to VS 2012. If anyone has any good suggestions, that would be awesome.
Go to 'Add/Remove Programs' in Control Panel, search for "Microsoft SQL Server Data Tools" and repair.
Worked for me.
And just in case none of those work, you can go to the Download Latest SQL Server Data Tools Microsoft page itself. It lists out the versions of the tool set for each version of Visual Studio
I had the same issue. After trying the other answers and not resolving the issue, I was able to resolve it by
Uninstalling Sql Server Data Tools from the control panel
Navigating to Extensions and Updates
Go to Updates tab -> Update Visual Studio
You should get a prompt to enable optional features, choose SSDT
Wait for the long installation process, restart if necassary.
Fixed it for me
It is not in VS after 2012. Try this link, install separately
http://www.microsoft.com/en-us/download/details.aspx?id=42313
There is no stand-alone install for VS 2022 :(

Visual Studio Unable to Add Data Connection to SQL Server

Im trying to add my local SQL Server database to Visual Studio so I can grab the connection string from it but I am getting this error message:
As you can see the Test succeeds but when I try to add I receive error.
I figured out that you need to have SDK.sfc 11.0.0.0 installed. I only had 10.0.0.0 installed.
You can use the link here to download "Microsoft® System CLR Types for Microsoft® SQL Server® 2012" and "Microsoft® SQL Server® 2012 Shared Management Objects"
Download Link
I think these are normally installed with VS 2012 but in either case it fixed the issue. You can check your version in the assembly path:
C:\windows\assembly
The install does not require a restart but you will need to close and reopen your Visual Studio.
It seems that you are missing some updates from Microsoft: one link
You could search with google/bing/whatever and find a lot of hints to get this working!
for both type (32 bit or 64 bit )
Open URL http://www.microsoft.com/en-us/download/details.aspx?id=35580
Download ENU\x86\SQLSysClrTypes.msi
Download ENU\x86\SharedManagementObjects.msi
Install ENU\x86\SQLSysClrTypes.msi
Install ENU\x86\SharedManagementObjects.msi
Restart your Visual Studio and now Everything will work smooth.
This fix was for the error (version 11.0.0.0)

Entity Framework Installation Fails & Crashes Visual Studio

I'm trying to install Entity Framework 5.0 into a Visual Studio 2012 Pro project. Part way through the install it fails and crashes Visual Studio. I suspect that it is trying to figure out which SQL server edition to use when it fails. I have SQL 2008 R2, SQL 2012 and SQL 2012 Localdb installed. No connection string gets added to the config file before it crashes. I've been searching the forums and trying many things but no luck yet. Any help would be appreciated. Same failure when using Visual Studio 2010 Pro.
I found that the EF installer can't handle multiple versions of SQL installed side by side. After removing all but one the program runs fine.

I'm having problems connecting to TFS VS2010 from VS 2008

If you are not able to connect to TFS VS2010 from VS2008. This might save you some time.
Connecting from VS2008 to TFS VS2010
Step:1 Make sure that Service Pack 1 is installed with Sql Server 2008
Step:2 Make sure that Service Pack 1 is installed with VS2008
Step:3 Make sure that Team Explorer is installed in VS 2008
Step:4 Make sure that Service pack 1 is updated for Team Explorer
Step:5 After all these Service Packs are installed on your machine, follow the below path
CmdPrompt> regedit
Hkey_Current_User>Software>Microsoft>VisualStudio>9.0>TeamFoundation> Right Click Servers>New>String Value
Give the complete URL path which look like ‘http://swstfs:8080/tfs/DefaultCollection’
Step:6 Close everything and open VS2008
File>Open>TeamProject
Step: 7 Connect.
I connected to TFS, but the problem is while I am trying to open the solution through VS2008 into TFS it is showing me an error
"This project (fmPilot.SSIS.ClientIntegrations.sln) cannot be opened from source control because it was created by a version of Microsoft Visual Studio that is incompatible with this one.
If this is the case, you may be able to open it from source control using that version of Microsoft Visual Studio, and then use Microsoft Visual Studio to open the local copy."
I also tried it through VS2010 but it is showing me an error
"Cannot be openned because its project type(/dtproj) is not supported bby this version of the application."
Can somebody help me on that..... I google it some says that permission might be the reason.. Please help me...
Thanks,
Karthik
Make sure that you have Business Intelligence Development Studio (BIDS) installed on your machine. Having just Visual Studio 2008 doesn't mean that you can open SSIS packages.
To verify whether you have BIDS installed:
Open Visual Studio 2008 IDE. Click Help and About Microsoft Visual Studio.
Make sure that you see SQL Server Integration Service.
Another way to verify is by trying to create a new project in VS 2008. You should see Business Intelligence Projects under Project types.
If you do not see this, then it means you don't have BIDS installed on your local machine. You can install BIDS by installing SQL Server 2008 client tools.
Following link shows how to install SQL Server 2008 client tools.
SQL Server 2008 Client Tools Installation