When and why are quotes needed in <CFQUERY> SQL statements?
CFFaq.comAll content in between <CFQUERY> and </CFQUERY> is sent to the database via the database driver as is. Unlike CFML, SQL is not typeless, and so SQL statements must be complete and valid as per SQL syntax specifications. All strings (or variables being used as string values) must be enclosed within singe quotes. Similarly, all numeric values must not be within quotes, and all dates and times must be formatted as valid date and time values.
How do I use quotes in my SQL queries?
ODBC Socket ServerIf you get strange error messages using double-quotes in your SQL queries, just use single quotes. For example: SELECT * FROM authors WHERE name = 'Smith' will work without problems. There are two main areas of the PHP class that can generate errors. If you experience problems using the xml functions, you must compile PHP with XML support (by using the --with-xml configure option).
Can I email invoices, statements and quotes ?
Cashbook Complete - Frequently Asked Questions (FAQ)Yes, with version 4.0 onwards you can. For more information, search Cashbook Help for Emailing Invoices, Statements and Quotes.
How can I time my SQL statements in TCL?
FAQThe TCL time or clock commands are useful for timing statements. More information is available in the documentation.
Can one call DDL statements from PL/SQL?
PL/SQL FAQ - Oracle FAQOne can call DDL statements like CREATE, DROP, TRUNCATE, etc. from PL/SQL by using the "EXECUTE IMMEDIATE" statement (native SQL). Examples: begin EXECUTE IMMEDIATE 'CREATE TABLE X(A DATE)'; end; begin execute Immediate 'TRUNCATE TABLE emp'; end; DECLARE var VARCHAR2(100); BEGIN var := 'CREATE TABLE temp1(col1 NUMBER(2))'; EXECUTE IMMEDIATE var; END; Users running Oracle versions below Oracle 8i can look at the DBMS_SQL package (see FAQ about Dynamic SQL).
Can I see what T-SQL statements are using Hints?
ReportsYes, run the "Queries with Table Hints", "Queries with Query Hints", and "Queries with Join Hints" to find this information. Please, keep in mind that the filtering option: "Show Top (in %): N" will filter the top queries with most executions and then it will check them for Hints usage; this lowers quite a bit the impact on the server when running this report. reports.
How many SQL statements can I execute in one report processing?
PTReportGen FAQs - Report Generator for Microsoft PowerPointIt is dependent on the license of PTReportGen you have purchased. For detailed information, see Licenses.
Can one use dynamic SQL statements from PL/SQL?
PL/SQL FAQ - Oracle FAQStarting from Oracle8i one can use the "EXECUTE IMMEDIATE" statement to execute dynamic SQL and PL/SQL statements (statements created at run-time). Look at these examples. Note that the statements within quotes are NOT semicolon terminated: EXECUTE IMMEDIATE 'CREATE TABLE x (a NUMBER)'; -- Using bind variables... sql_stmt := 'INSERT INTO dept VALUES (:1, :2, :3)'; EXECUTE IMMEDIATE sql_stmt USING dept_id, dept_name, location; -- Returning a cursor..
Can I find if hints are being used in the t-sql statements run on the SQL Server?
Other FAQsYes, run the "Query Optimizer" report. It will provide you with different statistics including the use of hints (i.e. table, join, plan, etc.)
Are access statements the same as the new design and access statements that are now needed?
Planning services frequently asked questionsThe Disability Rights Commission (DRC) has produced guidance on access statements. This explains how access should be considered from the start of the design process through to the building and final use and maintenance of the building or space. The statements needed with planning applications should relate specifically to the planning stage of the development process.
Can I integrate the existing SQL statements into the Scribe procedures?
Frequently Asked QuestionsDirect SQL mode of the Database Retrieval component allows freely-formatted SQL SELECT statements of any degree of complexity to be added to the procedures. The SQLCommand system function can be used to run SQL statements that add, update and delete rows in the database tables.
top] How to see SQL statements issued by DbUnit using P6Spy?
DbUnit - Frequently Asked QuestionsP6Spy is a transparent JDBC proxy-driver specialized to log the statements performed against the actual driver you normally would use. Using p6spy would allow to log the SQL statements issued by DbUnit. Move spy.properties into a directory listed in your classpath. Unlike JAR files, you do not directly reference your property file in the classpath (e.g.: if you have the file c:\r\proj\conf\spy.properties make sure you put c:\r\proj\conf in the classpath). Modify the realdriver line in the spy.
How can I trace and/or profile SQL statements executed by OJB?
Frequently Asked QuestionsOJB ships with out of the box support for P6Spy. P6Spy is a JDBC proxy which delegates all JDBC calls to the real JDBC driver and traces all calls to a log file. P6Spy is contained in the p6spy.jar, which you'll find in the lib folder of your OJB distribution. Add this to the classpath of your app (if you're using the ojb-blank project, then simply copy the jar into the lib folder of the project and if you're using Eclipse then also add it to the project build path).
I'm having problems with apostrophies and SQL statements. What's going on?
ColdFusion FAQColdFusion will automatically escape an apostrophe if it's in a variable value that you're inserting into a database. It escapes it by doubling it up from ' to ''. For exmple, if Var1 and Var2 contain apostrophies, you don't need to worry about escaping the following code.
When I roll back an update routine, some sql statements are not rolled back. Why?
Database schema updaterThere are a couple of sql statements that cannot be executed inside a transaction. User and db space creation are examples of such statements. These are special statements that seldom you will need to synchronize. DbUpdater executes first these statements and then starts a transaction for all the other sql statements. As a consequence, rolling back the transaction will leave these entities changed.
How should I escape text in SQL statements, and express dates and times?
FAQ for the microsoft.public.languages.csharp newsgroupThe answer here is not to put the data in your SQL statements at all, but to use parameters. Every data provider worth using provides a way of specifying parameters in SQL statements, either named (e.g. SELECT NAME FROM PEOPLE WHERE ID=@ID) or positional (e.g. SELECT NAME FROM PEOPLE WHERE ID=?). Some providers only support positional parameters, others only support named parameters, others support both.
lt; Back to Top > Are browser plug-ins needed to run WBT Manager?
Web Based Training and Integrity eLearning - Your source for...WBT Manager's web interface is composed of standard HTML components with JavaScript functions for window control and form validation. The SCORM API interface is implemented as a Java applet. No plug-in is required to use the WBT Manager system itself. Lesson content may, however, may require plug-ins (such as the Authorware Web Player needed to run the tutorials on our site.)
Why is Yadis needed? Can't the same functionality be done just with <link..> tags?
Yadis FAQ - Yadisie, I want to know if a site has APIX, I get their Yadis XML which has a node referencing APIX and so I know they have it... Absolutely. For example, you can consider the frequent "link" headers in HTML to be a shorthand for full YADIS, just like OpenID's openid.* tags in HTML have been re-explained as shorthands for entries a proper YADIS file. YADIS files can be considered collections of metadata for URLs, and because YADIS is an extensible format, just about any metadata can be represented.
What about SQL?
Coastline - ASP FAQWe support MySQL on our newest servers. If you would like to use MySQL and are unsure whether it is available to you or not, please contact Customer Support. If you do not have MySQL available to you, we would be happy to switch your server so you can use it.
