GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing  >  DataBase Testing
Go To First  |  Previous Question  |  Next Question 
 DataBase Testing  |  Question 23 of 50    Print  
How to check for correct stored procedures and how to check if the triggers are fired or not in Db testing?

  
Total Answers and Comments: 1 Last Update: May 09, 2007     Asked by: LoniT 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 09, 2007 02:26:55   #1  
Amit Bansal        

RE: How to check for correct stored procedures and how...
To check the correctness of SP you should have a good knowledge to understand SP(Stored Procedure). You have to understand what are the steps and what about the expected result to execute the SP. Like there is an SP which helps to insert a row which has two columns in a table then you will execute that SP only and you know the expected result just write one query and check those expected values into the database.
Same procedure you will apply to triggers too. You know at what condition the trigger is fired.

Or if you are using SQL Server database then its very easy to do. Using SQL PROFILER you can check the correctness of SP and trigger too.

 
Is this answer useful? Yes | No

 Related Questions

In DB testing we need to check for, 1. The field size validation 2. Check constraints. 3. Indexes are done or not (for performance related issues) 4. Stored procedures 5. The field size defined in the 
Latest Answer : In my experience , I have done the followign test activities as part of databaes application*Data Integrity: Whether relationship between tables (as defined while designing tables) are getting respected after different equievalence classes of data.*Data ...

Latest Answer : database testing means we can integrate data,retrive data,inserting data,delete data in according with the custometer requirement(business logic). ...

Latest Answer : I would say first learn the database, epecially the relationship among the table.Try to understand the business ruleTry to understand the dataStart feeding data through the user interfaceOpen database verify movement of datakeep record  of your action ...

Latest Answer : suresh:-Based  on situation    1) before running the script, count how many record that has,       after running script, count how many records it has          based ...
Read Answers (6) | Asked by : Bharti jaiswal

I said I used select statements most of the times. So, the interviewer took it granted that I am unaware of insert, update and delete statements. Hence it is better to read out whole of the SQL as an answer 
Latest Answer : The following are the most widely used Sql statments in database testing:1. Use Database2. Select3. Insert4. Update5. Delete6. Drop7. Alter8. Modify Structure9. Join(Inner and outer)10. Views ...
Read Answers (7) | Asked by : Bindu Puvvala

Latest Answer : Hi Raghu,The answer you gave is very useful,. but can you be a bit more elaborative as of to what extent do we need to work with indexes, cursors and how to test a SP with some examples if possible!!Thanks Rajani ...

Latest Answer : can u explain u'r solution with example ...
Read Answers (10) | Asked by : sriram Kammisetty

Latest Answer : HiThanks for the above info...but no body has told the steps for testing stored procedures....I would appreciate a quick reply...Thnx ...
Read Answers (4) | Asked by : anju

How to test a DTS package created for data insert update and delete? What should be considered in the above case while testing it?What conditions are to be checked if the data is inserted, updated or deleted using a text files?

How to test a DTS package created for data insert update and delete? What should be considered in the above case while testing it?What conditions are to be checked if the data is inserted, updated or deleted using a text files?
Read Answers (1) | Asked by : dsreddy


 Sponsored Links

 
Related Articles

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

Performing XSLT Transformations inside the Database

Performing XSLT Transformations inside the Database Now that you have the employees XSL stylesheet stored in the database and the xmlusr schema is permitted to access the hr employees table you can create a script that will instruct the database to build an HTML page based on the data stored in hr e
 

Moving All the XML Processing into the Database

Moving All the XML Processing into the Database In the preceding example the database server performs only a part of the XML processing while the rest is still performed by the PHP engine Specifically the database server generates an employees XML document based on the records from the hr employees
 

Performing XML Processing inside the Database

Performing XML Processing inside the Database When building XML enabled applications on top of Oracle there are many advantages to performing the XML processing inside the database when compared to performing it on the client The key advantages to perform XML processing inside the database are as fo
 

Planning and choosing the correct ERP

Planning and choosing the correct ERP It is very common to think that implementing a new software is an easy topic and can be solved in a few days However this is not always the case There are some systems that require more time than others for implementation and even more previous considerations ER
 

What is Operational Database

Operational Database is the database-of-record, consisting of system-specific reference data and event data belonging to a transaction-update system. It may also contain system control data such as indicators, flags, and counters. The operational database is the source of data for the data warehouse
 

Evolution of database systems

The Evolution of Database systems File Management System Hierarchical database System  Network Database System  Relational Database System File Management System: The file management system also called as FMS in short is one in which all data is stored on a singl
 

What are the differences between stored procedures and triggers?

Stored procedures are compiled collection of programs or SQL statements that live in the database. A stored procedure can access and modify data present in many tables. Also a stored procedure is not associated with any particular database object. But triggers are event-driven special procedures whi
 

Database Concurrency and Reliability

Database Concurrency and Reliability Overview Concurrency and reliability have long been “hot topics” of discussion among developers and users of distributed systems. The fundamental problem can be seen in a simple example, as follows. Suppose two users are working on the same
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape