QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

top] How to see SQL statements issued by DbUnit using P6Spy?

DbUnit - Frequently Asked Questions
P6Spy 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. See similar questions...

Can I see what T-SQL statements are using Hints?

Reports
Yes, 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. See similar questions...

How often are statements issued?

NatWest - Cards - Frequently Asked Questions
Statements are issued on a monthly basis and show a breakdown of the card transactions carried out during the month. If a cardholder doesn't use their card account during the statement period, a statement for that cardholder won't be issued. See similar questions...

How can I export my database using DbUnit?

FAQ - AppFuse 2 - Confluence
Running mvn dbunit:export will export your database to target/dbunit/export.xml. You can override the destination location by passing in a -Ddest parameter: See similar questions...

How can I time my SQL statements in TCL?

FAQ
The TCL time or clock commands are useful for timing statements. More information is available in the documentation. See similar questions...

When are statements issued and mailed?

Marquette Bank
Statements on checking accounts are issued and mailed on a monthly basis. Statements on savings accounts are issued quarterly, unless there is activity for that month. In that case, it would be issued monthly. The date of statement issuance is determined by the account number, and maintained on a consistent basis while the account is open. See similar questions...

How often are statements for The Canada RSP issued?

Canada Savings Bonds
Statements of account will be issued by the Trustee on a semi-annual basis, as at June 30 and December 31. A confirmation will also be mailed to you by the 15th of the month following the date the RRSP was opened. See similar questions...

Can one call DDL statements from PL/SQL?

PL/SQL FAQ - Oracle FAQ
One 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). See similar questions...

How many SQL statements can I execute in one report processing?

PTReportGen FAQs - Report Generator for Microsoft PowerPoint
It is dependent on the license of PTReportGen you have purchased. For detailed information, see Licenses. See similar questions...

Can one use dynamic SQL statements from PL/SQL?

PL/SQL FAQ - Oracle FAQ
Starting 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.. See similar questions...

Can I find if hints are being used in the t-sql statements run on the SQL Server?

Other FAQs
Yes, run the "Query Optimizer" report. It will provide you with different statistics including the use of hints (i.e. table, join, plan, etc.) See similar questions...

Using DbUnit How to extract a flat XML dataset from my database?

DbUnit - Frequently Asked Questions
The following sample demonstrates how you can export one or many tables from a database to an flat XML dataset file. public class DatabaseExportSample { public static void main(String[] args) throws Exception { // database connection Class driverClass = Class.forName("org.hsqldb.jdbcDriver"); Connection jdbcConnection = DriverManager. See similar questions...

Can I integrate the existing SQL statements into the Scribe procedures?

Frequently Asked Questions
Direct 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. See similar questions...

How can I trace and/or profile SQL statements executed by OJB?

Frequently Asked Questions
OJB 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). See similar questions...

How can you help me tune resource intensive SQL Statements?

BEZ Systems: BEZProphet FAQ
In the BEZProphet generated analysis of database activity, the top 10 SQL statements are listed, base on the following three categories: The default is CPU consumption, but you can select the categories that are of interest to you. There are two views: a high-level pie chart that shows top 10 SQL statement contributions to CPU consumption; and I/O processing as a percentage of overall impact. Statement tuning recommendations provide links to the top 10 statement lists. See similar questions...

I'm having problems with apostrophies and SQL statements. What's going on?

ColdFusion FAQ
ColdFusion 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. See similar questions...

When and why are quotes needed in <CFQUERY> SQL statements?

CFFaq.com
All 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. See similar questions...

When I roll back an update routine, some sql statements are not rolled back. Why?

Database schema updater
There 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. See similar questions...

How can I administer SQL Server through SQL Server Enterprise Manager without using the mouse?

Frequently Asked Questions
Press SHIFT+F10 to perform a mouse right-click. For more information about keyboard shortcut keystrokes, see Accessibility for MMC in SQL Server Enterprise Manager Help. Right-click the server icon to change the setting that shows or hides system databases and system objects. Select Edit SQL Server Registration Properties, and then on the General tab, select Show system databases and system objects. See similar questions...

Explore Other Topics

How many times do you take blood?
Can one person be the sole shareholder in my company?
WHAT IS BODILY INJURY LIABILITY AND PROPERTY DAMAGE LIABILITY COVERAGE?
How long will my Hermit Crab live?
I have several dead spots in my lawn. How can I overseed these areas?
How can purple primer stains be removed?
How do I calculate bowling handicaps?
Question: Can you have facial waxing while using Retin-A?
Do I need a permit to just replace roof shingles?
Are Temporary Early Retirement Authority (TERA) retirees eligible?
What is the pinout of the J201?
More Questions >>

© Copyright 2007-2010 QueryCAT
About • Webmasters • Contact