To embed an SQL query into a program

  1. In the OpenESQL Assistant, create an SQL query.
  2. In the Visual Studio IDE, open the project that contains the program into which you want to embed the SQL.
  3. Open the appropriate program in the program editor.
  4. Place your cursor at the point in your program where you want the query to appear.
  5. On the OpenESQL Assistant, click Insert Query into Current ProgramCreate New Query.