-
What is ADO? What are its objects ?
ActiveX Data Object. ADO can access data from both flat files as well as the databases. I.e., It is encapsulation of DAO, RDO, and OLE that is why we call it as OLE-DB Technology. Objects are Connection, Record Set, Command, Parameter, field, Error, Property.
-
What is Dataware Control?
Any control bound to Data Control. Ex:- Textbox, Check Box, Picture Box, Image Control, Label, List box, Combo Box, DB Combo,
-
What are two validate with Data Control?
Data_Validate, Data_Error.
-
Record set types and Number available in VB?
3. 1- Dynaset, 0 – Table, 2 – Snap Shot.
-
What are the locks available in Visual Basic?
Locking is the process by which a DBMS restricts access to a row in a multi-user environment 4 types of locks. They are 1. Batch Optimistic 2. Optimistic 3. Pessimistic 4. ReadOnly Operations in a relational database act on a complete set of rows. The set of rows returned by a SELECT statement consists of all the rows that satisfy the conditions in the WHERE clause of the statement. This complete set...
-
How can we call Stored procedure of Back End in RDO and ADO ?
In RDO – We can call using RDO Query Objects. In ADO – We can call using Command Objects.
-
What are the Technologies for Accessing Database from Visual Basic?
DAO, Data Control, RDO, ODBCDIRECT, ADO, ODBC API , 0040.
-
What is MAPI ?
Messaging Application programming Interface.
-
Different type of Passing Value?
By value, By ref, Optional, Param Array. Note:- Optional keyword cannot be used while declaring arguments for a function using param array.
-
What are the different types of error?
Syntax Errors, Runtime , Logic.
-
What is Seek Method which type of record set is available this?
Only in DbOpenTables. Syntax: rs.index = "empno" rs.seek "=" , 10 If with our setting the rs.index then run time error will occur.
-
What is Centralization Error Handling?
Writing function and calling it when error occurs.
-
-
To connect the Data Control with Back end What are all the properties to be set?
Data source Name, Record Source Name
-
How to trap Data Base Error?
Dim x as RDOError X(0).Des X(1).Number
-
What is view Port?
The area under which the container provides the view of the ActiveX Document is known as a view port.
-
What methods are used for DBGrid in unbound mode?
AddData, EditData, Readdata, WriteData.
-
How to increase the Date corresponding with month,date,year?
DateSerial(year(Now),Month(Now)+1,1) Hour, min, sec, month, year, DateSerial, dateadd, datediff, weekday, datevalue, timeserial,timevalue.
-
Setting the Cursors.
Default Cursor – 0 ODBC Cursor (Client side) – 1 ServerSide Cursors (More Network traffic) - 2
-
What are the record set types?
RdOpenFowardOnly 0 (Default used only for the read only purpose) RdOpenStatic 1 RdOpenDynamic 2 RdOpenKeySet 3 (Normally used for the live project)
Visual Basic Interview Questions
Ans