Integration Your Way - (800) 235-7250
RSSBus JDBC Driver for MSCRM
Questions / Feedback? UPDATE Statements

UPDATE Statements

To update a table, use the standard UPDATE SQL syntax. The RSSBus JDBC Driver for MSCRM supports updating only one row at a time. Hence the primary key Id is always required.

  
  String cmd = "UPDATE Lead SET (FullName='John Smith') WHERE Id = ?";
  PreparedStatement pstmt = conn.prepareStatement(cmd);
  pstmt.setString(1, "1045625d-99ee-e011-a272-00155d01ad6b");
  int count=pstmt.getUpdateCount();
  pstmt.execute();
  if (count!=-1)
  {
    System.out.println(count+" rows are affected");
  }

To update a table, use the standard UPDATE SQL syntax. The RSSBus JDBC Driver for MSCRM supports updating only one row at a time. Hence the primary key Id is always required.

  
  String cmd = "UPDATE Lead SET (FullName='John Smith') WHERE Id = ?";
  PreparedStatement pstmt = conn.prepareStatement(cmd);
  pstmt.setString(1, "1045625d-99ee-e011-a272-00155d01ad6b");
  int count=pstmt.getUpdateCount();
  pstmt.execute();
  if (count!=-1)
  {
    System.out.println(count+" rows are affected");
  }


 
Copyright © 2013 RSSBus Inc.
[x] close

Questions / Feedback?


Name:
Email:
Feedback:
Send Feedback