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>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == '' ">
|
||||
<DeploymentServerName>asazure://aspaastest14.asazure-int.windows.net/sukanyasaltsrc1</DeploymentServerName>
|
||||
<DeploymentServerName>localhost\SQL2016</DeploymentServerName>
|
||||
<DeploymentServerEdition>Developer</DeploymentServerEdition>
|
||||
<DeploymentServerVersion>Unknown</DeploymentServerVersion>
|
||||
<DeploymentServerDatabase>AdventureWorksAggs</DeploymentServerDatabase>
|
||||
|
@ -24,7 +24,7 @@
|
||||
<DeploymentOptionQueryImpersonation>Default</DeploymentOptionQueryImpersonation>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == '' ">
|
||||
<DeploymentServerName>asazure://aspaastest14.asazure-int.windows.net/sukanyasaltsrc1</DeploymentServerName>
|
||||
<DeploymentServerName>localhost\SQL2016</DeploymentServerName>
|
||||
<DeploymentServerEdition>Developer</DeploymentServerEdition>
|
||||
<DeploymentServerVersion>Unknown</DeploymentServerVersion>
|
||||
<DeploymentServerDatabase>AdventureWorksAggsProvider</DeploymentServerDatabase>
|
||||
|
@ -287,8 +287,9 @@ namespace SetUpAggs
|
||||
/// <param name="serverName"></param>
|
||||
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={serverName};Integrated Security=SSPI;Persist Security Info=True;";
|
||||
string connectionString = $"Provider=MSOLAP;Data Source={serverName};Persist Security Info=True;";
|
||||
server.Connect(connectionString);
|
||||
|
||||
database = server.Databases.FindByName(aggsConfig.Database.Name);
|
||||
@ -416,7 +417,8 @@ namespace SetUpAggs
|
||||
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.WriteLine("Refreshing tables - end: " + DateTime.Now.ToString("hh:mm:ss tt"));
|
||||
|
@ -67,6 +67,8 @@
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="AggsConfig.json" />
|
||||
<None Include="AggsConfig2.json" />
|
||||
<None Include="App.config" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
|
Loading…
Reference in New Issue
Block a user