Skip to main content

Latest Articles: ADO .net


Reading and Writing Excel Spreadsheets Using ADO.NET C# DbProviderFactory
Entry Date: Oct 2008 site: David Hayden Rating:
keywords:Performance; ADO .net; Excel;
Article Description:

This week a client sent me an Excel Spreadsheet that needed to populate several tables in a SQL Server Database. To know me knows I hate data entry of any kind and there was no chance I was entering the Excel data in manually.

Thankfully, we don't have to. You can use the OleDb Managed Data Provider in the .NET Framework to read an Excel Spreadsheet using ADO.NET and C# just like you would with a database.

Comments:

If you have to generate or read simple Excel content, ADO .net is a good choice, it can run on the server side and has a good performance.

Click Here To Navigate to the Article

ADO.NET Entity Framework: What. How. Why.
Entry Date: Oct 2008 site: Channel 9 Rating:
keywords:ADO .net; LINQ; VS 2008; Visual Studio 2008; ADO .net Framework;
Article Description:
What's an Entity Framework, you ask? Well, watch and learn all about this new ADO.NET development framework/paradigm. For the ADO developers out there, you'll be quite pleased with the architectural direction ADO has taken.
Comments:

A bit old but quite interesting Web Cast about ADO .net Entity Framework. Good to know the basics of this technology and what can we expect from it.

Just to get the basics concepts and advantages.

Click Here To Navigate to the Article

ADO.NET Entity Framework Taking Some Heat
Entry Date: Oct 2008 site: InfoQ Rating:
keywords:ADO .net; .net framework 3.5;
Article Description:
A petition has started by the community to express concerns over Microsoft's upcoming release of the ADO.NET Entity Framework. The petition titled "ADO.NET Entity Framework Vote of No Confidence", aims to raise awareness of design and implementation issues foreseen by experts in the industry.
Comments:

Interesting community letter and Ms answer, is ADO .net Entity Framework a 1.0 version that sould not be used? It's a good idea to wait for a 2.0 version?

Reading his article can help you on building up your own decision, you will read opinions from both sources.

Click Here To Navigate to the Article

Using ADO.NET Data Services in Silverlight 2 Beta 2
Entry Date: Jul 2008 site: Wilder Muth Rating:
keywords:ADO .net; Silverlight; VS 2008; ASP .net Futures; Visual Studio 2008; XAML;
Article Description:
Now that Silverlight 2 Beta 2 has launched, we have the ability to consume ADO.NET Data Services (formerly Astoria) from within Silverlight projects. ADO.NET Data Services are a perfect match for client-side technologies like Silverlight and ASP.NET AJAX.
Comments:

Silverlight + ADO .net Services (formerly know as Astoria) is the perfect match to develop RIA applications, superb front end using silverlight, easy datalayer development using ADO .net Services (generates automatically a DAL based on web services).

Click Here To Navigate to the Article

Insert, Update and Delete in Silverlight DataGrid using ADO.NET
Entry Date: Jul 2008 site: C Sharp corner Rating:
keywords:ADO .net; Silverlight; Web Services; VS 2008; .net framework 3.5; Visual Studio 2008; XAML; DataGrid;
Article Description:
This article is in continuation of the previous one in which I discussed how to create ADO.NET Data Service and access Database using Silverlight 2. Here i am going to show how to perform Insert, Update and Delete in Selverlight Datagrid using ADO.NET Data Service.
Comments:

Quite interesting, how to perform CRUD operations on a Silverlight DataGrid using ADO .net services (data web services and ADO .net entity framework).

The article is quite summarized, you will need to download the sample code.

Click Here To Navigate to the Article

Data-driven document generation with Word 2007 and the Office XML File Formats: Part 2
Entry Date: May 2008 site: Blogs MSDN Rating:
keywords:ASP .net; ADO .net; XML; VB .net; Open XML; .net framework 3.0; Office; DataSet; DataReader; VS 2008; Visual Studio 2008; Ms Word;
Article Description:
I will show you how to create a server-side data-driven document generation application that will allow you to select a company name to generate a custom letter. The application will retrieve customer data from a SQL Server database and use the customer letter document template to build a new document that displays customer data based on a user selection.
Comments:

Office 2007 introduced the Open XML format.. . an open format but quite complex, to make things simplers you have the chance of separating layout from content by attaching a pure XML data file to the docx (word document) and map it with user control in your word layout (the only big limitations is that you can not use it for detail / table information :-().

This samples shows you how to open a docx, grab the XML data file embedded on the docx and replace it by another read from a database (SQL Server).

Very interesting sample, if you are using Visual Studio 2008 forget about the lines that tells you how to install .net fx 3.0 :-)

Click Here To Navigate to the Article

Binding Data to Word 2007 Content Controls Using Visual Studio Tools for the Office System (3.0)
Entry Date: May 2008 site: MSDN Rating:
keywords:.net framework 2.0; ADO .net; XML; Open XML; Office; DataSet; Ms Word; VSTO;
Article Description:
This visual how-to article demonstrates how to use content controls in a Visual Studio Tools for the Office system project to build a product brochure using Office Word 2007. The data for the brochure comes from a back-end database and content controls surface product data from the database to appropriate locations in the brochure
Comments:

When you look for Office 2007 and content controls samples / documentation is all more related to handling XML and associate it with Ms Word using VBA

This sample goes one step forward: how to associate controls to data retrieved from a dataset (built up using select query from a Database) using VSTO 3.0 (Visual Studio Tools for Office and real .net coding !)

Click Here To Navigate to the Article

SQL Server 2005
Entry Date: Apr 2008 site: Connection Strings Rating:
keywords:ADO .net; Networking;
Article Description:
This is a compiled connection strings reference list on how to connect to SQL Server 2005.
Comments:

Configuring ADO .net connection strings is a prone to error task, you have to remember every single parameter and setting

This cheatlist will help you configuring any SQL Server 2005 configuration you can find help as well for other DB engines, Oracle, DBase, Paradox, DB 2...

Click Here To Navigate to the Article

Nulls and data retrieval with .NET 2.0
Entry Date: Oct 2007 site: Google groups Rating:
keywords:.net framework 2.0; ADO .net; DataReader;
Article Description:

About NULLABLE DataReader Wrapper: It's not yet in the framework. ADO.NET just doesn't leverage nullable value types in this release.

For the DataReader, we would need a new interface, say INullableDataReader to return the nullable types.

Comments:

If you are using generics, datareaders, and nulls in your DB this post will save you a lot of headaches.

Here's an implementation of INullableDataReader a utility class for wrapping an IDataReader in a INullableDataReader, which should be helpful. Also it illustrates some of the issues in integrating nullable types and ADO.NET. Nullable types really would require a seperate ADO.NET library. Using nullable types in va Data Access Layer is a great idea, but we will have to build up the infrastructure to do it seperately from ADO.NET, for now.

Click Here To Navigate to the Article

Loading and Running a Remote Package Programmatically
Entry Date: Oct 2007 site: MSDN Rating:
keywords:SSIS; ADO .net; Web Services;
Article Description:
To run remote packages from a local computer that does not have Integration Services installed, start the packages so that they run on the remote computer on which Integration Services is installed. You do this by having the local computer use SQL Server Agent, a Web service, or a remote component to start the packages on the remote computer. If you try to start the remote packages directly from the local computer, the packages will load onto and try to run from the local computer. If the local computer does not have Integration Services installed, the packages will not run.
Comments:

How to launch an SSIS job from a remote machine (e.g. an ASP .net application hosted on an IIS).

You will find two approaches on using ADO .net (calling a system stored proc) the other one via Web Service.

Click Here To Navigate to the Article

Efficient Data Paging with the ASP.NET 2.0 DataList Control and ObjectDataSource
Entry Date: Sep 2007 site: Scott Gus Blog Rating:
keywords:ASP .net; .net framework 2.0; ADO .net; T-SQL; DataReader; HTML; Repeater;
Article Description:

Last weekend I posted about how to implement super efficient data-paging using the new ROW_NUMBER() within SQL 2005 (which is supported with the free SQL Express edition and up) and the new ASP.NET 2.0 GridView/ObjectDataSource controls.

The BIG win with this approach is that it enables a web-application to efficiently retrieve only the specific rows it needs from the database, and avoid having to pull back dozens, hundreds, or even thousands of results to the web-server – only to then end up trimming them down to the 10-15 you end up displaying on a web-page (which is what most data-paging solutions do today). This can lead to significant performance wins within your application (both in terms of latency and throughput), and reduce the load on your database.

A few people have asked me to also provide a similar sample that demonstrates how to also implement efficient data-paging using an ASP.NET DataList or Repeater control instead (since neither of these have built-in paging UI semantics – but they do have the big benefit of allowing developers to have tight control over the html generated).

Comments:
This article shows you how to do custom pagination on an ASP .net Repeater control. One of the best topics of this articles is that it shows you how to perform the pagination with pure HTML links (HREF) and querystrings, by this approach you avoid using postbacks and crawlers can index the pages generated by the repeater easily.
Click Here To Navigate to the Article

Page (1) Of 3 Next Articles >>