MS
This commit is contained in:
@@ -64,7 +64,7 @@ Public Class frmSAP_FuBa
|
||||
'Try
|
||||
' Me.Cursor = Cursors.WaitCursor
|
||||
' If LogErrorsOnly = False Then ClassLogger.Add("", False)
|
||||
' If LogErrorsOnly = False Then ClassLogger.Add(">> SAP Connect started:", False)
|
||||
' If LogErrorsOnly = False Then ClassLogger.Add(" >> SAP Connect started:", False)
|
||||
' ERPConnect.LIC.SetLic("W86DWC992C")
|
||||
' con.Host = HostTextBox.Text
|
||||
' con.SystemNumber = SystemNumberTextBox.Text
|
||||
@@ -72,9 +72,9 @@ Public Class frmSAP_FuBa
|
||||
' con.Password = PasswordTextBox.Text
|
||||
' con.Client = ClientTextBox.Text
|
||||
' con.Language = LanguageTextBox.Text
|
||||
' If LogErrorsOnly = False Then ClassLogger.Add(">> HOST: " & HostTextBox.Text & " |SystemNumber: " & SystemNumberTextBox.Text & " |UserName: " & UserNameTextBox.Text & " |Password: " & PasswordTextBox.Text & " |Client: " & ClientTextBox.Text & " |Language: " & LanguageTextBox.Text, False)
|
||||
' If LogErrorsOnly = False Then ClassLogger.Add(" >> HOST: " & HostTextBox.Text & " |SystemNumber: " & SystemNumberTextBox.Text & " |UserName: " & UserNameTextBox.Text & " |Password: " & PasswordTextBox.Text & " |Client: " & ClientTextBox.Text & " |Language: " & LanguageTextBox.Text, False)
|
||||
' con.Open(False)
|
||||
' If LogErrorsOnly = False Then ClassLogger.Add(">> SAP-Connection erfolgreich aufgebaut!", False)
|
||||
' If LogErrorsOnly = False Then ClassLogger.Add(" >> SAP-Connection erfolgreich aufgebaut!", False)
|
||||
' If LogErrorsOnly = False Then ClassLogger.Add("", False)
|
||||
' lblConnectionopen.Visible = True
|
||||
' Me.Cursor = Cursors.Default
|
||||
@@ -162,12 +162,12 @@ Public Class frmSAP_FuBa
|
||||
Next
|
||||
createtablesql += ")"
|
||||
''Die Tabelle anlegen
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(">> Create Table: " & createtablesql, False)
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" >> Create Table: " & createtablesql, False)
|
||||
If ClassDatabase.Execute_non_Query_withConn(createtablesql, 1) = False Then
|
||||
MsgBox("Error in creating TempTable: Check log", MsgBoxStyle.Critical)
|
||||
Exit Sub
|
||||
End If
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(">> table has been created", False)
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" >> table has been created", False)
|
||||
|
||||
Dim alter = String.Format("ALTER TABLE {0} ADD GUID INTEGER NOT NULL IDENTITY(1,1)", tablename)
|
||||
ClassDatabase.Execute_non_Query_withConn(alter, 1)
|
||||
@@ -212,7 +212,7 @@ Public Class frmSAP_FuBa
|
||||
End Using
|
||||
SQLconnect.Close()
|
||||
Me.Cursor = Cursors.Default
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(">> Create table from SAP FuBa was successfull " & SAPResulttable.Rows.Count & " Rows were inserted to table '" & tablename & "'!", False)
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" >> Create table from SAP FuBa was successfull " & SAPResulttable.Rows.Count & " Rows were inserted to table '" & tablename & "'!", False)
|
||||
MsgBox("Create table was successfull! " & vbNewLine & SAPResulttable.Rows.Count & " Rows were inserted to table '" & tablename & "'!", MsgBoxStyle.Information)
|
||||
Catch ex As Exception
|
||||
MsgBox("Unexpected Error in SQL bulkCopy: " & ex.Message, MsgBoxStyle.Critical)
|
||||
|
||||
Reference in New Issue
Block a user