Remove ClassFormFunctions, switch to Database Module for getting connection string from connection id
This commit is contained in:
@@ -30,7 +30,7 @@ Public Class SQLConfigAutoIndex
|
||||
Dim dt As DataTable
|
||||
If typeCS.Length > 0 Then
|
||||
Dim CS As String
|
||||
CS = ClassFormFunctions.GetConnectionString(cmbConnection.SelectedValue)
|
||||
CS = DATABASE_ECM.Get_ConnectionStringforID(cmbConnection.SelectedValue)
|
||||
If typeCS.ToUpper = "Oracle".ToUpper Then
|
||||
dt = ClassDatabase.Oracle_Return_Datatable(query, CS, True)
|
||||
Else
|
||||
@@ -326,7 +326,7 @@ Public Class SQLConfigAutoIndex
|
||||
If typeCS.Length > 0 Then
|
||||
Dim oSQL As String = "SELECT TABLE_NAME from information_schema.tables where TABLE_TYPE = " & type & " ORDER BY TABLE_NAME"
|
||||
Dim CS As String
|
||||
CS = ClassFormFunctions.GetConnectionString(cmbConnection.SelectedValue)
|
||||
CS = DATABASE_ECM.Get_ConnectionStringforID(cmbConnection.SelectedValue)
|
||||
If typeCS.ToUpper = "Oracle".ToUpper Then
|
||||
|
||||
|
||||
@@ -362,7 +362,7 @@ Public Class SQLConfigAutoIndex
|
||||
Private Sub GetColumns(tableName As String, ByRef combobox As ComboBox)
|
||||
Try
|
||||
Dim CS As String
|
||||
CS = ClassFormFunctions.GetConnectionString(cmbConnection.SelectedValue)
|
||||
CS = DATABASE_ECM.Get_ConnectionStringforID(cmbConnection.SelectedValue)
|
||||
Dim typeCS As String = DATABASE_ECM.GetScalarValue("SELECT SQL_PROVIDER FROM TBDD_CONNECTION WHERE GUID = " & cmbConnection.SelectedValue)
|
||||
Dim SQL As String
|
||||
Dim DT As DataTable
|
||||
|
||||
Reference in New Issue
Block a user