Skip to content

Commit 8dcd785

Browse files
committed
switching features from Microsoft.AnalysisServices.AdomdClient to AppLocal version
1 parent 3c6994a commit 8dcd785

15 files changed

Lines changed: 71 additions & 36 deletions

SQL2017_VS2017_BidsHelper.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -794,11 +794,6 @@
794794
<HintPath>DLLs\SQL2017\Reference\Microsoft.SqlServer.ManagedDTS.dll</HintPath>
795795
<Private>False</Private>
796796
</Reference>
797-
<Reference Include="Microsoft.AnalysisServices.AdomdClient, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
798-
<SpecificVersion>False</SpecificVersion>
799-
<HintPath>DLLs\SQL2017\Reference\Microsoft.AnalysisServices.AdomdClient.dll</HintPath>
800-
<Private>False</Private>
801-
</Reference>
802797
<Reference Include="Microsoft.AnalysisServices.Controls">
803798
<HintPath>DLLs\SQL2017\Reference\Microsoft.AnalysisServices.Controls.DLL</HintPath>
804799
<Private>False</Private>

SQL2019_VS2017_BidsHelper.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -841,11 +841,6 @@
841841
<HintPath>DLLs\SQL2019\Reference\Microsoft.SqlServer.ManagedDTS.dll</HintPath>
842842
<Private>False</Private>
843843
</Reference>
844-
<Reference Include="Microsoft.AnalysisServices.AdomdClient, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
845-
<SpecificVersion>True</SpecificVersion>
846-
<HintPath>DLLs\SQL2019\Reference\Microsoft.AnalysisServices.AdomdClient.dll</HintPath>
847-
<Private>False</Private>
848-
</Reference>
849844
<Reference Include="Microsoft.AnalysisServices.Controls">
850845
<HintPath>DLLs\SQL2019\Reference\Microsoft.AnalysisServices.Controls.DLL</HintPath>
851846
<Private>False</Private>

SSAS/AggManager/AggregationPerformance.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
using System;
1+
#if SQL2017
2+
extern alias localAdomdClient;
3+
using localAdomdClient.Microsoft.AnalysisServices.AdomdClient;
4+
#else
5+
using Microsoft.AnalysisServices.AdomdClient;
6+
#endif
7+
8+
using System;
29
using System.Collections.Generic;
310
using System.Text;
411
using Microsoft.AnalysisServices;
5-
using Microsoft.AnalysisServices.AdomdClient;
612
using System.Data;
713

814
namespace AggManager

SSAS/AggManager/AggregationPerformanceProgress.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ PARTICULAR PURPOSE.
3030
* http://www.codeplex.com/MSFTASProdSamples
3131
*
3232
============================================================================*/
33+
#if SQL2017
34+
extern alias localAdomdClient;
35+
using localAdomdClient.Microsoft.AnalysisServices.AdomdClient;
36+
#else
37+
using Microsoft.AnalysisServices.AdomdClient;
38+
#endif
39+
3340
using System;
3441
using System.Collections.Generic;
3542
using System.ComponentModel;
@@ -88,7 +95,7 @@ private void InitASSPLabel()
8895
{
8996
try
9097
{
91-
Microsoft.AnalysisServices.AdomdClient.AdomdConnection conn = new Microsoft.AnalysisServices.AdomdClient.AdomdConnection("Data Source=" + lblServer.Text + ";Initial Catalog=" + lblDatabase.Text);
98+
AdomdConnection conn = new AdomdConnection("Data Source=" + lblServer.Text + ";Initial Catalog=" + lblDatabase.Text);
9299
conn.Open();
93100

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

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

311318
}

SSAS/AggManager/EditAggs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PARTICULAR PURPOSE.
3838
using System.Text;
3939
using System.Windows.Forms;
4040
using Microsoft.AnalysisServices;
41-
using Microsoft.AnalysisServices.AdomdClient;
41+
//using Microsoft.AnalysisServices.AdomdClient;
4242

4343

4444
namespace AggManager

SSAS/AggManager/frmDeleteUnusedAggs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
using System.Drawing;
1919
using System.Text;
2020
using System.Windows.Forms;
21-
using Microsoft.AnalysisServices.AdomdClient;
21+
//using Microsoft.AnalysisServices.AdomdClient;
2222
using Microsoft.AnalysisServices;
2323
using System.Data.SqlClient;
2424

SSAS/AggManager/frmExportTable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
using System.Text;
2121
using System.Windows.Forms;
2222
using System.Data.SqlClient;
23-
using Microsoft.AnalysisServices.AdomdClient;
23+
//using Microsoft.AnalysisServices.AdomdClient;
2424
using Microsoft.AnalysisServices;
2525

2626

SSAS/AggManager/frmMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ PARTICULAR PURPOSE.
4040
using System.Globalization;
4141
using System.Reflection;
4242

43-
using Microsoft.AnalysisServices.AdomdClient;
43+
//using Microsoft.AnalysisServices.AdomdClient;
4444
using Microsoft.AnalysisServices;
4545

4646
namespace AggManager
252 Bytes
Binary file not shown.

SSAS/AggManager/frmQueryLog.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ PARTICULAR PURPOSE.
3737
using System.Drawing;
3838
using System.Text;
3939
using System.Windows.Forms;
40-
using Microsoft.AnalysisServices.AdomdClient;
40+
//using Microsoft.AnalysisServices.AdomdClient;
4141
using Microsoft.AnalysisServices;
4242
using System.Data.SqlClient;
4343

0 commit comments

Comments
 (0)