Failed to create DAX script in SSMS v18.5.1 - Object reference not set to an instance of an object - ssms

I am not able to open new "Analysis Services DAX Query" in SQL Server Management Studio (SSMS) v18.5.1.
SSMS DAX Error print screen
Error details:
Failed to create new DAX script.
------------------------------
ADDITIONAL INFORMATION:
Object reference not set to an instance of an object. ( at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.UnsubscribeFromEvents()
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.Close()
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextViewHost.Close()
at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.CloseExistingWpfTextView()
at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.CloseBufferRelatedResources()
at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.CloseView()
at Microsoft.VisualStudio.Editor.Implementation.CompoundTextViewWindow.Close()
at Microsoft.SqlServer.Management.UI.VSIntegration.ShellCodeWindowControl.UnsinkEventsAndFreeInterfaces()
at Microsoft.SqlServer.Management.UI.VSIntegration.ShellTextEditorControl.Dispose(Boolean disposing)
at System.ComponentModel.Component.Dispose()
at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptEditorControl.Dispose(Boolean bDisposing)
at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptAndResultsEditorControl.Dispose(Boolean bDisposing)
at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.MdxScriptEditorControl.Dispose(Boolean bDisposing)
at Microsoft.SqlServer.Management.UI.VSIntegration.ShellWindowPaneUserControl.OnWindowPaneClose()
at Microsoft.SqlServer.Management.UI.VSIntegration.ShellWindowPaneUserControl.ClosePane()
at Microsoft.VisualStudio.Platform.WindowManagement.WindowPaneDocumentObject.<>c__DisplayClass19_0.<DisposeManagedResources>b__0()
at Microsoft.VisualStudio.ErrorHandler.CallWithCOMConvention(Action method, Boolean reportError))
All other queries (MDX, DMX, XMLA) works fine, but DAX does not.
I have tried following to fix the issue:
Firstly I had tried re-install just SSMS.
When it did not work I have tried following steps still without success:
uninstall Visual Studio 2019 with SQL Server Data Tools (SSDT)
uninstall SSMS
install VS 2019 with SSDT
install SSMS
I tried to search for help on this issue, but I have not found any relevant information.
Thank you in advance for any suggestions.
My SSMS setup:
SQL Server Management Studio: 15.0.18333.0
SQL Server Management Objects (SMO): 16.100.37971.0
Microsoft Analysis Services Client Tools: 15.0.19153.0
Microsoft Data Access Components (MDAC): 10.0.18362.1
Microsoft MSXML: 3.0 6.0
Microsoft .NET Framework: 4.0.30319.42000
Operating System: 10.0.18363
Part of my VS 19 setup:
Microsoft Visual Studio Professional 2019
Version 16.6.5
VisualStudio.16.Release/16.6.5+30320.27
Microsoft .NET Framework
Version 4.8.03752
Installed Version: Professional
Microsoft Visual Studio Tools for Applications 2019
Microsoft Visual Studio Tools for Applications 2019
SQL Server Analysis Services 15.0.19126.0
Microsoft SQL Server Analysis Services Designer
Version 15.0.19126.0
SQL Server Data Tools 16.0.62006.03190
Microsoft SQL Server Data Tools
SsmsVsIntegration 1.0

Related

How to solve error when opening SQL Server Data Tools from Visual studio 2010

I installed Visual Studio 2010, visual studio SP1 , SQL server data tools (SSDT) 2012, and SQL server 2012 instance. But whenever i open SSIS packages (dtsx file) through Visual studio 2010 i get the below error. How do i resolve this ? Am i missing any installation or do i need to configure anything ? please help
Install Microsoft SQL Server Data Tools - Business Intelligence for Visual Studio 2010
https://www.microsoft.com/en-us/download/details.aspx?id=36843

which SSDT for VS 2017 when I have SQL Server 2016 DE

I have VS 2017 CE, SQL Server 2016 DE and Microsoft SQL Server Management Studio 13.0.16106.4. About VS is showing Microsoft SQL Server Data Tools as installed.
I would like to install SSDT so that I can do the SSRS/SSIS and SSAS but I don't know which one to install, it's giving few options from here
It reads
Download SQL Server Data Tools 17.1 for Visual Studio 2015
Download Data-Tier Application Framework (DacFx) 17.1
From the same website
It then advises "To use SQL Server Data Tools in Visual Studio 2017 see this section below". When I go to the link provided it takes me to visualstudio.com website. It's not apparent to me what I need to download from there, is it the Community Edition?
Going back to the first link I provided, it advises...
If you are using SSDT with Visual Studio 2017, install the AS and RS components:
Analysis Services
Reporting Services
I also found another link...www.visualstudio.com/vs/ssdt/
Also are there any conflict between sql server 2016 and vs 2017 CE when taking SSRS/SSIS or SSAS tasks?
StackOverFlow is giving me message that I need to have number of reputation before I can give more than 1 website link.
Can someone advise me which one to install?
Thanks.
For Visual Studio 2017, there is not yet a stand alone install of SSIS|AS|RS. However, there are VSIX installs available for RS and AS. See links below.
SSIS is working on creating a standalone install as well as a VSIX package.
https://marketplace.visualstudio.com/items?itemName=ProBITools.MicrosoftReportProjectsforVisualStudio
https://marketplace.visualstudio.com/items?itemName=ProBITools.MicrosoftAnalysisServicesModelingProjects

Not supported (tabular model 1200 or higher required)

I get the following error in Visual Studio when I'm working with SSAS Tabular project.
"Not supported (tabular model 1200 or higher required)"
SQL Server 2014 Developer Edition
Visual Studio 2015
Install sql server management studio 2016,
after that install sql server data tool which automatically install visual studio
this will solve your problem

SQL Server Setup Error in Visual studio 2010

i have installed sql sever 2012 with SSDT.
When i am using SSDT and creating package.It gives error:
Microsoft Visual Studio is unable to load this document:
To Design Integration Services packages in sql Server Data Tools (SSDT),SSDT Has to be installed by one of these edition of sql server 2012:Standard,Enterprise,Developer,or Evaluation.
I am using Sql server 2012 Enterprise Edition.
SSDT also installed on my machine.
I dont know y rhis error is occured???.
Please anybody help me
Refer all the discussion in following link
http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/6dce2f25-2f73-4f69-8d37-06483ada79da/
As well go through this step by step approach:
http://learnsqlwithbru.com/2011/12/12/getting-started-with-ssdt-sql-server-data-tools/
Hope its helpful.

SQL Server 2012 - SQL Server Data Tools

I have VS2012 Ultimate installed. In the Installed products it states I have SQL Server Data Tools 11.1. When I go to SQL Server 2012 and click on the SQL Server Data Tools Menu option, VS2010 starts up.
I changed the target to point to C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe instead of C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
So now VS2012 starts up but under new projects I DO NOT have the option to create a new SSIS package. Nor the option to download the data tools off the web.
I did go through VS2010 and download DataTools for 2010 and also selected the download for 2012. VS2010 now has Business Intelligence but VS2012 still does not have this template.
Please help. Slowly going mad.
SQL Server Data Tools part for Business Intelligence (SSAS, SSIS, SSRS) has been released as an add-on for Visual Studio 2012 in March 2013.
It can be downloaded here
If you are running on a 64 bit system and have any error message, use option 1 during the installation (New install). It will only add the BI Studio and not try to reinstall anything else.
Cnfusingly Microsoft have 2 different products called SQL server data tools, the one from the installation media which gives you the BI templates in VS2010 and one that you can download, which just adds the database project type to VS2010/12. Currently there are no BI templates available for VS2012, which is incredibly frustrating, it's due to the version of the Visual Studio Shell used by the tools on the installer only supporting 2010. I guess we'll just have to wait for an update to that :(
New download and more compatibility languages as of January 2019.
SQL Server Data Tools in Visual Studio 2012
Supported Operating Systems:
Windows 10 (x86 and x64)
Windows 8, 8.1 (x86 and x64)
Windows 7 SP1 (x86 and x64)
Windows Server 2012 (x64), R2 (x64)
Windows Server 2008 R2 SP1 (x64)