Made adjustments to force login dialogs and removed a line that caused issues on some models.
This commit is contained in:
parent
94a22ea210
commit
aff83d81cf
@ -24,7 +24,7 @@
|
|||||||
<DeploymentOptionADALCache>Default</DeploymentOptionADALCache>
|
<DeploymentOptionADALCache>Default</DeploymentOptionADALCache>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)' == '' ">
|
<PropertyGroup Condition=" '$(Configuration)' == '' ">
|
||||||
<DeploymentServerName>asazure://aspaastest14.asazure-int.windows.net/sukanyasaltsrc1</DeploymentServerName>
|
<DeploymentServerName>localhost\SQL2016</DeploymentServerName>
|
||||||
<DeploymentServerEdition>Developer</DeploymentServerEdition>
|
<DeploymentServerEdition>Developer</DeploymentServerEdition>
|
||||||
<DeploymentServerVersion>Unknown</DeploymentServerVersion>
|
<DeploymentServerVersion>Unknown</DeploymentServerVersion>
|
||||||
<DeploymentServerDatabase>AdventureWorksAggs</DeploymentServerDatabase>
|
<DeploymentServerDatabase>AdventureWorksAggs</DeploymentServerDatabase>
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
<DeploymentOptionQueryImpersonation>Default</DeploymentOptionQueryImpersonation>
|
<DeploymentOptionQueryImpersonation>Default</DeploymentOptionQueryImpersonation>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)' == '' ">
|
<PropertyGroup Condition=" '$(Configuration)' == '' ">
|
||||||
<DeploymentServerName>asazure://aspaastest14.asazure-int.windows.net/sukanyasaltsrc1</DeploymentServerName>
|
<DeploymentServerName>localhost\SQL2016</DeploymentServerName>
|
||||||
<DeploymentServerEdition>Developer</DeploymentServerEdition>
|
<DeploymentServerEdition>Developer</DeploymentServerEdition>
|
||||||
<DeploymentServerVersion>Unknown</DeploymentServerVersion>
|
<DeploymentServerVersion>Unknown</DeploymentServerVersion>
|
||||||
<DeploymentServerDatabase>AdventureWorksAggsProvider</DeploymentServerDatabase>
|
<DeploymentServerDatabase>AdventureWorksAggsProvider</DeploymentServerDatabase>
|
||||||
|
@ -287,8 +287,9 @@ namespace SetUpAggs
|
|||||||
/// <param name="serverName"></param>
|
/// <param name="serverName"></param>
|
||||||
private void Connect(string serverName)
|
private void Connect(string serverName)
|
||||||
{
|
{
|
||||||
|
// Changed this line to force login dialogs
|
||||||
//string connectionString = $"Provider=MSOLAP;Data Source={args.Server};";
|
//string connectionString = $"Provider=MSOLAP;Data Source={args.Server};";
|
||||||
string connectionString = $"Provider=MSOLAP;Data Source={serverName};Integrated Security=SSPI;Persist Security Info=True;";
|
string connectionString = $"Provider=MSOLAP;Data Source={serverName};Persist Security Info=True;";
|
||||||
server.Connect(connectionString);
|
server.Connect(connectionString);
|
||||||
|
|
||||||
database = server.Databases.FindByName(aggsConfig.Database.Name);
|
database = server.Databases.FindByName(aggsConfig.Database.Name);
|
||||||
@ -416,7 +417,8 @@ namespace SetUpAggs
|
|||||||
Console.WriteLine("COMPLETE");
|
Console.WriteLine("COMPLETE");
|
||||||
}
|
}
|
||||||
|
|
||||||
database.Model.SaveChanges();
|
// Removed this line which was throwing errors on large models, and it seems to commit the changes without it
|
||||||
|
// database.Model.SaveChanges();
|
||||||
|
|
||||||
Console.ForegroundColor = ConsoleColor.White;
|
Console.ForegroundColor = ConsoleColor.White;
|
||||||
Console.WriteLine("Refreshing tables - end: " + DateTime.Now.ToString("hh:mm:ss tt"));
|
Console.WriteLine("Refreshing tables - end: " + DateTime.Now.ToString("hh:mm:ss tt"));
|
||||||
|
@ -67,6 +67,8 @@
|
|||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<None Include="AggsConfig.json" />
|
||||||
|
<None Include="AggsConfig2.json" />
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
Loading…
Reference in New Issue
Block a user