Thursday, 27 June 2013

Difference Between ADO And ADO.NET

ADO Versus ADO.NET

                        ADO                                                   ADO .NET
Business ModelConnection-oriented Models used mostlyDisconnected models are used:Message-like Models.
Disconnected AccessProvided by Record setProvided by Data Adapter and Data set
XML SupportLimitedRobust Support
Data PassingADO objects communicate in binary mode.ADO.NET uses XML for passing the data.
Design-time supportDerives information about data implicitly at run time, based on metadata that is often expensive to obtain.Leverages known metadata at design time in order to provide better run-time performance and more consistent run-time behavior.
Control of data access behaviorsIncludes implicit behaviors that can not always be required in an application and that can therefore limit performance.Provides well-defined, factored components with predictable behavior, performance, and semantics.
Connection ModelClient application needs to be connected always to data-server while working on the data, unless using client-side cursors or a disconnected Record setClient disconnected as soon as the data is processed. DataSet is disconnected at all times.

ADO Versus ADO.NET Data Types

CodeSymbol
adEmptynull
adBooleanInt16
adTinyIntSByte
adSmallIntInt16
adIntegerInt32
adBigIntInt64
adUnsignedTinyIntpromoted to Int16
adUnsignedSmallIntpromoted to Int32
adUnsignedIntpromoted to Int64
adUnsignedBigIntpromoted to Decimal
adSingleSingle
adDoubleDouble
adCurrencyDecimal
adDecimalDecimal
adNumericDecimal
adDateDateTime
adDBDateDateTime
adDBTimeDateTime
adDBTimeStampDateTime
adFileTimeDateTime
adGUIDGuid
adErrorExternalException
adIUnknownobject
adIDispatchobject
adVariantobject
adPropVariantobject
adBinarybyte[]
adCharstring
adWCharstring
adBSTRstring
adChapternot supported
adUserDefinednot supported
 

No comments: