- Q Explain Ice age. When did the last ice age end?
- Q Do you know anyone who works with NetApp?
- Q For Border-Gavaskar Trophy, the Indian cricket team plays against which country ?
- Q Where would you find your lunula
- Q Explain the design patterns used in Struts
- Q Who was sworn in as the chief minister of Jammu and Kashmir?
- Q How does the velocity vary along radius in a few vortex ?
- Q AML full form
- Q What's the command to find out users on the system?
- Q Who is the first Indian footballer to play for an European Club?
- Q What two countries did the Titanic visit after leaving Southampton on its doomed maiden voyage?
Question
How can you access the data from DataReader?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Answers
DataReader is a class that holds data as rows and coloums to access data from the DataReader.
It provides the following methods:
1. GetName(int ColIndex) - The return type of this method is a string, it returns the name of the column for the given index position.
2. Read() - Moves the Record Pointer from the current location to the next row and returns a Boolean status that tells whether the row to which we have moved contains data in it or not, that will be true if present or false if not present.
3. GetValue(int Colindex) - Returns a column's value from the row to which the pointer was pointing by specifying the column index position.
4. NextResult () - Moves the record pointer from the current table to the next table if a table exists and returns true else returns false.
Features of Data Reader:
1. Provides faster access to data from a Data Source, since it is connection oriented.
2. It can hold multiple tables at a time. To load multiple tables into a DataReader pass multiple select statements as the argument to the command separated by a colon (;).
For example:
1. Command cmd=new Command(“Select * From Student ; Select * From Mark ”, Con);
2. Data Reader dr= cmd.ExecuteReader(); Your Comment
It provides the following methods:
1. GetName(int ColIndex) - The return type of this method is a string, it returns the name of the column for the given index position.
2. Read() - Moves the Record Pointer from the current location to the next row and returns a Boolean status that tells whether the row to which we have moved contains data in it or not, that will be true if present or false if not present.
3. GetValue(int Colindex) - Returns a column's value from the row to which the pointer was pointing by specifying the column index position.
4. NextResult () - Moves the record pointer from the current table to the next table if a table exists and returns true else returns false.
Features of Data Reader:
1. Provides faster access to data from a Data Source, since it is connection oriented.
2. It can hold multiple tables at a time. To load multiple tables into a DataReader pass multiple select statements as the argument to the command separated by a colon (;).
For example:
1. Command cmd=new Command(“Select * From Student ; Select * From Mark ”, Con);
2. Data Reader dr= cmd.ExecuteReader(); Your Comment
- 0
- 0
- New Answer
- Contributors: *,
More Software Questions..
What is the inputsplit in map reduce software?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is software configuration management?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What Is Java Api For Xml-based Rpc (jax-rpc)?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How can you implement fine-grained auditing?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is IBM’s simple explanation for Big Data’s four critical features?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is static synchronized method in JDBC API? Give an example?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What does the NULLIF function do?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What happens if a start method is not invoked and the run method is directly invoked?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Should we override finalize method
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
what is the difference between mysql_fetch_array and mysql_fetch_object?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How will XML affect my document links?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Why to use Style Sheets?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What are Filters in MVC?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Can you explain Application layer in OSI model?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How to define new testplan attributes?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Which oracle package is used to manage the oracle lock management services?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is marker interface?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What types of partitioning are there for BW?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,