Skip to content

Commit

Permalink
Merge branch 'bidshelper-vsix'
Browse files Browse the repository at this point in the history
  • Loading branch information
furmangg committed Nov 21, 2018
2 parents 3d4d9af + 46ef392 commit 949c915
Show file tree
Hide file tree
Showing 20 changed files with 75 additions and 40 deletions.
Binary file modified BidsHelper2017.pkgdef.bak
Binary file not shown.
2 changes: 1 addition & 1 deletion Core/VersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class VersionInfo
{
// BIDS Helper Assembly & VSIX Version
// N.B. Manually update the manifest file, if you change this - See source.extension.vsixmanifest
public const string Version = "2.2.0";
public const string Version = "2.2.1";

private static readonly object lockResource = new object();
private static Version visualStudioVersion;
Expand Down
2 changes: 1 addition & 1 deletion Manifest/SQL2017/VSPackageVS2017.resx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<value>BI Developer Extensions 2017 Extension</value>
</data>
<data name="112" xml:space="preserve">
<value>BI Developer Extensions 2017 Visual Studio Extension v2.2.0 - An add-in to extend SQL Server Data Tools</value>
<value>BI Developer Extensions 2017 Visual Studio Extension v2.2.1 - An add-in to extend SQL Server Data Tools</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="400" type="System.Resources.ResXFileRef, System.Windows.Forms">
Expand Down
2 changes: 1 addition & 1 deletion Manifest/SQL2017/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="BIDSHelper_VSIX.b6deed2d-6c6f-46d4-94be-28027bf7d873" Version="2.2.0" Language="en-US" Publisher="bideveloperextensions.github.io" />
<Identity Id="BIDSHelper_VSIX.b6deed2d-6c6f-46d4-94be-28027bf7d873" Version="2.2.1" Language="en-US" Publisher="bideveloperextensions.github.io" />
<DisplayName>BI Developer Extensions for Visual Studio 2017</DisplayName>
<Description xml:space="preserve">BI Developer Extensions (formerly BIDS Helper) is an extension for BIDS / SSDT that includes numerous enhancements for SQL Server BI projects</Description>
<MoreInfo>https://bideveloperextensions.github.io</MoreInfo>
Expand Down
5 changes: 0 additions & 5 deletions SQL2017_VS2017_BidsHelper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -794,11 +794,6 @@
<HintPath>DLLs\SQL2017\Reference\Microsoft.SqlServer.ManagedDTS.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Microsoft.AnalysisServices.AdomdClient, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>DLLs\SQL2017\Reference\Microsoft.AnalysisServices.AdomdClient.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Microsoft.AnalysisServices.Controls">
<HintPath>DLLs\SQL2017\Reference\Microsoft.AnalysisServices.Controls.DLL</HintPath>
<Private>False</Private>
Expand Down
5 changes: 0 additions & 5 deletions SQL2019_VS2017_BidsHelper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -841,11 +841,6 @@
<HintPath>DLLs\SQL2019\Reference\Microsoft.SqlServer.ManagedDTS.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Microsoft.AnalysisServices.AdomdClient, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
<SpecificVersion>True</SpecificVersion>
<HintPath>DLLs\SQL2019\Reference\Microsoft.AnalysisServices.AdomdClient.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Microsoft.AnalysisServices.Controls">
<HintPath>DLLs\SQL2019\Reference\Microsoft.AnalysisServices.Controls.DLL</HintPath>
<Private>False</Private>
Expand Down
10 changes: 8 additions & 2 deletions SSAS/AggManager/AggregationPerformance.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
using System;
#if SQL2017
extern alias localAdomdClient;
using localAdomdClient.Microsoft.AnalysisServices.AdomdClient;
#else
using Microsoft.AnalysisServices.AdomdClient;
#endif

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.AnalysisServices;
using Microsoft.AnalysisServices.AdomdClient;
using System.Data;

namespace AggManager
Expand Down
11 changes: 9 additions & 2 deletions SSAS/AggManager/AggregationPerformanceProgress.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ PARTICULAR PURPOSE.
* http://www.codeplex.com/MSFTASProdSamples
*
============================================================================*/
#if SQL2017
extern alias localAdomdClient;
using localAdomdClient.Microsoft.AnalysisServices.AdomdClient;
#else
using Microsoft.AnalysisServices.AdomdClient;
#endif

using System;
using System.Collections.Generic;
using System.ComponentModel;
Expand Down Expand Up @@ -88,7 +95,7 @@ private void InitASSPLabel()
{
try
{
Microsoft.AnalysisServices.AdomdClient.AdomdConnection conn = new Microsoft.AnalysisServices.AdomdClient.AdomdConnection("Data Source=" + lblServer.Text + ";Initial Catalog=" + lblDatabase.Text);
AdomdConnection conn = new AdomdConnection("Data Source=" + lblServer.Text + ";Initial Catalog=" + lblDatabase.Text);
conn.Open();

bool bASSPExists = AggManager.AggregationPerformanceTester.ASSPExists(conn);
Expand Down Expand Up @@ -305,7 +312,7 @@ private void chkTestAgg_CheckedChanged(object sender, EventArgs e)

private void lnkASSP_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("http://asstoredprocedures.codeplex.com/wikipage?title=FileSystemCache");
System.Diagnostics.Process.Start("https://asstoredprocedures.github.io/functions/FileSystemCache/");
}

}
Expand Down
2 changes: 1 addition & 1 deletion SSAS/AggManager/EditAggs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PARTICULAR PURPOSE.
using System.Text;
using System.Windows.Forms;
using Microsoft.AnalysisServices;
using Microsoft.AnalysisServices.AdomdClient;
//using Microsoft.AnalysisServices.AdomdClient;


namespace AggManager
Expand Down
2 changes: 1 addition & 1 deletion SSAS/AggManager/frmDeleteUnusedAggs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.AnalysisServices.AdomdClient;
//using Microsoft.AnalysisServices.AdomdClient;
using Microsoft.AnalysisServices;
using System.Data.SqlClient;

Expand Down
2 changes: 1 addition & 1 deletion SSAS/AggManager/frmExportTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using Microsoft.AnalysisServices.AdomdClient;
//using Microsoft.AnalysisServices.AdomdClient;
using Microsoft.AnalysisServices;


Expand Down
2 changes: 1 addition & 1 deletion SSAS/AggManager/frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ PARTICULAR PURPOSE.
using System.Globalization;
using System.Reflection;

using Microsoft.AnalysisServices.AdomdClient;
//using Microsoft.AnalysisServices.AdomdClient;
using Microsoft.AnalysisServices;

namespace AggManager
Expand Down
Binary file modified SSAS/AggManager/frmPartitionsAggs.cs
Binary file not shown.
2 changes: 1 addition & 1 deletion SSAS/AggManager/frmQueryLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ PARTICULAR PURPOSE.
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.AnalysisServices.AdomdClient;
//using Microsoft.AnalysisServices.AdomdClient;
using Microsoft.AnalysisServices;
using System.Data.SqlClient;

Expand Down
8 changes: 7 additions & 1 deletion SSAS/DeleteUnusedIndexesForm.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
#if SQL2017
extern alias localAdomdClient;
using localAdomdClient.Microsoft.AnalysisServices.AdomdClient;
#else
using Microsoft.AnalysisServices.AdomdClient;
#endif

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.AnalysisServices.AdomdClient;
using Microsoft.AnalysisServices;
using System.Data.SqlClient;
using System.ComponentModel.Design;
Expand Down
8 changes: 7 additions & 1 deletion SSAS/DeployAggDesignsPlugin.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#if SQL2017
extern alias localAdomdClient;
using localAdomdClient.Microsoft.AnalysisServices.AdomdClient;
#else
using Microsoft.AnalysisServices.AdomdClient;
#endif

using EnvDTE;
using EnvDTE80;
using System.Xml;
Expand All @@ -8,7 +15,6 @@
using System.Resources;

using Microsoft.AnalysisServices;
using Microsoft.AnalysisServices.AdomdClient;
using BIDSHelper.Core;
using System;

Expand Down
7 changes: 6 additions & 1 deletion SSAS/DeployMDXScriptPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
// Copyright (c) Company. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
#if SQL2017
extern alias localAdomdClient;
using localAdomdClient.Microsoft.AnalysisServices.AdomdClient;
#else
using Microsoft.AnalysisServices.AdomdClient;
#endif

using System;
using Microsoft.VisualStudio.Shell;
Expand All @@ -14,7 +20,6 @@
using System.Text;
using Microsoft.AnalysisServices;
using EnvDTE80;
using Microsoft.AnalysisServices.AdomdClient;
using BIDSHelper.Core;
using BIDSHelper.Core.VsIntegration;

Expand Down
37 changes: 24 additions & 13 deletions SSAS/Tabular/TabularActionsEditorForm.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#if SQL2017
extern alias localAdomdClient;
#endif

using System;
using System.Collections.Generic;
using System.ComponentModel;
Expand All @@ -7,12 +11,19 @@
using System.Windows.Forms;
using Microsoft.AnalysisServices;

#if SQL2017
using localAdomdClient.Microsoft.AnalysisServices.AdomdClient;
#else
using Microsoft.AnalysisServices.AdomdClient;
#endif


namespace BIDSHelper.SSAS
{
public partial class TabularActionsEditorForm : Form
{
private Microsoft.AnalysisServices.Cube cube;
private Microsoft.AnalysisServices.AdomdClient.AdomdConnection conn;
private AdomdConnection conn;
private List<TabularActionsEditorPlugin.DrillthroughColumn> _listDrillthroughColumns;
private List<ReportParameter> _listReportParameters;
private List<Microsoft.AnalysisServices.Action> _listActionClones;
Expand Down Expand Up @@ -45,9 +56,9 @@ public Microsoft.AnalysisServices.Action[] Actions()
if (mg != null) //if this is a drillthrough action targeting a whole measure group, MeasureGroupMeasures doesn't actually return the calculated measures in a measure group, so we have to take this one drillthrough action and clone it for each measure under the covers
{
if (conn.State != ConnectionState.Open) conn.Open();
Microsoft.AnalysisServices.AdomdClient.AdomdRestrictionCollection restrictions = new Microsoft.AnalysisServices.AdomdClient.AdomdRestrictionCollection();
restrictions.Add(new Microsoft.AnalysisServices.AdomdClient.AdomdRestriction("CUBE_NAME", cube.Name));
restrictions.Add(new Microsoft.AnalysisServices.AdomdClient.AdomdRestriction("MEASUREGROUP_NAME", mg.Name));
AdomdRestrictionCollection restrictions = new AdomdRestrictionCollection();
restrictions.Add(new AdomdRestriction("CUBE_NAME", cube.Name));
restrictions.Add(new AdomdRestriction("MEASUREGROUP_NAME", mg.Name));
DataSet dataset = conn.GetSchemaDataSet("MDSCHEMA_MEASURES", restrictions);
int i = 0;
foreach (DataRow r in dataset.Tables[0].Rows)
Expand Down Expand Up @@ -113,7 +124,7 @@ public TabularActionsAnnotation Annotation
get { return annotation; }
}

public TabularActionsEditorForm(Microsoft.AnalysisServices.Cube cube, Microsoft.AnalysisServices.AdomdClient.AdomdConnection conn)
public TabularActionsEditorForm(Microsoft.AnalysisServices.Cube cube, AdomdConnection conn)
{
InitializeComponent();
this.MinimumSize = this.Size;
Expand Down Expand Up @@ -330,14 +341,14 @@ private void dataGridView1_EditingControlShowing(object sender, DataGridViewEdit
}
}

private static List<string> GetRelatedTables(Dimension dMG, MeasureGroup mgOuter)
private static List<string> GetRelatedTables(Microsoft.AnalysisServices.Dimension dMG, MeasureGroup mgOuter)
{
List<string> list = new List<string>();
foreach (Relationship relOuter in dMG.Relationships)
{
bool bFound = false;
MeasureGroup mgFrom = dMG.Parent.Cubes[0].MeasureGroups[relOuter.FromRelationshipEnd.DimensionID];
Dimension dTo = dMG.Parent.Dimensions[relOuter.ToRelationshipEnd.DimensionID];
Microsoft.AnalysisServices.Dimension dTo = dMG.Parent.Dimensions[relOuter.ToRelationshipEnd.DimensionID];
CubeDimension dToCube = dMG.Parent.Cubes[0].Dimensions[relOuter.ToRelationshipEnd.DimensionID];
foreach (MeasureGroupDimension mgdOuter in mgFrom.Dimensions)
{
Expand Down Expand Up @@ -922,7 +933,7 @@ private void cmbTargetType_SelectedIndexChanged(object sender, EventArgs e)
{
cmbTarget.Items.Add(string.Format("[" + cd.Name + "].[" + a.Name + "]"));
}
foreach (Hierarchy a in cd.Dimension.Hierarchies)
foreach (Microsoft.AnalysisServices.Hierarchy a in cd.Dimension.Hierarchies)
{
cmbTarget.Items.Add(string.Format("[" + cd.Name + "].[" + a.Name + "]"));
}
Expand All @@ -934,9 +945,9 @@ private void cmbTargetType_SelectedIndexChanged(object sender, EventArgs e)
cmbTarget.Items.Add(string.Format("[Measures].[MeasuresLevel]"));
foreach (CubeDimension cd in cube.Dimensions)
{
foreach (Hierarchy a in cd.Dimension.Hierarchies)
foreach (Microsoft.AnalysisServices.Hierarchy a in cd.Dimension.Hierarchies)
{
foreach (Level l in a.Levels)
foreach (Microsoft.AnalysisServices.Level l in a.Levels)
{
cmbTarget.Items.Add(string.Format("[" + cd.Name + "].[" + a.Name + "].[" + l.Name + "]"));
}
Expand All @@ -950,7 +961,7 @@ private void linkHelp_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e
{
try
{
System.Diagnostics.Process.Start("http://bidshelper.codeplex.com/wikipage?title=Tabular%20Actions%20Editor");
System.Diagnostics.Process.Start("https://bideveloperextensions.github.io/features/TabularActionsEditor/");
}
catch (Exception ex)
{
Expand Down Expand Up @@ -1122,7 +1133,7 @@ private void btnTestMDX_Click(object sender, EventArgs e)
{
SaveAction();

Microsoft.AnalysisServices.AdomdClient.AdomdCommand cmd = new Microsoft.AnalysisServices.AdomdClient.AdomdCommand();
AdomdCommand cmd = new AdomdCommand();
cmd.CommandTimeout = 0;
cmd.Connection = conn;
if (conn.State != ConnectionState.Open) conn.Open();
Expand Down Expand Up @@ -1170,7 +1181,7 @@ private void btnTestMDX_Click(object sender, EventArgs e)
cmd.CommandText = sb.ToString();
try
{
Microsoft.AnalysisServices.AdomdClient.CellSet cs = cmd.ExecuteCellSet();
CellSet cs = cmd.ExecuteCellSet();
sbResult.AppendLine(sKey + ": " + Convert.ToString(cs.Cells[0].Value));
}
catch (Exception exMDX)
Expand Down
6 changes: 5 additions & 1 deletion SSAS/Tabular/TabularActionsEditorPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,14 @@ private void ExecSandbox(Microsoft.AnalysisServices.BackEnd.DataModelingSandbox
try
{


#if DENALI || SQL2014
var sb = sandboxParam;
var conn = sandboxParam.AdomdConnection;
#elif SQL2017
var sb = (Microsoft.AnalysisServices.BackEnd.DataModelingSandboxAmo)sandboxParam.Impl;
var localConn = sandboxParam.AdomdConnection;
var conn = new localAdomdClient.Microsoft.AnalysisServices.AdomdClient.AdomdConnection(localConn.ConnectionString);
#else
var sb = (Microsoft.AnalysisServices.BackEnd.DataModelingSandboxAmo)sandboxParam.Impl;
var localConn = sandboxParam.AdomdConnection;
Expand Down
2 changes: 1 addition & 1 deletion extension2017.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011">
<Metadata>
<Identity Id="BIDSHelper_VSIX.b6deed2d-6c6f-46d4-94be-28027bf7d873" Version="2.2.0" Language="en-US" Publisher="bideveloperextensions.github.io" />
<Identity Id="BIDSHelper_VSIX.b6deed2d-6c6f-46d4-94be-28027bf7d873" Version="2.2.1" Language="en-US" Publisher="bideveloperextensions.github.io" />
<DisplayName>BI Developer Extensions for Visual Studio 2017</DisplayName>
<Description xml:space="preserve">BI Developer Extensions (formerly BIDS Helper) is an extension for BIDS / SSDT that includes numerous enhancements for SQL Server BI projects.</Description>
<MoreInfo>https://bideveloperextensions.github.io</MoreInfo>
Expand Down

0 comments on commit 949c915

Please sign in to comment.