From 020de1aa4cd8424275e5e3b7b13944b3eaf1fc81 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Mon, 4 Apr 2022 10:38:20 +0200 Subject: [PATCH] Fix SQL Designer not recognizing MSSQL Connectionstrings --- Global_Indexer/frmSQL_DESIGNER.vb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Global_Indexer/frmSQL_DESIGNER.vb b/Global_Indexer/frmSQL_DESIGNER.vb index 2537f6b..354c697 100644 --- a/Global_Indexer/frmSQL_DESIGNER.vb +++ b/Global_Indexer/frmSQL_DESIGNER.vb @@ -187,7 +187,7 @@ Public Class frmSQL_DESIGNER If connectionString <> "" Then - If connectionString.StartsWith("Server=") And (connectionString.Contains("Database=") Or connectionString.ToUpper.Contains("Initial Catalog=".ToUpper)) Then + If (connectionString.StartsWith("Server=") Or connectionString.StartsWith("Data Source")) And (connectionString.Contains("Database=") Or connectionString.Contains("Initial Catalog=")) Then Dim sqlConnection As SqlClient.SqlConnection Dim sqlCommand As SqlClient.SqlCommand Dim sqlAdapter As New SqlClient.SqlDataAdapter