1. Field of the Invention
The invention disclosed and claimed herein generally pertains to a method and apparatus for loading or transferring data from a spreadsheet into a dynamically created table of a relational database. More particularly, the invention pertains to a method of the above type wherein the uploading or transfer of spreadsheet data is accompanied by security measures, to ensure that the transfer is authorized. In a useful embodiment, the invention pertains to a method of the above type wherein data transferred from a spreadsheet is selectively combined with other data, which was not previously contained in a spreadsheet.
2. Description of the Related Art
As is known by those of skill in the art, a relational database is a database wherein all data is stored in tables. By enumerating a table name, the names of table columns, and the data types of respective column contents, a table in a relational database is completely described. As an important advantage, queries in a table of a relational database depend on a comparison of the table contents. As a result, pointers are not required in such databases, and all relations are treated uniformly. Moreover, the tables are independent and not related by pointers. Accordingly, it is easy to maintain dynamic data sets in a relational database. As a further advantage, tables can be easily expanded by new columns, and it is easy to create user specific views therefrom.
As is further well known, a spreadsheet provides another important mechanism for storing and presenting data. A spreadsheet is especially useful for displaying financial, accounting or other data in rows and columns, wherein the spaces containing respective items of data are called cells. A spreadsheet may comprise a computer application program that simulates a physical spreadsheet by capturing, displaying and manipulating data arranged in rows and columns. Spreadsheets, in fact, represent one of the most common uses of personal computers. In many businesses spreadsheets are routinely used to graphically present financial data.
Notwithstanding the widespread use and popularity of spreadsheets, it is not easy at present to conveniently convert or transfer data from a spreadsheet format to a relational database table. Any such transfer must generally be carried out using a manual or other tedious procedure. As a result, the benefits of having data in a relational database, as described above, do not readily apply to data contained in spreadsheets. This situation makes it difficult to generate reports that, for example, combine financial data in a spreadsheet with non-financial data residing in a relational database table. It would thus clearly be beneficial to provide a mechanism or procedure for easily and automatically loading data from a spreadsheet to a relational database table. The loading procedure would usefully ensure that such procedure was applied only to spreadsheet data that was properly authorized or authenticated for loading.
The invention generally provides functionality for loading data from a spreadsheet into a dynamically created relational database table, based on conditions provided by a reference table or log. Different types of transmission means, such as E-mail, File Transfer Protocol (FTP) upload, and Internet web interface, may alternatively be used to send a spreadsheet to a location for processing, in accordance with the invention. Security measures are provided for each type of transmission, to ensure that processing is authorized for each spreadsheet received at the location. In one embodiment of the invention, a method is provided for transferring data from a specified spreadsheet having a name, as well as rows and columns, to a relational database table. The method includes the steps of receiving the spreadsheet at a given location, assigning a name to the relational database table that is derived from the spreadsheet name, and creating names for columns of the table from the contents of a first row of the spreadsheet. Data types for respective columns of the table are derived from the contents of a second row of the spreadsheet. After such dynamic creation of the table, data is loaded into locations of the table from respectively corresponding cells of the specified spreadsheet.
The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as a preferred mode of use, further objectives and advantages thereof, will best be understood by reference to the following detailed description of an illustrative embodiment when read in conjunction with the accompanying drawings, wherein:
Referring to
Transmission link 108 illustrates FTP uploads of spreadsheet files. As is known by those of skill in the art, FTP enables a user to send large files via the Internet in a rapid and secure fashion. With FTP, a user is not limited by the size or type of files. Moreover, spreadsheet files can be uploaded directly to repository 104, using conventional FTP user authentication.
Transmission link 110 enables spreadsheet files to be uploaded by means of E-mail. Each file would be sent to the user identifier for the particular E-mail service being used for transmission link 110. For example, if Lotus Notes was the e-mail service, spreadsheet files would be sent to the Lotus Notes ID.
Referring further to
The web site 118 shown by
Referring to
Referring further to
An operating system runs on processor 202 and is used to coordinate and provide control of various components within data processing system 200 shown in
Referring to
As shown by step 306, after spreadsheet files have been loaded into repository 104, processing engine 102 commences a software application to process the files. Usefully, a JAVA® application is selected for this purpose, but the invention is not limited thereto. The processing task is scheduled as part of a batch job that is run periodically, such as every five minutes. This is illustrated in
Processing engine 102 is intended to accommodate spreadsheets of a number of different formats, including EXCEL®, LOTUS 1-2-3®-, and others. At the same time, processing operations would generally be more efficient if all spreadsheets were of a single uniform file type. Accordingly, when processing of spreadsheets commences, step 308 shows that the file types of successive spreadsheet files are checked against a pre-selected correct file type. In one embodiment, Excel would be selected for the correct file type, but the invention is not limited thereto. If a spreadsheet is found to have a file type different from the pre-selected file type, it is moved to an unprocessed folder, as indicated by step 310. The spreadsheet may then be converted to the correct format and returned for further processing.
As the processing of a spreadsheet continues, certain necessary information is obtained from the spreadsheet. Such information includes the database name, database schema, Owner Notes ID, Notification Notes ID, database user name and database password. This information is used to authenticate the spreadsheet. Frequently, repository 104 will receive a series or sequence of spreadsheets that contain the same or related identity and authentication information. Accordingly, to reduce the required processing, reference table 132 is provided, to obtain the above identity and authentication information from the very first spreadsheet in the series. This information is then stored in reference table 132. Thereafter, as subsequent spreadsheets in the series are received, the stored authentication information is retrieved from reference table 132 for use therewith, as indicated by step 312 of
At step 314, three elements of information are collected from each spreadsheet. These elements are required to construct a corresponding relational database table. More particularly, the collected elements are needed to provide the name of the table, the names of the table columns, and the table column data types. In accordance with the invention, the spreadsheet name will be used as the table name. The first row value collected from the spreadsheet will be used to create the table column names, and the second row of the spreadsheet will be used for the table column data types.
Referring further to
If no table is present that corresponds to a received spreadsheet, a relational database table is created for the spreadsheet, as indicated by step 318. As described above, this is carried out by assigning the spreadsheet name as the name that is to be used for the table. Names for the columns of the table are created from the contents of a first row of the spreadsheet. The data types for respective columns of the table are derived from the contents of a second row of the spreadsheet. After the relational database table has been created, information in reference table 132 is queried, to confirm that the spreadsheet is permitted to load data to the table.
When a relational database table corresponding to a received spreadsheet is present or becomes available, data values are extracted from respective cells of the spreadsheet and loaded into the table, as shown by step 320. The relational database is retained in database 134, as also shown. After the loading of data has been completed, the spreadsheet file is moved to the processed folder and deleted from the repository 104. The owner and user of the spreadsheet file is notified of these events by E-mail, as indicated at step 322.
Referring to
Referring further to
The invention can take the form of an entirely software embodiment or an embodiment containing both hardware and software elements. In a preferred embodiment, the invention is implemented in software, which includes but is not limited to firmware, resident software, microcode, etc.
Furthermore, the invention can take the form of a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system. For the purposes of this description, a computer-usable or computer readable medium can be any tangible apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
The medium can be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system (or apparatus or device) or a propagation medium. Examples of a computer-readable medium include a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk and an optical disk. Current examples of optical disks include compact disk-read only memory (CD-ROM), compact disk-read/write (CD-R/W) and DVD.
A data processing system suitable for storing and/or executing program code will include at least one processor coupled directly or indirectly to memory elements through a system bus. The memory elements can include local memory employed during actual execution of the program code, bulk storage, and cache memories which provide temporary storage of at least some program code in order to reduce the number of times code must be retrieved from bulk storage during execution.
Input/output or I/O devices (including but not limited to keyboards, displays, pointing devices, etc.) can be coupled to the system either directly or through intervening I/O controllers.
Network adapters may also be coupled to the system to enable the data processing system to become coupled to other data processing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modem and Ethernet cards are just a few of the currently available types of network adapters.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiment was chosen and described in order to best explain the principles of the invention, the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
Number | Name | Date | Kind |
---|---|---|---|
5862325 | Reed et al. | Jan 1999 | A |
5966716 | Comer et al. | Oct 1999 | A |
6151608 | Abrams | Nov 2000 | A |
6442569 | Crapo et al. | Aug 2002 | B1 |
6626959 | Moise et al. | Sep 2003 | B1 |
6631497 | Jamshidi et al. | Oct 2003 | B1 |
7225189 | McCormack et al. | May 2007 | B1 |
7233956 | Balducci et al. | Jun 2007 | B2 |
7269786 | Malloy et al. | Sep 2007 | B1 |
7275053 | Gardner et al. | Sep 2007 | B1 |
7313569 | Steinmann et al. | Dec 2007 | B2 |
20010020237 | Yarnall et al. | Sep 2001 | A1 |
20010034744 | Honma et al. | Oct 2001 | A1 |
20020104022 | Jorgenson | Aug 2002 | A1 |
20030061226 | Bowman et al. | Mar 2003 | A1 |
20030110191 | Handsaker et al. | Jun 2003 | A1 |
20030126139 | Lee et al. | Jul 2003 | A1 |
20030182287 | Parlanti | Sep 2003 | A1 |
20040143650 | Wollowitz | Jul 2004 | A1 |
20040167870 | Wakefield et al. | Aug 2004 | A1 |
20050165807 | Srinivasan et al. | Jul 2005 | A1 |
20050187969 | Chaudri | Aug 2005 | A1 |
20050192841 | Hays et al. | Sep 2005 | A1 |
20050267899 | Gupta et al. | Dec 2005 | A1 |
20060116865 | Cheng et al. | Jun 2006 | A1 |
20070136666 | Khen et al. | Jun 2007 | A1 |
20070288506 | Matson et al. | Dec 2007 | A1 |
20080126395 | Marueli | May 2008 | A1 |
Number | Date | Country |
---|---|---|
WO 2005033980 | Apr 2005 | WO |
Number | Date | Country | |
---|---|---|---|
20070162504 A1 | Jul 2007 | US |