11.07.2015 Views

Upgrade Guide - Prolifics

Upgrade Guide - Prolifics

Upgrade Guide - Prolifics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Database Interface" DBMS RUN—Executes the SQL statement immediately, which assumes thatno data is returned from the database.Performance is improved because:" Data-modification (non-SELECT) statements are not executed twice." Since it can be determined ahead of time whether or not to expect fetchedrows, it takes less time to execute a SELECT statement.Specifying Variables in DECLARE CONNECTIONThe new recommended syntax for DBMS DECLARE CONNECTION allows thevalues for the connection options to contain spaces or punctuation characters. Use theWITH keyword in the statement (instead of FOR) and connect the option and valuewith an equal sign in comma-separated pairs. Variables no longer need to becolon-expanded; strings must still be in quotation marks. The following examplecontains two variables for the user and password and a quoted string for the databasepath:DBMS DECLARE c1 CONNECTION WITH \USER=user, PASSWORD=pword, \DATABASE="C:\Program Files\<strong>Prolifics</strong>\videobiz"Since the variables are not colon-expanded in this variant, the values will not appearin error messages and trace statements.Support for Long FilenamesDBMS CATQUERY now supports writing to a filename containing spaces orpunctuation. Create a variable for the filename and use the variable in the newcommand syntax:vars query1 = "query results"DBMS CATQUERY TO FILENAME query1This syntax does not replace DBMS CATQUERY TO FILE, which is supportedunchanged.<strong>Upgrade</strong> <strong>Guide</strong> 1-43

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!