PreparedStatement in VB6

Is there a PreparedStatement in VB6 similar to Java


Answer this question

PreparedStatement in VB6

  • Jonathan Hseu

    Hi Shilpa,

    Yes there is. You will need to set the Command.Prepared property on the ADODB.Command object to True to achieve this.

    The Command.Prepared = True statement takes the CommandText and pre-compiles it, so it's actually a little slower than a direct SQL statement the first time that it runs, but every time after that, it will be faster.

    Regards,
    Vikram

  • PreparedStatement in VB6