MS_07122015
This commit is contained in:
@@ -293,7 +293,11 @@ Public Class frmSQLEditor
|
||||
|
||||
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
|
||||
Try
|
||||
Dim upd As String = "UPDATE TBPMO_CONTROL SET SQL_COMMAND_1 = '" & txtValue.Text & "', CONNECTION_ID_1 = " & cmbConnection.SelectedValue & ", CHANGED_WHO = '" & Environment.UserName & "' WHERE GUID = " & CURRENT_CONTROL_ID
|
||||
Dim sql_comamnd As String = txtValue.Text
|
||||
If txtValue.Text.Contains("'") Then
|
||||
sql_comamnd = txtValue.Text.Replace("'", "''")
|
||||
End If
|
||||
Dim upd As String = "UPDATE TBPMO_CONTROL SET SQL_COMMAND_1 = '" & sql_comamnd & "', CONNECTION_ID_1 = " & cmbConnection.SelectedValue & ", CHANGED_WHO = '" & Environment.UserName & "' WHERE GUID = " & CURRENT_CONTROL_ID
|
||||
If ClassDatabase.Execute_non_Query(upd, True) Then
|
||||
MsgBox("SQL-Befehl erfolgreich gespeichert!", MsgBoxStyle.Exclamation)
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user