GeekArticles
Database
SQL ServerImporting an Excel Spreadsheet Using Typed DataSets and TableAdapters: Importing the Excel Spreadsheet
Author: aspnet.4guysfromrolla.com |
Published: 26th Mar 2008 |
Visited: 57 times |
Add CommentFiled in: SQL Server
Over the past four installments in this article series we have: created a SQL Server database for our web application; created an ASP.NET web page that
enabled the visitor to upload an Excel spreadsheet and view its contents in a GridView; and created a Data Access Layer (DAL) using Typed DataSets
for accessing our application database. All that remains is to import the uploaded Excel spreadsheet's data into the application database.
In a perfect world, a user would carefully check the data in the Excel spreadsheet and cross-reference it with the data already existing in the application
database. But our users are humans and bound to err. Therefore, it behooves us to design the import functionality so that it can gracefully handle common
types of mistakes. We'll examine two such cases: preventing duplicate entries and ensuring that the imported data is in the appropriate format.
Read on to learn more!
Read More >
Read Article Sponsored Links
Related Articles
• Designing N-Tiered Data Access Layer Using Datasets - Part 4 Part of the business logic encapsulated in the Typed DataSet is the ability to add specialized queries to the table adapters to retrieve the data with different filters. By manipulating the XML schema that defines the dataset and adding the correct XML metadata, Visual Studio will generate the adde ...
• ODP.NET - Retrieving Typed Data ODP.NET - Retrieving Typed Data
While retrieving values from OracleDataReader, we can extract information available in individual columns (of a particular row) either by using column ordinal (position) values or column names.
Visit http://www.exforsys.com to read complete article
...