VB Questions (Client Server)
What is difference between datagrid and flexigrid?
Datagrid – Editable.
Flexigrid – Non-Editable.
(Generally used for Read only purpose.)
What is ADO? What are its objects ?
ActiveX Data Object. ADO can access data from both flat
files as well as the data bases. I.e., It is encapsulation of DAO, RDO , 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.
Referential Integrity ( Take care By jet database Engine).
Cascade Delete, Cascade Update – is done setting property
of
Artibutes.
DbRelationDeleteCascade,
DbRelationUpdateCascade.
What are the lock available in Visual Basic?
2 types of locks. They are 1. Pessimistic – Set Lock Edit
property = True (default)
2. Optimistic - " =
False
What is the diff between RDO and ADO?
RDO is Hierarchy model where as ADO is Object model. ADO
can access data from both flat files as well as the data bases. I.e., It is
encapsulation of DAO, RDO , OLE that is why we call it as OLE-DB
Technology.
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 is the different between Microsoft ODBC Driver and Oracle OBDC
Driver?
Microsoft ODBC driver will support
all the methods and properties of Visual Basic. Where as the Oracle
not.
What are the Technologies for Accessing Database from Visual
Basic?
DAO, Data Control, RDO, ODBCDIRECT,
ADO, ODBC API , 0040.
Calling Stored Procedures in VB?
1. Calling
Simply the Procedure with out Arguments
"Call
ProcedureName}"
2. If it is with Arguments Means
then
Declare the Query Def qy
Set Qy as New Query def
Qy.SQL
= "{Call ProcedureName(?,?,?)}"
qy(0)=val(Txt1.Text)
qy(1)=val(Txt2.Text)
qy(2)=val(Txt3.Text)
Set Rs =
Qy.OpenresultSet
Txt(1)=Rs.RdoColumns(0)
What is MAPI ?
Messaging Application
programing 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 funciton and calling it when error
occurs.
Handling Error in Calling chain.
This
will call the top most error where the error is handled.
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 know as a view
port.
What methods is 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
Cursor management
Client Batch – Batch
up the Multiple SQL Statements in a single string and Send them to the Server
at one time.
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)
Diff types of Lock Types?
RdConcurReadOnly 0 (Default)
RdConcurLock 1 (Pessimitic
Locking)
RdConcurRowver 2 (Optimistic Lociking)
RdConcurValues
3
RdConcurBatch 4
What the RDO Methods and Events?
Methods
Events
Begin Trans Validate
Commit Trans Reposition
Rollback
Trans Error
Cancel Query Complied
Refresh
Update Controls
Update
row
What is Static Cursor?
In ADO Snap Shot
is called so.
What is Mixed Cursors?
Static +
Keyset
What is Fire House Cursors?
Forward
Only Some time Updateable
What is DBSqlPassThrough?
It will By
Passing the Jet Query Processor.
What is DBFailError?
Rolls Back updates
if any errors Occurs.
DSN Less Connection?
"Server=Oracle;
Driver={Microsoft ODBC for Oracle};"
What is RdExecDirect?
Bypasses the
Creation of a stored procedure to execute the query. Does not apply to
Oracle.
RdoParameter Object RdoParameterConstant
Direction
RdparamInput
RdparamInputOutput
RdParamOutput
Name
Type
Value
.
***************************************************************************************