<< < 95 96 97 98 99 100 101 102 103 104 105 > >>   Sort: Rank

How can we check that some changes have been made to dataset since it was loaded
How can we cancel all changes done in dataset ? or How do we get values which are changed in a dataset ? For tracking down changes Dataset has two methods which comes as rescue “GetChanges “and “HasChanges”. GetChanges Returns dataset which are changed since it was loaded or since Acceptchanges was...
2007-10-24, 5470👍, 0💬

How can we save all data from dataset
How can we save all data from dataset ? Dataset has “AcceptChanges” method which commits all the changes since last time “Acceptchanges” has been executed.
2007-10-24, 4999👍, 0💬

What are the various methods provided by the dataset object to generate XML
What are the various methods provided by the dataset object to generate XML? Note:- XML is one of the most important leap between classic ADO and ADO.NET. So this question is normally asked more generally how can we convert any data to XML format. Best answer is convert in to dataset and use the bel...
2007-10-24, 4825👍, 0💬

How can we use dataadapter to fill a dataset ?
What are the steps involved to fill a dataset ? Sample code is provided in “WindowsDataSetSample” folder in CD.”LoadData” has all the implementation of connecting and loading to dataset. This dataset is finally bind to a ListBox. Below is the sample code. Private Sub LoadData() Dim strConnectionStr...
2007-10-24, 5167👍, 0💬

Which is the best place to store connectionstring in .NET projects
Which is the best place to store connectionstring in .NET projects ? Config files are the best places to store connectionstrings. If it is a web-based application “Web.config” file will be used and if it is a windows application “App.config” files will be used.
2007-10-24, 5312👍, 0💬

How can we fine tune the command object when we are expecting a single row
How can we fine tune the command object when we are expecting a single row ? Again CommandBehaviour enumeration provides two values SingleResult and SingleRow. If you are expecting a single value then pass “CommandBehaviour.SingleResult ”and the query is optimized accordingly, if you are expecting s...
2007-10-24, 5466👍, 0💬

I want to force the datareader to return only schema of the datastore rather than data
I want to force the datareader to return only schema of the datastore rather than data ? pobjDataReader = pobjCommand.ExecuteReader(Comm andBehavior.SchemaOnly)
2007-10-24, 5276👍, 0💬

How can we force the connection object to close after my datareader is closed
How can we force the connection object to close after my datareader is closed ? Command method Executereader takes a parameter called as CommandBehavior where in we can specify saying close connection automatically after the Datareader is close. pobjDataReader = pobjCommand.ExecuteReader(Comm andBeha...
2007-10-24, 5945👍, 0💬

How do we use stored procedure in ADO.NET and how do we provide parameters to the stored procedures
How do we use stored procedure in ADO.NET and how do we provide parameters to the stored procedures? ADO.NET provides the SqlCommand object which provides the functionality of executing stored procedures. Note :- Sample code is provided in folder “WindowsSqlClientCommand”. There are two stored proce...
2007-10-24, 5263👍, 0💬

How do we connect to SQL SERVER, which namespace do we use
How do we connect to SQL SERVER, which namespace do we use ? Below is the code, after the code I have given the explanation for it. For this sample we will also need a SQL Table setup which I have imported using the DTS wizard. Private Sub LoadData() ‘ note :- with and end with makes your code more ...
2007-10-24, 5854👍, 0💬

How can we connect to Microsoft Access , Foxpro , Oracle etc
How can we connect to Microsoft Access , Foxpro , Oracle etc ? Microsoft provides System.Data.OleDb namespace to communicate with databases like scess , Oracle etc. In short any OLE DB-Compliant database can be connected using System.Data.OldDb namespace. Note :- Small sample of OLEDB is provided in...
2007-10-24, 7554👍, 0💬

What are the various objects in Dataset
What are the various objects in Dataset ? Dataset has a collection of DataTable object within the Tables collection. Each DataTable object contains a collection of DataRow objects and a collection of DataColumn objects. There are also collections for the primary keys, constraints, and default values...
2007-10-24, 5139👍, 0💬

What is Dataset object
What is Dataset object? The DataSet provides the basis for disconnected storage and manipulation of relational data. We fill it from a data store,work with it while disconnected from that data store, then reconnect and flush changes back to the data store if required.
2007-10-24, 5076👍, 0💬

What are basic methods of Dataadapter
What are basic methods of Dataadapter ? There are three most commonly used methods of Dataadapter Fill :- Executes the SelectCommand to fill the DataSet object with data from the data source. It an also be used to update (refresh) an existing table in a DataSet with changes made to the data in the o...
2007-10-24, 5080👍, 0💬

What is the use of dataadapter
What is the use of dataadapter ? These are objects that connect one or more Command objects to a Dataset object. They provide logic that would get data from the data store and populates the tables in the DataSet, or pushes the changes in the DataSet back into the data store. ? An OleDbDataAdapter ob...
2007-10-24, 5068👍, 0💬

What is the use of command objects
What is the use of command objects ? They are used to connect connection object to Datareader or dataset. Following are the methods provided by command object ? ExecuteNonQuery :- Executes the command defined in the CommandText property against the connection defined in the Connection property for a...
2007-10-24, 4665👍, 0💬

What is the use of connection object
What is the use of connection object ? They are used to connect a data to a Command object. ? An OleDbConnection object is used with an OLE-DB provider ? A SqlConnection object uses Tabular Data Services (TDS) with MS SQL Server
2007-10-24, 4854👍, 0💬

What are major difference between classic ADO and ADO.NET
What are major difference between classic ADO and ADO.NET ? Following are some major differences between both ? As in classic ADO we had client and server side cursors they are no more present in ADO.NET. Note it's a disconnected model so they are no more applicable. ? Locking is not supported due t...
2007-10-24, 5209👍, 0💬

What is difference between dataset and datareader
What is difference between dataset and datareader ? Following are some major differences between dataset and datareader ? DataReader provides forward-only and read-only access to data, while the DataSet object can hold more than one table (in other words more than one rowset) from the same data sour...
2007-10-24, 5344👍, 0💬

What are the two fundamental objects in ADO.NET
What are the two fundamental objects in ADO.NET ? Datareader and Dataset are the two fundamental objects in ADO.NET.
2007-10-24, 8268👍, 0💬

Can you give a overview of ADO.NET architecture
Can you give a overview of ADO.NET architecture ? The most important section in ADO.NET architecture is gData Providerh. Data Provider provides access to datasource (SQL SERVER, ACCESS, ORACLE).In short it provides object to achieve functionalities like opening and closing connection, retrieve dat...
2007-10-24, 5447👍, 0💬

What is the namespace in which .NET has the data functionality classes
What is the namespace in which .NET has the data functionality classes ? Following are the namespaces provided by .NET for data management System.data This contains the basic objects used for accessing and storing relational data, such as DataSet,DataTable, and DataRelation. Each of these is indepen...
2007-10-24, 5133👍, 0💬

What is cross cutting in AOP
What is cross cutting in AOP ? When one or many concerns span across module it is called as cross cutting. Example in our audit trail example we will probably need to audit trail for customer as well as supplier. So Audit trail can span across other objects also that is termed as cross cutting. Belo...
2007-10-24, 5859👍, 0💬

What is Concern in AOP
What is Concern in AOP? gA concern is a particular goal, concept, or area of interesth There are mainly two types of concern from an object perspective:- ã Core / Main concerns which it should satisfy and is his work. ã System concerns which are not related to business functionalities but soft...
2007-10-24, 7978👍, 0💬

<< < 95 96 97 98 99 100 101 102 103 104 105 > >>   Sort: Rank