TW425514B - E-mail driving data exchange method - Google Patents

E-mail driving data exchange method Download PDF

Info

Publication number
TW425514B
TW425514B TW88109801A TW88109801A TW425514B TW 425514 B TW425514 B TW 425514B TW 88109801 A TW88109801 A TW 88109801A TW 88109801 A TW88109801 A TW 88109801A TW 425514 B TW425514 B TW 425514B
Authority
TW
Taiwan
Prior art keywords
data exchange
database
data
sql
command
Prior art date
Application number
TW88109801A
Other languages
Chinese (zh)
Inventor
Yu-Lung Lin
Original Assignee
Inst Information Industry
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inst Information Industry filed Critical Inst Information Industry
Priority to TW88109801A priority Critical patent/TW425514B/en
Application granted granted Critical
Publication of TW425514B publication Critical patent/TW425514B/en

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to an e-mail driving data exchange method that can perform data exchange on cross-domain databases. It aims mainly, while exchanging databases, to packet the required structured query language (SQL) command into an executable command before transmitting the command in a form of e-mail from the local end to a remote end through a network. When the remote end receives the e-mail, it will identify the command as a database updated data and voluntarily execute the command so as to duplicate or update the database.

Description

4 2551 4 五、發明說明(1) 本發明係有關於一種資料交換方法,特別係有關於一 種利用電子郵件驅動資料交換的方法。 目前’在資料庫的應用中,關聯式資料庫逐漸普遍且 受到歡迎。而關聯式資料庫管理系統(Database Management System,DBMS),其具有的主要特徵可大致上 定義如下:(1)資料庫裏所有的資料都是以資料表格 (table)來儲存。(2)以邏輯方式來表示資料,而不必管資 料到底是如何儲存的。(3)使用一種高階語言來對資料庫 晨的資訊加以結構化、查詢、及修改。(4 )要能提供主要 Θ 的關聯式運异如selection 'projection、join,以及如 union 'intersection 'difference 'division 等集合運 算。(5)要支援檢視(view)的功能,以讓使用者可用自定 的方式來查詢資料表格裏的資料。(6 )對於未知值(nu L丨s ) 及0或空白等’要有一個加以區別的方法。(7)提供關於完 整性(integrity)、授權(authori z a t i on)、異動 (transaction)及資料回復的方法。 至於前面提到的高階語言,理論上所有的資料庫語言 都可以做到前述的動作,但是SQL( structured Query Language)卻是最適用於關聯式資料庫的。SQL是用在資料 操作(取得與變更)、資料定義、及資料管理上的,每個資 料的取得、變更、定義或管理的動作都是以Sql的敘述或 命令來表示。而在前述中,資料操作可分為兩種:資料取 得與資料異動。其中,"取得"表示找出想要的特定資料; 而"異動"則表示新增、刪除或修改資料。4 2551 4 V. Description of the Invention (1) The present invention relates to a method for data exchange, and in particular, to a method for driving data exchange using e-mail. At present, in the application of database, relational database is becoming more and more popular and popular. A relational database management system (DBMS) can be roughly defined as follows: (1) All data in the database are stored in tables. (2) Represent data in a logical way, without having to worry about how the data is stored. (3) Use a high-level language to structure, query, and modify the information in the database morning. (4) It should be able to provide the main Θ related operations such as selection 'projection, join, and set operations such as union' intersection 'difference' division. (5) It is necessary to support the view function, so that the user can query the data in the data table in a customized manner. (6) There must be a method for distinguishing the unknown value (nu L 丨 s) and 0 or blank. (7) Provide methods on integrity, authori z a t i on, transaction, and data reply. As for the aforementioned high-level languages, theoretically all database languages can do the aforementioned actions, but SQL (structured Query Language) is most suitable for relational databases. SQL is used for data operation (acquisition and change), data definition, and data management. Each data acquisition, change, definition, or management action is represented by SQL statements or commands. In the foregoing, data operations can be divided into two types: data acquisition and data changes. Among them, " Get " means finding the specific data you want; " Changes " means adding, deleting or modifying data.

0213-4566TW-ptd0213-4566TW-ptd

第4頁 4 2551 4,Page 4 4 2551 4,

五、發明說明(2) 當資料庫需要進行複製時,除了做備份外,另外就是 可能有兩部資料庫伺服器(DB server)需要跨網域進行資 料的複製或更新,此時,可以採用的方式一為直接做單向 的資料庫移轉(database transfer),將資料庫每隔„段 時間就傳送一次,但如此做法比較耗費網路頻寬。另外, 就是在兩部DB server的兩邊網域間建立信任關係 relationship),如果兩邊的server便可以直接看到對方 的資訊’不過此種方式,由於彼此間也可以直接修改對方 的資料,所以會有安全上的顧慮。 〇 况且’不論採取上述那一種方式’除了較占網路頻寬 外’網路連線的穩定性也會影響到資料庫的更新,也就是 說*當從一端的資料庫透過網路,例如Tcp/Ip的協定,對 另一端的資料庫進行資料複製或更新時,若網路在資料更 新的過程中斷線,將會造成資料更新的困擾。因為,除非 另外記錄更新的進度,否則便必須重頭開始更新的程序。 次有,於此,本發明之目的乃在於提出一種電子郵件驅 動 >、料父換方法,其可對於跨網域的資料庫進 換,而無前述目前技術上的缺點。 車進订貝枓乂V. Description of the invention (2) When the database needs to be copied, in addition to backup, there may be two database servers (DB servers) that need to copy or update data across the network domain. At this time, you can use The first method is to directly perform a one-way database transfer (database transfer), which will transfer the database once every… some time, but this method will consume more network bandwidth. In addition, it is on both sides of the two DB servers Establish a trust relationship between domains), if the servers on both sides can directly see each other's information, but this way, because each other can also directly modify each other's information, there will be security concerns. 〇 Moreover, 'regardless of Taking the above-mentioned method 'in addition to occupying more network bandwidth', the stability of the network connection will also affect the update of the database, that is to say * when the database from one end passes through the network, such as Agreement, when copying or updating data on the other end of the database, if the network is interrupted during the data update process, it will cause data update problems. Unless the progress of the update is recorded separately, the update process must be restarted. Secondly, the purpose of the present invention is to propose an email-driven > parent-for-data exchange method, which can be used for cross-domain databases Change without the aforementioned shortcomings of the current technology.

為了達成上述之目的,本發明主要是將資料庫交換 %,所需要的SQL指令包裝成一可執行之指令,然後從 地端透過網路,以電子郵件的形式傳送給遠端,遠端在 收到電子郵件後,識別出其為資料庫更新資料,而主動 以執行,藉以複製或更新資料庫。 為了更進—步說明本發明之方法、架構及特徵,茲In order to achieve the above purpose, the present invention mainly exchanges the database with%. The required SQL command is packaged into an executable command, and then transmitted from the local end to the remote end in the form of email through the network. After the email is received, it is identified as the database update data, and the initiative is executed to copy or update the database. In order to further describe the method, architecture and features of the present invention,

五、發明說明(3) 合附圖說明較佳實施例如下,其中 第1圖係繪示根據本發明之電子郵件 法之系統的方塊圖。 動貝料交換方 第2圖係繪示用以說明本發明之電子 換方法的SQL指令。 卞郵件驅動資料交 第3圖係上述第2圖之可執行的Sql指今 之圖式。 7執行後的結果 參考標號說明 1 〇資料交換引擎、1 2工作表單、;[4資V. Description of the Invention (3) The preferred embodiment will be described with reference to the accompanying drawings, wherein FIG. 1 is a block diagram showing a system of an email method according to the present invention. Moving Material Exchanger FIG. 2 is a diagram showing SQL instructions for explaining the electronic exchange method of the present invention.卞 Mail-driven data transfer Figure 3 is the executable Sql reference figure of Figure 2 above. 7 Results after implementation Reference symbol description 1 Data exchange engine, 1 2 worksheet, [4 capital

P 庫、16資料庫、18 SQL儲存庫、2〇資料送置、義 實施例說明 、裝置。 請參閱第1圆,本發明之電子郵件驅動資 之系统係包括··資料交換引擎1〇、工作表單12、 ' 定義庫14、資料庫i6、SQL儲存庫18 '資料傳送裝置2〇乂。、 其中,上述資料交換引擎1 〇係整個資料交換的控制中 心,其自工作表單12取得工作(task)後即先至 ^義庫丨4取得資料交換定義,然後至資料庫16取得要 父換的實際貪料庫,接著至SQL儲存庫18取得所須的SQL护 令,包裝資料交換定義與要進行交換的資料庫,使之成^ 一可執行的SQL指令,執行此8以指令便可對資料庫進行 料交換的動作。然後,將此可執行的卯^指令以電子郵件 的方式傳送給欲進行資料交換的資料庫。該資料庫在收到 此電子郵件%,會先判別郵件的内容,在確認内部包含可 執行的SQL和令後,便會自動執行該SQl指令,以進行資料 425514,P library, 16 database, 18 SQL storage, 20 data sending, meaning, description of the embodiment, device. Please refer to the first circle. The e-mail-driven system of the present invention includes a data exchange engine 10, a worksheet 12, a 'definition database 14, a database i6, a SQL repository 18' and a data transmission device 20 '. Among them, the above-mentioned data exchange engine 10 is the control center of the entire data exchange. After obtaining the task from the work form 12, it first goes to the definition database 丨 4 to obtain the definition of data exchange, and then to the database 16 to obtain the parent exchange. The actual database, then go to the SQL repository 18 to obtain the required SQL protection order, package the data exchange definition and the database to be exchanged, so that it becomes an executable SQL command, execute this 8 command The action of material exchange on the database. Then, send this executable command to the database to be exchanged by e-mail. Upon receiving this email, the database will first determine the content of the email, and after confirming that it contains executable SQL and orders, it will automatically execute the SQl instruction for data 425514,

當然,上述可執行的^指令也可利用分 件模式 DCOM (DiStributing c〇mm〇n 〇bject ' 通用物 Management),從一資料庫線上直接傳送給另一資料 接下來,請參閱第2圖,以一實施例說明在本發 電子郵件驅動資料交換方法的可執行之SQL指令。 配合上述對資料交換引擎的操作之說明,從第2圖中 可知,當資料交換引擎取得工作後,首先,取得資料交 定義,如標號1 0 0所指示者。 、 五、發明說明(4) 交換。Of course, the above-executable ^ instruction can also use the DCOM (DiStributing c〇mm〇n 〇bject 'Common Object Management), which can be directly transmitted from one database line to another. Next, please refer to Figure 2, An example is used to describe the executable SQL instructions in the e-mail-driven data exchange method. In accordance with the above description of the operation of the data exchange engine, it can be seen from Fig. 2 that when the data exchange engine obtains work, first, the data transfer definition is obtained, as indicated by the reference numeral 100. 5. Explanation of the invention (4) Exchange.

DatabaseName Src=00ERPDB DatabaseNaine Trg = 00ERPDBDatabaseName Src = 00ERPDB DatabaseNaine Trg = 00ERPDB

TableName Src=ABCStMatICategory TableName Trg^ABCStMatICategory 接下來’即是取得資料庫,如標號1 〇 2所指示者。 sABCCategory=ABCCategory iCycleCuntPrd=CycleCuntPrd cCostPerceat=CostPercent sLatelyChangedDate=LatelyChangedDate sLatelyChangedUser=LatelyChangedUserTableName Src = ABCStMatICategory TableName Trg ^ ABCStMatICategory The next step is to get the database, as indicated by the number 1 02. sABCCategory = ABCCategory iCycleCuntPrd = CycleCuntPrd cCostPerceat = CostPercent sLatelyChangedDate = LatelyChangedDate sLatelyChangedUser = LatelyChangedUser

sDataOwner=DataOwner sDataOwnerGroup^DataOwnerGroup sCreateDate=CreateDate sIsDataEffID=IsDataEffID 接下來,便是自SQL儲存庫中取出SQL指令’如第2圖sDataOwner = DataOwner sDataOwnerGroup ^ DataOwnerGroup sCreateDate = CreateDate sIsDataEffID = IsDataEffID Next, the SQL command is fetched from the SQL repository ’as shown in Figure 2

II

戽 2 5 5 1 “ 五、發明說明(5) 之標k 1 0 4所指示者。 SQL = Insert into ABCStkMat1Category (ABCCategory, Cyc1eCuntPrd, CostPercent, Late1yChangedDate, LatelyChangedUser, Da taOwner, DataOwnerGroup, CreateDate, IsDataEffID) Values ( :sABCCategory,: i Cyc1eCuntPrd, :cCostPercent, isLatelyChangedDate, :sLatelyChangedUser, :sDataOwner, :sDataOwnerGroup, :sCreateDate, : s I sDataE f fID) 然後,將資料交換定義與要進行交換的資料包裝成一 可執行的SQL指令如第2圖之標號106所指示者。戽 2 5 5 1 "5. Indicated by the index k 1 0 4 of the invention description (5). SQL = Insert into ABCStkMat1Category (ABCCategory, Cyc1eCuntPrd, CostPercent, Late1yChangedDate, LatelyChangedUser, Da taOwner, DataOwnerGroup, CreateDate, IsDataEffID) Value : sABCCategory ,: i Cyc1eCuntPrd,: cCostPercent, isLatelyChangedDate,: sLatelyChangedUser,: sDataOwner,: sDataOwnerGroup,: sCreateDate,: s I sDataE f fID) Then, package the data exchange definition with the data to be exchanged into an executable SQL instruction As indicated by reference numeral 106 in FIG. 2.

Insert into ABCStkMat1 Category (ABCCategory,Insert into ABCStkMat1 Category (ABCCategory,

Cyc1eCuntPrd, CostPercent, LatelyChangedDate, LatelyChangedUser, DataOwner, Dat aOwnerGroup, CreateDate, IsDataEffID) Values ("A", 15, 85, " 09/25/1 998 AM 09:30:53", "guest11, "guest", "guest", "09/25/1998 AM 09:30:53", "Y")Cyc1eCuntPrd, CostPercent, LatelyChangedDate, LatelyChangedUser, DataOwner, Dat aOwnerGroup, CreateDate, IsDataEffID) Values (" A ", 15, 85, " 09/25/1 998 AM 09: 30: 53 ", " guest11, " guest ", " guest ", " 09/25/1998 AM 09: 30: 53 ", " Y ")

Insert into ABCStkMat1 Category (ABCCategory, CycleCuntPrd, CostPercent, LatelyChangedDate, LatelyChangedUser, DataOwner, DataOwnerGroup, CreateDate, IsDataEffID) Values ("B", 30, 40, ,,01 /01 /1900", " 01 / 0 1 /1 90 0", "Y”)Insert into ABCStkMat1 Category (ABCCategory, CycleCuntPrd, CostPercent, LatelyChangedDate, LatelyChangedUser, DataOwner, DataOwnerGroup, CreateDate, IsDataEffID) Values (" B ", 30, 40,, 01/01/1900 ", " 01/0 1 / 1 90 0 ", " Y ")

Insert into ABCStkMat1 Category (ABCCategory,Insert into ABCStkMat1 Category (ABCCategory,

Cyc1eCuntPrd, CostPercent, LatelyChangedDate, LatelyChangedUser, DataOwner, DataOwnerGroup,Cyc1eCuntPrd, CostPercent, LatelyChangedDate, LatelyChangedUser, DataOwner, DataOwnerGroup,

第8頁 4 2 551 4· 五、發明說明(6)Page 8 4 2 551 4 · V. Explanation of the invention (6)

CreateDate, IsDataEffID) Values ("CM, 90, 20, 01/01/1900",”",》",","〇1/〇1/19〇〇", τ) 此即為可執行2SqL指令,可將此指令以電子郵件的 :二寄給欲進行資料交換之資料庫,經執行後會產生如 第3圖所不之結果0 施!本發明之方法’可在資料庫間進行資料交 ϊ 將欲交換之資料,做成可執行的sql指令, 無須-直占線,可以避免進行=貝料交換的過程中’ 資料交換係以電子郵;頻寬的浪費。另夕卜,由於其 無須擔心在資料交換的過程執灯,l指令,所以 在上述本發明之方法中,不穩定或中斷的問題。 行特定程式的微處理器。而i上述資料交換引擎可為一執 義庫及上述SQL儲存庫係儲上述資料庫、上述資料交換定 或是硬碟等。至於上述資 於儲存裝置中,例如記憶體 通訊裝置。 ’送袭置則可為數據機等數據CreateDate, IsDataEffID) Values (" CM, 90, 20, 01/01/1900 ", ""," ", ", " 〇1 / 〇1 / 19〇〇 ", τ) Now In order to execute the 2SqL instruction, this instruction can be e-mailed to the database to be exchanged. After the execution, it will produce a result that is not shown in Figure 3. The method of the present invention can be used in the data. Data exchange between the warehouses The data to be exchanged is made into executable SQL commands, no need to be-directly occupied, you can avoid the process of = material exchange. The data exchange is electronic mail; waste of bandwidth. Xibu, because it does not need to worry about holding the lights and instructions in the process of data exchange, so in the method of the invention described above, the problem of instability or interruption. A microprocessor running a specific program. The above data exchange engine can be An enforcement library and the above-mentioned SQL repository are used to store the above-mentioned database, the above-mentioned data exchange or hard disk, etc. As for the above-mentioned resources in the storage device, such as a memory communication device.

Claims (1)

(·.〜種電子郵件驅動資枓交換方法,包括下列步驟: 資料^)利用—資料交換引擎,根據第—資料庫中欲進行 又換之資料,產生一可執行的指令; 送給將上述可執行的指令,利用電子郵件的方式,傳 二資料庫,藉以執行該指令,而進入資料交換。 法,其2申請專利範圍第1項的電子郵件驅動資料交換方 3、 ’上述可執行的指令為一 SQL指令。 法,其Ϊ申請專利範圍第1項的電子郵件驅動資料交換方(·. ~ An e-mail-driven resource exchange method, including the following steps: Data ^) Utilizing a data exchange engine to generate an executable instruction based on the data to be exchanged in the first database; sending it to the above Executable instructions are transmitted to the second database by e-mail, and the instructions are executed to enter the data exchange. Method, the second email application-driven data exchange party of the first patent application scope 3, and the above-mentioned executable command is a SQL command. Law, which is the first email-driven data exchange party applying for patent scope 的方4 ^,上述步驟(i)中資料交換引擎產生可執行指令 &係包括下列步驟: 得資料^自她作表單取得工作後,先至資料交換定義庫取 τ父換定義; SQL· 取得要進行交換的實際資料庫,並且取得所須的 庫,(ϋ接^著&包裝上述資料交換定義與要進行交換的資料 坪便之成為一可執行的SQL指令。 4甘^申請專利範圍第1項的電子郵件驅動資料交換方 ' ,、,上述資料交換引擎係一執行特定程式的微處理 :令5其機The method 4 ^, in step (i) above, the data exchange engine generates executable instructions & includes the following steps: get the data ^ After she has obtained the form, she first goes to the data exchange definition database to get the τ parent for the definition; SQL · Obtain the actual database to be exchanged, and obtain the required database. (Continuing & packaging the above data exchange definition and the data to be exchanged will become an executable SQL instruction. 4Grant a patent The email-driven data exchange party of the first item of scope, ", the above data exchange engine is a micro-processor that executes a specific program: 第10頁Page 10
TW88109801A 1999-06-11 1999-06-11 E-mail driving data exchange method TW425514B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW88109801A TW425514B (en) 1999-06-11 1999-06-11 E-mail driving data exchange method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW88109801A TW425514B (en) 1999-06-11 1999-06-11 E-mail driving data exchange method

Publications (1)

Publication Number Publication Date
TW425514B true TW425514B (en) 2001-03-11

Family

ID=21641077

Family Applications (1)

Application Number Title Priority Date Filing Date
TW88109801A TW425514B (en) 1999-06-11 1999-06-11 E-mail driving data exchange method

Country Status (1)

Country Link
TW (1) TW425514B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8719325B2 (en) 2003-02-28 2014-05-06 Microsoft Corporation Method to initiate server based collaboration on e-mail attachments

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8719325B2 (en) 2003-02-28 2014-05-06 Microsoft Corporation Method to initiate server based collaboration on e-mail attachments
US9350775B2 (en) 2003-02-28 2016-05-24 Microsoft Technology Licensing, Llc Method to initiate server based collaboration on E-mail attachments
US9705946B2 (en) 2003-02-28 2017-07-11 Microsoft Technology Licensing, Llc Method to initiate server based collaboration on e-mail attachments

Similar Documents

Publication Publication Date Title
KR102293093B1 (en) Versioned hierarchical data structures in a distributed data store
JP4856541B2 (en) Automatic and dynamic provisioning of databases
EP2005709B1 (en) Service registry and relevant system and method
CN103299267B (en) The method and system connecting for carrying out the interleaved of many tenant's storages
US7487191B2 (en) Method and system for model-based replication of data
CN101421726B (en) Occasionally-connected application server
US7783591B2 (en) Coordinated data conversion systems and methods
US8090693B2 (en) System, method, and article of manufacture for maintaining and accessing a whois database
US6240416B1 (en) Distributed metadata system and method
US4631664A (en) Partnership data base management system and method
CN111597015B (en) Transaction processing method and device, computer equipment and storage medium
CN104239439A (en) Selective database replication
CN1848849B (en) Method and device for replicating modifications of a directory
US20080046501A1 (en) Managing uneven authorizations in a computer data exchange
US20050234934A1 (en) System and method for controlling the release of updates to a database configuration
JP2010531481A (en) Transfer of tabular parameters via tabular data stream protocol
US10296542B2 (en) Integration database framework
US20040044793A1 (en) Isolated mappping point
US7970867B2 (en) Hypermedia management system
US8250104B2 (en) Life cycle based data coordination
CN105550342B (en) A kind of data processing method of the distributed data base of all-transparent
CN116821138A (en) Data processing method and related equipment
TW425514B (en) E-mail driving data exchange method
JP3330006B2 (en) Network system including information storage system, input system of the system, and
WO2004021185A2 (en) Isolated mapping point

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent
MM4A Annulment or lapse of patent due to non-payment of fees