Results 1 to 14 of 14

Thread: [RESOLVED] Syntax error in UPDATE statement

Hybrid View

  1. #1
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: [RESOLVED] Syntax error in UPDATE statement

    Add this
    Code:
    Try
         Dim ResutlCount As Integer = dbCommand.ExecuteNonQuery()
         MessageBox.Show("Rows Effected: " & ResultCount.ToString()
    Catch ex As Exception
    
         MsgBox(ex.Message, MsgBoxStyle.Critical)
    End Try
    What is the result in the messagebox.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Mar 2010
    Posts
    22

    Re: [RESOLVED] Syntax error in UPDATE statement

    Quote Originally Posted by GaryMazzone View Post
    Add this
    Code:
    Try
         Dim ResutlCount As Integer = dbCommand.ExecuteNonQuery()
         MessageBox.Show("Rows Effected: " & ResultCount.ToString()
    Catch ex As Exception
    
         MsgBox(ex.Message, MsgBoxStyle.Critical)
    End Try
    What is the result in the messagebox.
    Rows Effected: 0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width