Tutorial Database Testing using SQL
|
|
|
- Jayson Evans
- 9 years ago
- Views:
Transcription
1 Database Testing Tutorial using SQL Tutorial Database Testing using SQL 1. INTRODUCTION 1.1 Why back end testing is so important 1.2 Characteristics of back end testing 1.3 Back end testing phases 1.4 Back end test methods 2. STRUCTURAL BACK END TESTS 2.1 Database schema tests Databases and devices Tables, columns, column types, defaults, and rules Keys and indexes 2.2 Stored procedure tests Individual procedure tests Integration tests of procedures 2.3 Trigger tests Update triggers Insert triggers Delete triggers 2.4 Integration tests of SQL server 2.5 Server setup scripts 2.6 Common bugs 3. FUNCTIONAL BACK END TESTS 3.1 Dividing back end based on functionality 3.2 Checking data integrity and consistency 3.3 Login and user security Page 1 of 22
2 3.4 Stress Testing 3.5 Test back end via front end 3.6 Benchmark testing 3.7 Common bugs 4. NIGHTLY DOWNLOADING AND DISTRIBUTION 4.1 Batch jobs 4.2 Data downloading 4.3 Data conversion 4.4 Data distribution 4.5 Nightly time window 4.6 Common bugs 5. INTERFACES TO TRANSACTION APIS 5.1 APIs' queries to back end 5.2 Outputs of back end to APIs 5.3 Common bugs 6. OTHER TEST ISSUES 6.1 Test tips 6.2 Test tools 6.2 Useful queries 1. INTRODUCTION This document is to discuss general test specification issues for SQL server back end testing and to provide testers a test design guide that includes test methodology. Most systems, i.e. Forecast LRS, Delta, KENAI, KBATS and so on, that are developed by ITG have client-server architectures. However, only a few projects have their back end completely tested. 1.1 Why back end testing is so important A back end is the engine of any client/server system. If the back end malfunctions, it may cause system deadlock, data corruption, data loss and bad performance. Many front ends log on to a single SQL server. A bug in a back end may put serious impact on the whole system. Too many bugs in a back end will cost tremendous resources to find and fix bugs and Page 2 of 22
3 delay the system developments. It is very likely that many tests in a front end only hit a small portion of a back end. Many bugs in a back end cannot be easily discovered without direct testing. Back end testing has several advantages: The back end is no longer a "black box" to testers. We have full control of test coverage and depth. Many bugs can be effectively found and fixed in the early development stage. Take Forecast LRS as an example; the number of bugs in a back end was more than 30% of total number of bugs in the project. When back end bugs are fixed, the system quality is dramatically increased. 1.2 Differences between back end testing and front end testing It is not easier to understand and verify a back end than a front end because a front end usually has friendly and intuitive user interfaces. A back end has its own objects, such as, tables, stored procedures and triggers. Data integrity and protection is critical. Performance and multi-user support are big issues. Slowness in operation can be vital to the project s future. There are no sufficient tools for back end testing. SQL language is mainly a testing tool. MS Access and MS Excel can be used to verify data but they are not perfect for testing. However, there are a large number of test tools available for front end testing. To be able to do back end testing, a tester must have strong background in SQL server and SQL language. It is relatively difficult to find testers who understand both SQL server and SQL testing. This causes a shortage of back end testers. 1.3 Back end testing phases There are several phases in back end testing. The first step is to acquire design specifications for an SQL server. The second step is test specification design. The next step is to implement the tests in this design with SQL code. The test specification design should contain information concerning component testing (individual pieces of the system), regression testing (previously known bugs), integration testing (several pieces of the system put together), and then the entire system (which will include both front and back ends). Component testing will be done early in the development cycle. Integration and system tests (including interfaces to front ends and nightly processes) are performed after the component tests pass. Regression testing will be performed continuously throughout the project until it is finished. The back end usually does not have an independent beta test, as it only exercised by the front end during the beta test period. The last step is to deliver users a quality product. 1.4 Back end test methodology Back end test methodology has many things in common with front end testing and API testing. Many test methods can be used for back end testing. Structural testing and functional testing are more effective approaches in back end testing. They are overlapped in some test cases. However, the two methods may discover different bugs. We strongly recommend testers to do both types of testing. There are many other test methods that can be applied to back end testing. We list a few below. For other test methods, please check other test design references. Structural testing: Page 3 of 22
4 A back end can be broken down into a finite number of testable pieces based on a back end s structure. Tests will verify each and every object in a type of structure. Functional testing: A back end can be broken down into a finite number of testable pieces based on application s functionality. The test focus is on functionality of input and output but not on the implementation and structure. Different projects may have different ways to break down. Boundary testing: Many columns have boundary conditions. For example, in a column for percentages, the value cannot be less than zero and cannot be greater than 100%. We should find out these types of boundary conditions and test them. Stress testing: It involves subjecting a database to heavy loads. For incidence, many users heavily access the same table that has a large number of records. To simulate this situation, we need to start as many machines as possible and run the tests over and over. 2. STRUCTURAL BACK END TESTS Although not all databases are the same, there are a set of test areas that will be covered in all test specifications. Based on structure, a SQL database can be divided into three categories: database schema, stored procedures, and triggers. Schema includes database design, tables, table columns, column types, keys, indices, defaults, and rules. Stored procedures are constructed on the top of a SQL database. The front end talks to APIs in DLL. The APIs communicate a SQL database through those stored procedures. Triggers are a kind of stored procedures. They are the "last line of defense" to protect data when data is about to be inserted, updated or deleted. Figure 1. The structure of SQL back end 2.1 Database schema testing Test Coverage Criterion: EACH AND EVERY ITEM IN SCHEMA MUST BE TESTED AT LEAST ONCE Databases and devices Verify the following things and find out the differences between specification and actual databases Database names Data device, log device and dump device Enough space allocated for each database Database option setting (i.e. trunc. option) Tables, columns, column types, defaults, and rules Page 4 of 22
5 Verify the following things and find out the differences between specification and actual tables All table names Column names for each table Column types for each table (int, tinyint, varchar, char, text, datetime. specially the number of characters for char and varchar) Whether a column allows NULL or not Default definitions Whether a default is bound to correct table columns Rule definitions Whether a rule is bound to correct table columns Whether access privileges are granted to correct groups Keys and indexes, Verify the following things and compare them with design specification Primary key for each table (every table should have a primary key) Foreign keys Column data types between a foreign key column and a column in other table Indices, clustered or nonclustered; unique or not unique 2.2 Stored procedure tests Test Coverage Criterion: EACH AND EVERY STORED PROCEDURE MUST BE TESTED AT LEAST ONCE Individual procedure tests Verify the following things and compare them with design specification Whether a stored procedure is installed in a database Page 5 of 22
6 Stored procedure name Parameter names, parameter types and the number of parameters Outputs: When output is zero (zero row affected) When some records are extracted Output contains many records What a stored procedure is supposed to do What a stored procedure is not supposed to do Write simple queries to see if a stored procedure populates right data Parameters: Check parameters if they are required. Call stored procedures with valid data Call procedures with boundary data Make each parameter invalid a time and run a procedure Return values: Whether a stored procedure returns values When a failure occurs, nonzero must be returned. Error messages: Make stored procedure fail and cause every error message to occur at least once Find out any exception that doesn t have a predefined error message Others: Whether a stored procedure grants correct access privilege to a group/user See if a stored procedure hits any trigger error, index error, and rule error Look into a procedure code and make sure major branches are test covered. Page 6 of 22
7 2.2.2 Integration tests of procedures Group related stored procedures together. Call them in particular order If there are many sequences to call a group of procedures, find out equivalent classes and run tests to cover every class. Make invalid calling sequence and run a group of stored procedures. Design several test sequences in which end users are likely to do business and do stress tests 2.3 Trigger tests Test Coverage Criterion: EACH AND EVERY TRIGGER AND TRIGGER ERROR MUST BE TESTED AT LEAST ONCE Updating triggers Verify the following things and compare them with design specification Make sure trigger name spelling is correct See if a trigger is generated for a specific table column Trigger s update validation Update a record with a valid data Update a record, a trigger prevents, with invalid data and cover every trigger error Update a record when it is still referenced by a row in other table Make sure rolling back transactions when a failure occurs Find out any case in which a trigger is not supposed to roll back transactions Inserting triggers Verify the following things and compare them with design specification Make sure trigger name spelling Page 7 of 22
8 See if a trigger is generated for a specific table column Trigger s insertion validation Insert a record with a valid data Insert a record, a trigger prevents, with invalid data and cover every trigger error Try to insert a record that already exists in a table Make sure rolling back transactions when an insertion failure occurs Find out any case in which a trigger should roll back transactions Find out any failure in which a trigger should not roll back transactions Conflicts between a trigger and a stored procedure/rules (i.e. a column allows NULL while a trigger doesn t) Deleting triggers Verify the following things and compare them with design specification Make sure trigger name spelling See if a trigger is generated for a specific table column Trigger s deletion validation Delete a record Delete a record when it is still referenced by a row in other table Every trigger error Try to delete a record that does not exists in a table Make sure rolling back transactions when a deletion fails Find out any case in which a trigger should roll back transactions Find out any failure in which a trigger should not roll back transactions Conflicts between a trigger and a stored procedure/rules (i.e. a column allows NULL while a trigger doesn t) Page 8 of 22
9 2.4 Integration tests of SQL server Integration tests should be performed after the above component testing is done. It should call stored procedures intensively to select, update, insert and delete records in different tables and different sequences. The main purpose is to see any conflicts and incompatibility. Conflicts between schema and triggers Conflicts between stored procedures and schema Conflicts between stored procedures and triggers 2.5 Server setup scripts Two cases must be tests: One is to set up databases from scratch and the other to set up databases when they already exist. Below is the minimum list of areas: Is a setup batch job available to run without much operator s assistance (It is not acceptable if it requires an operator to run many batch jobs manually) Work environment the setup needs to run (DOS, NT) Environment variables (i.e. is %svr% defined?) Time it takes to set up Set up databases from scratch. Set up from existing databases Set up log and failure messages After setup, check for Databases Tables Tables attachments (Keys, indexes, rules, defaults, column names and column types) Triggers Stored procedures Look up data User access privileges Page 9 of 22
10 3. FUNCTIONAL BACK END TESTS Functional tests more focus on functionality and features of a back end. Test cases can be different from project to project. But many projects have things in common. The following section discusses the common areas. We encourage testers to add project-specific test cases in the functional test design. 3.1 How to divide back end on function basis It is not a good idea to test a server database as a single entity at initial stage. We have to divide it into functional modules. If we cannot do the partition, either we do not know that project deep enough or the design is not modulized well. How to divide a server database is largely dependent on features of a particular project. METHOD 1: We may ask ourselves what the features of a project are. For each major feature, pick up portion of schema, triggers and stored procedures that implement the function and make them into a functional group. Each group can be tested together. For example, the Forecast LRS project had four services: forecast, product lite, reporting, and system. This was the key for functional partitioning: Figure 2. View a SQL server pertaining to the functionality METHOD 2: If the border of functional groups in a back end is not obvious, we may watch data flow and see where we can check the data: Start from the front end. When a service has a request or saves data, some stored procedures will get called. The procedures will update some tables. Those stored procedures will be the place to start testing and those tables will be the place to check test results. 3.1 Test functions and features Test Coverage Criterion: EACH AND EVERY FUNCTION OR FEATURE MUST BE TESTED AT LEAST ONCE The following areas should be tested: Every feature no matter major or minor For updating functions, make sure data is updated following application rules For insertion functions, make sure data is inserted following application rules For deletion functions, make sure data is deleted correctly Think about if those functions make any sense to us. Find out nonsense, invalid logic, and any bugs. Check for malfunctioning Check for interoperations Error detection Error handling Page 10 of 22
11 See if error messages are clear and right. Find out time-consuming features and provide suggestions to developers 3.2 Checking data integrity and consistency This is a really important issue. If a project does not guarantee data integrity and consistency, we have obligation to ask for redesign. We have to check the minimum things below: Find out data protection mechanisms for a project and evaluate them to see if they are secure Data validation before insertion, updating and deletion. Triggers must be in place to validate reference table records Check major columns in each table and see if any weird data exist. (Nonprintable characters in name field, negative percentage, and negative number of PSS phone calls per month, empty product and so on) occurs Generate inconsistent data and insert them into relevant tables and see if any Try to insert a child data before inserting its parent s data. Try to delete a record that is still referenced by data in other table If a data in a table is updated, check whether other relevant data is updated as well. Make sure replicated servers or databases are on sync and contain consistent information failure 3.3 Login and user security The following things need to be checked: validation SQL user login (user id, password, host name) NT server login Database access privilege (the sysusers table) Page 11 of 22
12 Database security hierarchy Table access privilege (if select is allowed.) Table data access control Training account (maybe no password is required) There are more test cases here: Simulate front end login procedure and check if a user with correct login information can login Simulate front end login procedure and check if a user with incorrect login information fail to login Check concurrent logins (make many users login at the same time.) Try to login when a time-consuming query is running to see how long login will take to succeed Check for any security-restrict functions and see they are working properly See any data view restriction in place, such as, a user can see his data and the data of people who report to him. 3.4 Stress Testing We should do stress tests on major functionality. Get a list of major back end functions/features for a project. Find out corresponding stored procedures and do the following things: Test Coverage Criterion: EACH AND EVERY MAJOR FUNCTION OR FEATURE MUST BE INCLUDED IN STRESS TESTING Write test scripts to try those functions in random order but every function must be addressed at least once in a full cycle. Run test scripts over and over for a reasonable period Make sure log execution results and errors. Analyze log files and look for any deadlock, failure out of memory, data corruption, or nothing changed. 3.5 Test a back end via a front end Sometimes back end bugs can be found by front end testing, specially data problem. The Page 12 of 22
13 following are minimum test cases: Make queries from a front end and issue the searches (It hits SELECT statements or query procedures in a back end) Pick up an existing record, change values in some fields and save the record. (It involves UPDATE statement or update stored procedures, update triggers.) Push FILE - NEW menu item or the NEW button in a front end window. Fill in information and save the record. (It involves INSERT statements or insertion stored procedures, deletion triggers.) Pick up an existing record, click on the DELETE or REMOVE button, and confirm the deletion. (It involves DELETE statement or deletion stored procedures, deletion triggers.) Repeat the first three test cases with invalid data and see how the back end handles them. 3.6 Benchmark testing Test Coverage Criterion: EACH AND EVERY FUNCTION OR FEATURE MUST BE INCLUDED IN BENCHMARK TESTING When a system does not have data problems or user interface bugs, system performance will get much attention. The bad system performance can be found in benchmark testing. Four issues must be included: System level performance Major functionality (Pick up most-likely-used functions/features) Timing and statistics (Minimal time, maximal time and average time) Access volume (A large number of machines and sessions must be involved.) 3.7 Common bugs (To be filled in) 4. NIGHTLY DOWNLOADING AND DISTRIBUTION This part is usually developed by an operation team. It did not get enough attention a long time Page 13 of 22
14 ago. However, after we deliver a product, end users must live with nightly process every daily. Bugs in nightly job put serious impact on users daily work. Loss or corruption of customer data can be severe. We strongly recommend testers to intensively test nightly downloading and distribution, particularly error detection and reporting. 4.1 Batch jobs By batch job, We mean batch jobs for Windows NT, DOS or OS/2. called by a batch job will be discussed in next three sections. ) (The SQL scripts that are Test Coverage Criterion: EACH AND EVERY BATCH JOB MUST BE TESTED AT LEAST ONCE Here are the minimum list of test cases: File transfer batch job: Destination path and source path All variables in a batch job must be resolved (i.e. if %log% is used, the log must be defined somewhere either in the same in other system setup utility.) file or Make sure source files and their names are correct as specified. Make sure destination files and their names are correct as specified. Verify if any error level is checked after each file copy. Error messages must be logged. Fatal errors must be sent to operators or testers. Verify the database has the bulk copy option set to true before a batch job is executed Get estimate of total batch execution time. Make sure it fits the time window (specially the worst case) BCP batch job: Make sure dbnmpipe.exe is automatically loaded and bcp.exe/isql.exe are on the system path Check for pass-in parameters %1, %2,... to a batch job Make sure a table truncation script must be run before bcp in to those tables Make sure database name, bcp in file name/bcp out file name, and options /S, /U, /P, /c and /b Verify if any error level is checked after each bcp command. Page 14 of 22
15 Failure should be logged. Fatal failure should be sent to operators or testers immediately Batch file jobs that launch SQL scripts: Make sure dbnmpipe.exe is automatically loaded and isql.exe are on the system path Check for pass-in parameters %1, %2,... to a batch job Make sure all required SQL files and their names, options /S, /U, /P Verify if any error level is checked after each launching Failure should be logged. Fatal failure should be sent to operators or testers immediately 4.2 Data downloading In most cases, downloading is not just bcp in to a database. Data format change and calculations may happen. Test Coverage Criterion: EACH AND EVERY SCRIPT MUST BE TESTED AT LEAST ONCE We have to check the following areas: Network connection status. Failure handling. Input data must be validated before a batch job inserts/updates a database (Invalid data must be filtered out, i.e. NULLs in critical fields, negative values, numbers) too big Input data populated to right tables Calculations must follow business rules Check if data is really changed after data downloading See if two columns of data are mistakenly exchanged (i.e. product_id data and productgroup_id data are reversed when inserted) Check if any data is unexpectedly changed or deleted See what happens if database objects do not exist when downloading starts 4.3 Data conversion The goals of many ITG projects are moving end users from existing VAX systems into PC platform systems. One of important steps is to convert old data into new systems. Data conversion is Page 15 of 22
16 required. Test Coverage Criterion: EACH AND EVERY SCRIPT MUST BE TESTED AT LEAST ONCE We list several checking items here: For each script, check for syntax error (Running a script is an easiest way to find out) For each script, check for table mapping, column mapping, and data type mapping Verify lookup data mapping Run each script when records do not exist in destination tables Run each script when records already exist in destination tables Make sure the execution sequence of scripts is correct (i.e. Look up data must be converted first before conversions) Look for any scripts that encounter index error or trigger errors (i.e. error attempt to insert unique index row.) Make sure a major transaction statement is followed by error checking 0 Look for any script that causes error out of memory at run time Check for any scripts that take too long to run for reasonable size of records. If it is the case, suggest developers to optimize scripts. Make sure begin tran and commit tran are in scripts If a failure occurs, transactions in a block after begin tran should be rolled back 4.4 Data distribution There are two kinds of data distribution: One kind is to send replicated data to other SQL servers across LAN and WAN and keep them in sync. The other distribution is to pass information to other kinds of systems. Header information and data need converting. For example, KBATS article editing system nightly sends articles to Knowledge base server and to external system like CompuServe. Here is a minimum checking list: Test Coverage Criterion: EACH AND EVERY FEATURE MUST BE TESTED AT LEAST ONCE For data replication: Page 16 of 22
17 Make sure every job extracts right updates from a SQL server Look for any new records that are missing in distribution data set Make sure data overwriting works correct Make sure sequences of data updates in destination servers Run distribution utility when new updates need to be distributed Run distribution utility when many changes are made Verify data loss handling mechanism for LAN or WAN environment Verify distribution mechanism when a network is down Verify error handling when a destination server is down Verify error handling when a source server is down Check if failures can be automatically recovered or can be recovered from next run For data conversion distribution: Make sure every job extracts right data from a SQL server Look for any new records that are missing in distribution data set Make sure table mapping, column mapping, data type mapping, file format changes, and header changes Make sure data is converted to fit other systems Make sure data overwriting works correct Make sure sequences of data updates in destination servers Run distribution utility when new updates need to be distributed Run distribution utility when many changes are made Verify data loss handling mechanism in LAN or WAN Verify distribution mechanism when a network is down Verify error handling when a destination server is down Page 17 of 22
18 Verify error handling when a source server is down Check if failures can be automatically recovered or can be recovered from next run 4.6 Common bugs (To be filled in soon) 5. INTERFACES TO TRANSACTION APIS By Transaction API, we mean those APIs that are specially designed for our projects to handle communications between a front end and a back end. Those APIs are not part of SQL DBLIB or ODBC. Although they do not belong to a back end, we have to test their interfaces to back end. Figure 3. Connections between a front end and a back end 5.1 Connections to a SQL server database Make sure transaction APIs can open connections to a SQL server Verify APIs are able to send queries to a SQL server and retrieve data Unplug net cable and see if APIs can detect it Stop a SQL server and call APIs to make connection Stop a SQL server in the middle of transaction 5.2 Send queries to a back end Call each API that sends queries to a back end Make sure APIs call right stored procedures Verify parameters in stored procedure calls Make sure APIs should call stored procedures to access a SQL server. It is not recommended to send a simple query like SELECT... FROM... WHERE Receive output from a back end For every API, try a query with no row returned For every API, try more than one row returned For major API, try to have many rows returned Disconnect in the middle of transactions and check error detection Make sure an API always checks the return value of a stored procedure Page 18 of 22
19 When a failure occurs, an API should receives value nonzero 5.4 Common bugs (To be filled in soon) 6. OTHER TEST ISSUES 6.1 Test tips No program is bug free. If you have been doing tests for several days and do not find any bugs, our test methods or test data might be wrong. You should at least have some suggestions for developers. The Break-Program attitude is highly recommended. If you don t break it now, end users will break it later. There are a huge number of test cases. Always ask yourselves if any test case is missing and if our test specifications are complete. When you design test specification, think about valid cases, invalid cases and boundary cases Effective test methodology is neither unique nor universal. Feel free to discuss the test plan, test specifications and test data with other testers. When testing, you should pretend to be different levels of users. As power users, you can test advanced features heavily. As novices, you can do stupid things, i.e. turn off the machine in the middle of a transaction. If you suspect any result or message, go ahead and track it down. You may have found a big bug. Before you log a bug into Raid, find out the minimal steps to reproduce it. If you can not reproduce a bug, make a note and try it next time. If a developer resolves a major bug as By-Design, but you think it is crucial to fix, try to convince the developer and your test lead. If you can track a bug down to a code level, do it. You will learn something new from bug tracking If a test is likely to be repeated later, automate it. A good programmer may not be a good tester. Be proud of your ability to find Page 19 of 22
20 bugs. 6.2 Test tools You are an important part of product development. You help to ensure the high quality of ITG products. As mentioned earlier in this document, there are not many good tools for back end testing. But some utilities can be used. SQL language: Write test scripts to call stored procedures, retrieve data, insert/update/delete records. Most back end test work can be done with the SQL language NT SQL utilities: DOS utilities like isql.exe, bcp.exe Windows applications such as WinQuery, ISQL/w, SQL Administration, SQL Manager, SQL Client Configuration Utility Object MSAccess: We may take advantage of MSAccess s tables, queries, forms, reports, macros modules. and Excel: MSQuery and Q+E are useful for data validation Our own test tools: Several test tools have been developed. For example, stored procedures to log passed/failed for each test and to present test statistics. Contact MinF for those tools. 6.2 Useful queries with. To facilitate testing, we post some useful queries here. They are just something good to start Check for data devices and log devices: sp_helpdb <database_name> Check for space used: sp_spaceused <database_name> Get information about an object in a database: Page 20 of 22
21 sp_help <object_name> where <object_name> can be a table name, trigger name, stored procedure name and so on. Get trigger code, procedure code, or view code, do: sp_helptext <object_name> Find out who is on system, whose host name and other information: sp_who Change database: user <destination database_name> Find out existence of SQL objects by type: select * from sysobjects where type = <type> where <type> can be U User table V View P Stored procedure TR Trigger Count the numbers of records in individual user tables: select "print '"+name+"' select count(*) from "+name+" go" from sysobjects where type = U Note: this statement does do count(). It outputs a script that does count. Generate invalid test data: int /* Generate an invalid customer company id. */ = MAX (customercompanyid) + 1 from customercompany Make a name unique and general using SUSER_NAME(): Page 21 of 22
22 varchar(40) companyname = SUSER_NAME() + S TEST COMPANY The following code is to go through every record in a table and put a number company name: after a varchar(40) = 1 = MIN(companyname) from customercompany /* Change companyname */ begin /* Update a companyname */ update customercompany set companyname = companyname + where companyname /* Pick up next companyname */ = MIN(companyname) from customercompany where companyname end Page 22 of 22
ODBC Client Driver Help. 2015 Kepware, Inc.
2015 Kepware, Inc. 2 Table of Contents Table of Contents 2 4 Overview 4 External Dependencies 4 Driver Setup 5 Data Source Settings 5 Data Source Setup 6 Data Source Access Methods 13 Fixed Table 14 Table
TestManager Administration Guide
TestManager Administration Guide RedRat Ltd July 2015 For TestManager Version 4.57-1 - Contents 1. Introduction... 3 2. TestManager Setup Overview... 3 3. TestManager Roles... 4 4. Connection to the TestManager
DbSchema Tutorial with Introduction in SQL Databases
DbSchema Tutorial with Introduction in SQL Databases Contents Connect to the Database and Create First Tables... 2 Create Foreign Keys... 7 Create Indexes... 9 Generate Random Data... 11 Relational Data
Setting Up ALERE with Client/Server Data
Setting Up ALERE with Client/Server Data TIW Technology, Inc. November 2014 ALERE is a registered trademark of TIW Technology, Inc. The following are registered trademarks or trademarks: FoxPro, SQL Server,
news from Tom Bacon about Monday's lecture
ECRIC news from Tom Bacon about Monday's lecture I won't be at the lecture on Monday due to the work swamp. The plan is still to try and get into the data centre in two weeks time and do the next migration,
How to test and debug an ASP.NET application
Chapter 4 How to test and debug an ASP.NET application 113 4 How to test and debug an ASP.NET application If you ve done much programming, you know that testing and debugging are often the most difficult
Chapter-15 -------------------------------------------- Replication in SQL Server
Important Terminologies: What is Replication? Replication is the process where data is copied between databases on the same server or different servers connected by LANs, WANs, or the Internet. Microsoft
State of Michigan Data Exchange Gateway. Web-Interface Users Guide 12-07-2009
State of Michigan Data Exchange Gateway Web-Interface Users Guide 12-07-2009 Page 1 of 21 Revision History: Revision # Date Author Change: 1 8-14-2009 Mattingly Original Release 1.1 8-31-2009 MM Pgs 4,
Performance Tuning for the Teradata Database
Performance Tuning for the Teradata Database Matthew W Froemsdorf Teradata Partner Engineering and Technical Consulting - i - Document Changes Rev. Date Section Comment 1.0 2010-10-26 All Initial document
How To Understand The Error Codes On A Crystal Reports Print Engine
Overview Error Codes This document lists all the error codes and the descriptions that the Crystal Reports Print Engine generates. PE_ERR_NOTENOUGHMEMORY (500) There is not enough memory available to complete
ICE for Eclipse. Release 9.0.1
ICE for Eclipse Release 9.0.1 Disclaimer This document is for informational purposes only and is subject to change without notice. This document and its contents, including the viewpoints, dates and functional
SQL Server An Overview
SQL Server An Overview SQL Server Microsoft SQL Server is designed to work effectively in a number of environments: As a two-tier or multi-tier client/server database system As a desktop database system
Smarter Balanced Assessment Consortium. Recommendation
Smarter Balanced Assessment Consortium Recommendation Smarter Balanced Quality Assurance Approach Recommendation for the Smarter Balanced Assessment Consortium 20 July 2012 Summary When this document was
Guide to Upsizing from Access to SQL Server
Guide to Upsizing from Access to SQL Server An introduction to the issues involved in upsizing an application from Microsoft Access to SQL Server January 2003 Aztec Computing 1 Why Should I Consider Upsizing
Simba Apache Cassandra ODBC Driver
Simba Apache Cassandra ODBC Driver with SQL Connector 2.2.0 Released 2015-11-13 These release notes provide details of enhancements, features, and known issues in Simba Apache Cassandra ODBC Driver with
How To Backup A Database In Navision
Making Database Backups in Microsoft Business Solutions Navision MAKING DATABASE BACKUPS IN MICROSOFT BUSINESS SOLUTIONS NAVISION DISCLAIMER This material is for informational purposes only. Microsoft
Oracle Database 10g Express
Oracle Database 10g Express This tutorial prepares the Oracle Database 10g Express Edition Developer to perform common development and administrative tasks of Oracle Database 10g Express Edition. Objectives
SQL Server Instance-Level Benchmarks with DVDStore
SQL Server Instance-Level Benchmarks with DVDStore Dell developed a synthetic benchmark tool back that can run benchmark tests against SQL Server, Oracle, MySQL, and PostgreSQL installations. It is open-sourced
Central and Remote Users Guide
Central and Remote Users Guide Proprietary Rights Notice 1985-2006 IDEXX Laboratories, Inc. All rights reserved. Information in this document is subject to change without notice. Practice names, doctors,
Vault Project - Plant Database Replication. Contents. Software Requirements: AutoCAD Plant 3D 2016 and AutoCAD P&ID 2016
Vault Project - Plant Database Replication This document describes how to replicate the plant database for a vault project between WAN connected locations. By replicating both the vault and the plant database
Type Message Description Probable Cause Suggested Action. Fan in the system is not functioning or room temperature
Table of Content Error Messages List... 2 Troubleshooting the Storage System... 3 I can t access the Manager... 3 I forgot the password for logging in to the Manager... 3 The users can t access the shared
Errors That Can Occur When You re Running a Report From Tigerpaw s SQL-based System (Version 9 and Above) Modified 10/2/2008
Errors That Can Occur When You re Running a Report From Tigerpaw s SQL-based System (Version 9 and Above) Modified 10/2/2008 1 Introduction The following is an explanation of some errors you might encounter
Rational Rational ClearQuest
Rational Rational ClearQuest Version 7.0 Windows Using Project Tracker GI11-6377-00 Rational Rational ClearQuest Version 7.0 Windows Using Project Tracker GI11-6377-00 Before using this information, be
Managing Users and Identity Stores
CHAPTER 8 Overview ACS manages your network devices and other ACS clients by using the ACS network resource repositories and identity stores. When a host connects to the network through ACS requesting
v4.8 Getting Started Guide: Using SpatialWare with MapInfo Professional for Microsoft SQL Server
v4.8 Getting Started Guide: Using SpatialWare with MapInfo Professional for Microsoft SQL Server Information in this document is subject to change without notice and does not represent a commitment on
Basic Unix/Linux 1. Software Testing Interview Prep
Basic Unix/Linux 1 Programming Fundamentals and Concepts 2 1. What is the difference between web application and client server application? Client server application is designed typically to work in a
Vector HelpDesk - Administrator s Guide
Vector HelpDesk - Administrator s Guide Vector HelpDesk - Administrator s Guide Configuring and Maintaining Vector HelpDesk version 5.6 Vector HelpDesk - Administrator s Guide Copyright Vector Networks
National Fire Incident Reporting System (NFIRS 5.0) Configuration Tool User's Guide
National Fire Incident Reporting System (NFIRS 5.0) Configuration Tool User's Guide NFIRS 5.0 Software Version 5.6 1/7/2009 Department of Homeland Security Federal Emergency Management Agency United States
HP Quality Center. Upgrade Preparation Guide
HP Quality Center Upgrade Preparation Guide Document Release Date: November 2008 Software Release Date: November 2008 Legal Notices Warranty The only warranties for HP products and services are set forth
SQL Server. SQL Server 100 Most Asked Questions: Best Practices guide to managing, mining, building and developing SQL Server databases
SQL Server SQL Server 100 Most Asked Questions: Best Practices guide to managing, mining, building and developing SQL Server databases SQL Server 100 Success Secrets Copyright 2008 Notice of rights All
ACCESS 2007. Importing and Exporting Data Files. Information Technology. MS Access 2007 Users Guide. IT Training & Development (818) 677-1700
Information Technology MS Access 2007 Users Guide ACCESS 2007 Importing and Exporting Data Files IT Training & Development (818) 677-1700 [email protected] TABLE OF CONTENTS Introduction... 1 Import Excel
Using SQL Server Management Studio
Using SQL Server Management Studio Microsoft SQL Server Management Studio 2005 is a graphical tool for database designer or programmer. With SQL Server Management Studio 2005 you can: Create databases
FileMaker 14. ODBC and JDBC Guide
FileMaker 14 ODBC and JDBC Guide 2004 2015 FileMaker, Inc. All Rights Reserved. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker and FileMaker Go are trademarks of FileMaker,
Table of Contents SQL Server Option
Table of Contents SQL Server Option STEP 1 Install BPMS 1 STEP 2a New Customers with SQL Server Database 2 STEP 2b Restore SQL DB Upsized by BPMS Support 6 STEP 2c - Run the "Check Dates" Utility 7 STEP
CB Linked Server for Enterprise Applications
CB Linked Server for Enterprise Applications Document History Version Date Author Changes 1.0 24 Mar 2016 Sherif Kenawy Creation 2.0 29 Mar 2016 Sherif Kenawy Modified Introduction & conclusion 2.1 29
How To Test Your Web Site On Wapt On A Pc Or Mac Or Mac (Or Mac) On A Mac Or Ipad Or Ipa (Or Ipa) On Pc Or Ipam (Or Pc Or Pc) On An Ip
Load testing with WAPT: Quick Start Guide This document describes step by step how to create a simple typical test for a web application, execute it and interpret the results. A brief insight is provided
ODBC Driver Version 4 Manual
ODBC Driver Version 4 Manual Revision Date 12/05/2007 HanDBase is a Registered Trademark of DDH Software, Inc. All information contained in this manual and all software applications mentioned in this manual
Sage Intelligence Financial Reporting for Sage ERP X3 Version 6.5 Installation Guide
Sage Intelligence Financial Reporting for Sage ERP X3 Version 6.5 Installation Guide Table of Contents TABLE OF CONTENTS... 3 1.0 INTRODUCTION... 1 1.1 HOW TO USE THIS GUIDE... 1 1.2 TOPIC SUMMARY...
QAD Enterprise Applications. Training Guide Demand Management 6.1 Technical Training
QAD Enterprise Applications Training Guide Demand Management 6.1 Technical Training 70-3248-6.1 QAD Enterprise Applications February 2012 This document contains proprietary information that is protected
Report on the Train Ticketing System
Report on the Train Ticketing System Author: Zaobo He, Bing Jiang, Zhuojun Duan 1.Introduction... 2 1.1 Intentions... 2 1.2 Background... 2 2. Overview of the Tasks... 3 2.1 Modules of the system... 3
Business Intelligence Tutorial
IBM DB2 Universal Database Business Intelligence Tutorial Version 7 IBM DB2 Universal Database Business Intelligence Tutorial Version 7 Before using this information and the product it supports, be sure
Bitrix Site Manager 4.0. Quick Start Guide to Newsletters and Subscriptions
Bitrix Site Manager 4.0 Quick Start Guide to Newsletters and Subscriptions Contents PREFACE...3 CONFIGURING THE MODULE...4 SETTING UP FOR MANUAL SENDING E-MAIL MESSAGES...6 Creating a newsletter...6 Providing
MAS 500 Intelligence Tips and Tricks Booklet Vol. 1
MAS 500 Intelligence Tips and Tricks Booklet Vol. 1 1 Contents Accessing the Sage MAS Intelligence Reports... 3 Copying, Pasting and Renaming Reports... 4 To create a new report from an existing report...
Nortel Networks Symposium Call Center Server Symposium Database Integration User s Guide
297-2183-911 Nortel Networks Symposium Call Center Server Symposium Database Integration User s Guide Product release 5.0 Standard 1.0 April 2004 Nortel Networks Symposium Call Center Server Symposium
USING MYWEBSQL FIGURE 1: FIRST AUTHENTICATION LAYER (ENTER YOUR REGULAR SIMMONS USERNAME AND PASSWORD)
USING MYWEBSQL MyWebSQL is a database web administration tool that will be used during LIS 458 & CS 333. This document will provide the basic steps for you to become familiar with the application. 1. To
WINDOWS AZURE SQL DATA SYNC
WINDOWS AZURE SQL DATA SYNC BY HERVE ROGGERO INTRODUCTION One of the most important aspects of cloud adoption with companies that depend on data integration is the ability to synchronize cloud data resources
1 Download & Installation... 4. 1 Usernames and... Passwords
Contents I Table of Contents Part I Document Overview 2 Part II Document Details 3 Part III EventSentry Setup 4 1 Download & Installation... 4 Part IV Configuration 4 1 Usernames and... Passwords 5 2 Network...
Revolutionized DB2 Test Data Management
Revolutionized DB2 Test Data Management TestBase's Patented Slice Feature Provides a Fresh Solution to an Old Set of DB2 Application Testing Problems The challenge in creating realistic representative
Configuring and Integrating Oracle
Configuring and Integrating Oracle The Basics of Oracle 3 Configuring SAM to Monitor an Oracle Database Server 4 This document includes basic information about Oracle and its role with SolarWinds SAM Adding
Project management integrated into Outlook
Project management integrated into Outlook InLoox PM 7.x off-line operation An InLoox Whitepaper Published: October 2011 Copyright: 2011 InLoox GmbH. You can find up-to-date information at http://www.inloox.com
911207 Amman 11191 Jordan e-mail: [email protected] Mob: +962 79 999 65 85 Tel: +962 6 401 5565
1 Dynamics GP Excel Paste Installation and deployment guide 2 DISCLAIMER STATEMENT All the information presented in this document is the sole intellectual property of Dynamics Innovations IT Solutions.
Toad for Data Analysts, Tips n Tricks
Toad for Data Analysts, Tips n Tricks or Things Everyone Should Know about TDA Just what is Toad for Data Analysts? Toad is a brand at Quest. We have several tools that have been built explicitly for developers
VirtualCenter Database Maintenance VirtualCenter 2.0.x and Microsoft SQL Server
Technical Note VirtualCenter Database Maintenance VirtualCenter 2.0.x and Microsoft SQL Server This document discusses ways to maintain the VirtualCenter database for increased performance and manageability.
Registry Tuner. Software Manual
Registry Tuner Software Manual Table of Contents Introduction 1 System Requirements 2 Frequently Asked Questions 3 Using the Lavasoft Registry Tuner 5 Scan and Fix Registry Errors 7 Optimize Registry
What Is Specific in Load Testing?
What Is Specific in Load Testing? Testing of multi-user applications under realistic and stress loads is really the only way to ensure appropriate performance and reliability in production. Load testing
Developing Web Applications for Microsoft SQL Server Databases - What you need to know
Developing Web Applications for Microsoft SQL Server Databases - What you need to know ATEC2008 Conference Session Description Alpha Five s web components simplify working with SQL databases, but what
D61830GC30. MySQL for Developers. Summary. Introduction. Prerequisites. At Course completion After completing this course, students will be able to:
D61830GC30 for Developers Summary Duration Vendor Audience 5 Days Oracle Database Administrators, Developers, Web Administrators Level Technology Professional Oracle 5.6 Delivery Method Instructor-led
MS SQL Performance (Tuning) Best Practices:
MS SQL Performance (Tuning) Best Practices: 1. Don t share the SQL server hardware with other services If other workloads are running on the same server where SQL Server is running, memory and other hardware
Visual Studio.NET Database Projects
Visual Studio.NET Database Projects CHAPTER 8 IN THIS CHAPTER Creating a Database Project 294 Database References 296 Scripts 297 Queries 312 293 294 Visual Studio.NET Database Projects The database project
SnapLogic Salesforce Snap Reference
SnapLogic Salesforce Snap Reference Document Release: October 2012 SnapLogic, Inc. 71 East Third Avenue San Mateo, California 94401 U.S.A. www.snaplogic.com Copyright Information 2012 SnapLogic, Inc. All
ETL-EXTRACT, TRANSFORM & LOAD TESTING
ETL-EXTRACT, TRANSFORM & LOAD TESTING Rajesh Popli Manager (Quality), Nagarro Software Pvt. Ltd., Gurgaon, INDIA [email protected] ABSTRACT Data is most important part in any organization. Data
Configuring SQL Server Lock (Block) Monitoring With Sentry-go Quick & Plus! monitors
Configuring SQL Server Lock (Block) Monitoring With Sentry-go Quick & Plus! monitors 3Ds (UK) Limited, November, 2013 http://www.sentry-go.com Be Proactive, Not Reactive! To allow for secure concurrent
Vladimir Bakhov AT-Consulting [email protected] +7 (905) 7165446
Vladimir Bakhov AT-Consulting [email protected] +7 (905) 7165446 Svetlana Panfilova AT-Consulting [email protected] +7 (903) 1696490 Google group for this presentation is vobaks Source
Kaseya 2. User Guide. Version 1.1
Kaseya 2 Directory Services User Guide Version 1.1 September 10, 2011 About Kaseya Kaseya is a global provider of IT automation software for IT Solution Providers and Public and Private Sector IT organizations.
Version of this tutorial: 1.06a (this tutorial will going to evolve with versions of NWNX4)
Version of this tutorial: 1.06a (this tutorial will going to evolve with versions of NWNX4) The purpose of this document is to help a beginner to install all the elements necessary to use NWNX4. Throughout
CommonSpot Content Server Version 6.2 Release Notes
CommonSpot Content Server Version 6.2 Release Notes Copyright 1998-2011 PaperThin, Inc. All rights reserved. About this Document CommonSpot version 6.2 updates the recent 6.1 release with: Enhancements
IBM Sterling Control Center
IBM Sterling Control Center System Administration Guide Version 5.3 This edition applies to the 5.3 Version of IBM Sterling Control Center and to all subsequent releases and modifications until otherwise
MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC
MyOra 3.0 SQL Tool for Oracle User Guide Jayam Systems, LLC Contents Features... 4 Connecting to the Database... 5 Login... 5 Login History... 6 Connection Indicator... 6 Closing the Connection... 7 SQL
Unit Testing Scenario and Sample Unit Test Plan
Unit Testing Scenario and Sample Unit Test Plan Version 2.3 May 1999 The following example follows one portion of an application from specification to turning the code over to Quality Assurance. In each
EVENT LOG MANAGEMENT...
Event Log Management EVENT LOG MANAGEMENT... 1 Overview... 1 Application Event Logs... 3 Security Event Logs... 3 System Event Logs... 3 Other Event Logs... 4 Windows Update Event Logs... 6 Syslog... 6
Using Microsoft SQL Server A Brief Help Sheet for CMPT 354
Using Microsoft SQL Server A Brief Help Sheet for CMPT 354 1. Getting Started To Logon to Windows NT: (1) Press Ctrl+Alt+Delete. (2) Input your user id (the same as your Campus Network user id) and password
Teamstudio USER GUIDE
Teamstudio Software Engineering Tools for IBM Lotus Notes and Domino USER GUIDE Edition 30 Copyright Notice This User Guide documents the entire Teamstudio product suite, including: Teamstudio Analyzer
INTEGRATING MICROSOFT DYNAMICS CRM WITH SIMEGO DS3
INTEGRATING MICROSOFT DYNAMICS CRM WITH SIMEGO DS3 Often the most compelling way to introduce yourself to a software product is to try deliver value as soon as possible. Simego DS3 is designed to get you
mylittleadmin for MS SQL Server Quick Start Guide
mylittleadmin for MS SQL Server Quick Start Guide version 3.5 1/25 CONTENT 1 OVERVIEW... 3 2 WHAT YOU WILL LEARN... 3 3 INSTALLATION AND CONFIGURATION... 3 4 BASIC NAVIGATION... 4 4.1. Connection 4 4.2.
BrightStor ARCserve Backup for Windows
BrightStor ARCserve Backup for Windows Agent for Microsoft SQL Server r11.5 D01173-2E This documentation and related computer software program (hereinafter referred to as the "Documentation") is for the
Note: With v3.2, the DocuSign Fetch application was renamed DocuSign Retrieve.
Quick Start Guide DocuSign Retrieve 3.2.2 Published April 2015 Overview DocuSign Retrieve is a windows-based tool that "retrieves" envelopes, documents, and data from DocuSign for use in external systems.
CA ARCserve Backup for Windows
CA ARCserve Backup for Windows Agent for Sybase Guide r16 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation
Monitoring HP OO 10. Overview. Available Tools. HP OO Community Guides
HP OO Community Guides Monitoring HP OO 10 This document describes the specifications of components we want to monitor, and the means to monitor them, in order to achieve effective monitoring of HP Operations
IronKey Enterprise File Audit Admin Guide
IronKey Enterprise File Audit Admin Guide Last Updated July 2015 Thank you for choosing IronKey Enterprise Management Service by Imation. Imation s Mobile Security Group is committed to creating and developing
1 Introduction FrontBase is a high performance, scalable, SQL 92 compliant relational database server created in the for universal deployment.
FrontBase 7 for ios and Mac OS X 1 Introduction FrontBase is a high performance, scalable, SQL 92 compliant relational database server created in the for universal deployment. On Mac OS X FrontBase can
This manual will also describe how to get Photo Supreme SQLServer up and running with an existing instance of SQLServer.
1 Installation Manual SQL Server 2012 Photo Supreme Introduction Important note up front: this manual describes the installation of Photo Supreme with SQLServer. There is a free SQLServer version called
Toad for Oracle 8.6 SQL Tuning
Quick User Guide for Toad for Oracle 8.6 SQL Tuning SQL Tuning Version 6.1.1 SQL Tuning definitively solves SQL bottlenecks through a unique methodology that scans code, without executing programs, to
Database migration using Wizard, Studio and Commander. Based on migration from Oracle to PostgreSQL (Greenplum)
Step by step guide. Database migration using Wizard, Studio and Commander. Based on migration from Oracle to PostgreSQL (Greenplum) Version 1.0 Copyright 1999-2012 Ispirer Systems Ltd. Ispirer and SQLWays
Oracle Enterprise Manager
Oracle Enterprise Manager System Monitoring Plug-in for Oracle TimesTen In-Memory Database Installation Guide Release 11.2.1 E13081-02 June 2009 This document was first written and published in November
The first time through running an Ad Hoc query or Stored Procedure, SQL Server will go through each of the following steps.
SQL Query Processing The first time through running an Ad Hoc query or Stored Procedure, SQL Server will go through each of the following steps. 1. The first step is to Parse the statement into keywords,
National Fire Incident Reporting System (NFIRS 5.0) NFIRS Data Entry/Validation Tool Users Guide
National Fire Incident Reporting System (NFIRS 5.0) NFIRS Data Entry/Validation Tool Users Guide NFIRS 5.0 Software Version 5.3 Prepared for: Directorate of Preparedness and Response (FEMA) Prepared by:
138 Configuration Wizards
9 Configuration Wizards 9.1 Introduction to Wizards ACP ThinManager uses wizards for configuration. Wizards take two forms. List Wizards associate Terminal Servers and ThinManager Servers with their IP
User s Manual for Fingerprint Door Control Software
User s Manual for Fingerprint Door Control Software Foreword The naissance of F7 indicated that fingerprint reader enters into professional door control domain. That s why we developed this software to
Optimizing Performance. Training Division New Delhi
Optimizing Performance Training Division New Delhi Performance tuning : Goals Minimize the response time for each query Maximize the throughput of the entire database server by minimizing network traffic,
The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.
Content Introduction... 2 Data Access Server Control Panel... 2 Running the Sample Client Applications... 4 Sample Applications Code... 7 Server Side Objects... 8 Sample Usage of Server Side Objects...
Automatic notices process running too long, system config error corrected.
(Update notes are in italics) Ongoing Sierra issues On Monday, January 7, 2013 we had a phone call with the Customer Services supervisor at Innovative Interfaces. We communicated very directly that many
www.dotnetsparkles.wordpress.com
Database Design Considerations Designing a database requires an understanding of both the business functions you want to model and the database concepts and features used to represent those business functions.
5. CHANGING STRUCTURE AND DATA
Oracle For Beginners Page : 1 5. CHANGING STRUCTURE AND DATA Altering the structure of a table Dropping a table Manipulating data Transaction Locking Read Consistency Summary Exercises Altering the structure
Turnitin User Guide. Includes GradeMark Integration. January 2014 (revised)
Turnitin User Guide Includes GradeMark Integration January 2014 (revised) Copyright 2014 2 Contents Contents... 3 Turnitin Integration... 4 How This Guide is Organized... 4 Related Documentation... 4 Campus
Table of Contents Introduction... 2 Azure ADSync Requirements/Prerequisites:... 2 Software Requirements... 2 Hardware Requirements...
Table of Contents Introduction... 2 Azure ADSync Requirements/Prerequisites:... 2 Software Requirements... 2 Hardware Requirements... 2 Service Accounts for Azure AD Sync Tool... 3 On Premises Service
Advanced Oracle SQL Tuning
Advanced Oracle SQL Tuning Seminar content technical details 1) Understanding Execution Plans In this part you will learn how exactly Oracle executes SQL execution plans. Instead of describing on PowerPoint
Brother Automatic E-Mail Printing OPERATION MANUAL
Brother Automatic E-Mail Printing OPERATION MANUAL Copyright Brother 1999 No part of this publication may be reproduced in any form or by any means without permission in writing from the publisher. The
