First pass of new config
This commit is contained in:
@@ -19,7 +19,7 @@ Public Class frmSQL_Admin
|
||||
Try
|
||||
Me.Cursor = Cursors.WaitCursor
|
||||
|
||||
Dim connection As New SqlClient.SqlConnection(MyConnectionString) 'csb.ConnectionString)
|
||||
Dim connection As New SqlClient.SqlConnection(CONNECTION_STRING) 'csb.ConnectionString)
|
||||
connection.Open()
|
||||
Dim cmd As New SqlClient.SqlCommand(txtSQL.Text, connection)
|
||||
cmd.ExecuteNonQuery()
|
||||
@@ -38,7 +38,7 @@ Public Class frmSQL_Admin
|
||||
End Sub
|
||||
Sub Load_ConString(constr As String)
|
||||
Dim csb As New SqlClient.SqlConnectionStringBuilder
|
||||
csb.ConnectionString = MyConnectionString
|
||||
csb.ConnectionString = CONNECTION_STRING
|
||||
If csb.Password.Length > 0 Then
|
||||
constr = constr.Replace(csb.Password, "XXXXX")
|
||||
End If
|
||||
@@ -66,7 +66,7 @@ Public Class frmSQL_Admin
|
||||
End Sub
|
||||
|
||||
Private Sub frmSQL_Admin_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
Load_ConString(MyConnectionString)
|
||||
Load_ConString(CONNECTION_STRING)
|
||||
End Sub
|
||||
|
||||
Private Sub txtSQL_KeyPress_1(sender As Object, e As KeyPressEventArgs) Handles txtSQL.KeyPress
|
||||
|
||||
Reference in New Issue
Block a user