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 40 of 50    Print  
How do you connect to the database from application?

  
Total Answers and Comments: 2 Last Update: June 28, 2009     Asked by: meetraghu99 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 05, 2007 05:49:27   #1  
Raman        

RE: How do you connect to the database from applicatio...


You can use ADO's(ActiveX Data Objects) for connecting database from applications.

If u are new to ADO and want to learn refer the following URL

http://msdn2.microsoft.com/en-us/library/ms807730.aspx




 
Is this answer useful? Yes | No
June 26, 2009 09:42:33   #2  
archus Member Since: June 2009   Contribution: 1    

RE: How do you connect to the database from application?

We can use connection object class to establish connection to the specified
DB during runtime


set ConObj CreateObject("ADODB.Connection")

ConObj.Open"Provider Provider Name"


For MS-Access the provider name is

ConObj.Open"Provider Microsoft.Jet OLEDB.4.0; dataSource Path of the
DataBase"


For Oracle SQL Server the Provider name is

ConObj.Open"Provider sqloledb.1;Server IP Address;uid username;pwd ****;DataBase path
of the database"


For Oracle the Provider Name is

ConObj.Open"Provider oraoledb.1;Server ****;userid username(Scott);password ****(tiger)"


 
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 : While testing the database manually,         we used to follow two steps.       1) manually 2) by writing sql queries               ...

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 ...

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

How do you test whether the database is updated as and when an information are added in the front end?Give me an example?
Read Answers (6) | Asked by : kokila

Latest Answer : Hi,You can test through manually through oracle or pl/sql by executing the queries and through automation by retrieveing the data and comparing with the input.Thanks,Praveen ...
Read Answers (9) | Asked by : kokila

Latest Answer : Show stopper means in application we are not able to go further to access it for eg. if the login screen does not allow the user to enter means, you cannot go further, so it stops the entire show. ...


 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
 

Application Development in .NET

ASP NET 2 0 Tutorials Application development in NET Client Side Application Development Client applications are applications that run on the client system or the desktop of the user They are closest to the traditional windows based applications and they display forms or windows on the desktop enabl
 

N-Tier Application Partitioning

N Tier Application Partitioning Application partitioning is a vital process as it provides one with the opportunity to clearly define an even distribution of an application s presentation process and key data components without which you may find yourself feeling quite lost The components may be dis
 

N-Tier Application Manageability

N Tier Application Manageability While it is a fact that N Tier applications tend to provide almost limitless scalability the desire to change or add new forms of functionality can present a challenge in more than one arena Growth on a large scale can make capacity planning quite hard When available
 

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
 

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