Trace at db level

This commit is contained in:
Christian Wade 2020-02-03 18:02:27 -08:00
parent 0ed6cf9d36
commit a72231cb14
2 changed files with 5 additions and 1 deletions

View File

@ -729,6 +729,10 @@ $@"{{
public string BuildConnectionString()
{
string connectionString = $"Provider=MSOLAP;Data Source={this.ServerName};";
if (!String.IsNullOrEmpty(this.DatabaseName))
{
connectionString += $"Initial Catalog={this.DatabaseName};";
}
if (this.CredsProvided)
{
connectionString += $"User ID={this.Username};Password={this.Password};";

View File

@ -2283,7 +2283,7 @@ namespace BismNormalizer.TabularCompare.TabularMetadata
XmlNodeList partitionNodeList = document.GetElementsByTagName("Partition");
XmlNodeList tableNodeList = document.GetElementsByTagName("Table");
if (partitionNodeList != null && tableNodeList != null)
if (partitionNodeList != null && partitionNodeList.Count > 0 && tableNodeList != null && tableNodeList.Count > 0)
{
if (_tablesToProcess.ContainsId(tableNodeList[0].InnerText))
{