System and method for registering and deploying stored procedures and triggers into a device database
First Claim
Patent Images
1. A method for deploying at least one stored procedure to a device, the method comprising:
- generating a data project and a device database associated with an installation property within a solution;
associating the data project with the device database;
adding the at least one stored procedure to the data project, the at least one stored procedure comprising a precompiled set of one or more statements for accessing data in a database, one of the stored procedures being a trigger that is executed in response to a data modification operation;
receiving a request to build the solution, and, responsive to the request;
automatically embedding each stored procedure in the data project into the device database, wherein embedding each stored procedure comprises;
determining whether the at least one stored procedure has been previously embedded in the device database; and
if the at least one stored procedure has been previously embedded, then removing the previously embedded stored procedure; and
automatically registering each stored procedure in the data project with the device database;
deploying the device database with the at least one embedded stored procedure as a single unit to the device; and
installing the device database with the at least one embedded stored procedure on the device according to the installation property, wherein installing the device database on the device according to the installation property comprises overwriting an existing device database that was previously installed on the device if the installation property comprises an always overwrite setting, overwriting the existing device database if the installation property comprises an overwrite if different setting and the deployed device database is different from the existing device database, and installing the deployed device database on the device if the installation property comprises a never overwrite setting and no existing device database was previously installed on the device.
2 Assignments
0 Petitions
Accused Products
Abstract
A development tool enables a device database to be created, managed, and deployed to a device as part of the a device project. The device database may have an installation property which provides logic for installing the device database at the device. Additionally, stored procedures and triggers may be registered with the device database. The registered stored procedures and triggers may be embedded in the device database and deployed to the device along with the device database.
22 Citations
32 Claims
-
1. A method for deploying at least one stored procedure to a device, the method comprising:
-
generating a data project and a device database associated with an installation property within a solution; associating the data project with the device database; adding the at least one stored procedure to the data project, the at least one stored procedure comprising a precompiled set of one or more statements for accessing data in a database, one of the stored procedures being a trigger that is executed in response to a data modification operation; receiving a request to build the solution, and, responsive to the request; automatically embedding each stored procedure in the data project into the device database, wherein embedding each stored procedure comprises; determining whether the at least one stored procedure has been previously embedded in the device database; and if the at least one stored procedure has been previously embedded, then removing the previously embedded stored procedure; and automatically registering each stored procedure in the data project with the device database; deploying the device database with the at least one embedded stored procedure as a single unit to the device; and installing the device database with the at least one embedded stored procedure on the device according to the installation property, wherein installing the device database on the device according to the installation property comprises overwriting an existing device database that was previously installed on the device if the installation property comprises an always overwrite setting, overwriting the existing device database if the installation property comprises an overwrite if different setting and the deployed device database is different from the existing device database, and installing the deployed device database on the device if the installation property comprises a never overwrite setting and no existing device database was previously installed on the device. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method for deploying at least one stored procedure comprising a precompiled set of one or more statements for accessing data in a database to a device, the method comprising;
-
providing a first interface that enables a data project containing the at least one stored procedure and a trigger that is executed in response to a data modification operation and a device project containing a device database to be generated within a solution, the first interface further enabling the stored procedure and the trigger to be associated with the device database, the device database associated with an installation property comprising one of an always overwrite setting, an overwrite if different setting, and a never overwrite setting; providing a second interface that enables the at least one stored procedure and the trigger to be added to an assembly within the data project; receiving a request to build the solution, and, responsive to the request; automatically embedding the assembly within the device database; and automatically registering the assembly with the device database; deploying the device database with the embedded assembly as a single unit to the device; and installing the deployed device database on the device according to the installation property, wherein installing the deployed device database on the device according to the installation property comprises overwriting an existing device database that was previously installed on the device if the installation property comprises the always overwrite setting, overwriting the existing device database if the installation property comprises the overwrite if different setting and the deployed device database is different from the existing device database, and installing the deployed device database on the device if the installation property comprises the never overwrite setting and no existing device database was previously installed on the device. - View Dependent Claims (8, 9, 10, 11, 12, 13, 14, 15, 16)
-
-
17. A computer readable storage medium for deploying a stored procedure to a device, the computer readable storage medium comprising computer executable instructions for:
-
generating a data project and a device database associated with an installation property within a solution; associating the data project with the device database; adding the at least one stored procedure to the data project, the at least one stored procedure comprising a precompiled set of one or more statements for accessing data in a database, one of the stored procedures being a trigger that is executed in response to a data modification operation; receiving a request to build the solution, and, responsive to the request; automatically embedding each stored procedure in the data project into the device database, wherein embedding each stored procedure comprises; determining whether the at least one stored procedure has been previously embedded in the device database; and if the at least one stored procedure has been previously embedded, then removing the previously embedded procedure; and automatically registering each stored procedure in the data project with the device database; deploying the device database with the at least one embedded stored procedure as a single unit to the device; and installing the device database with the at least one embedded stored procedure on the device according to the installation property, wherein installing the device database on the device according to the installation property comprises overwriting an existing device database that was previously installed on the device if the installation property comprises an always overwrite setting, overwriting the existing device database if the installation property comprises an overwrite if different setting and the deployed device database is different from the existing device database, and installing the deployed device database on the device if the installation property comprises a never overwrite setting and no existing device database was previously installed on the device. - View Dependent Claims (18, 19, 20, 21, 22)
-
-
23. A computer readable storage medium for deploying at least one stored procedure comprising a precompiled set of one or more statements for accessing data in a database to a device, the computer readable storage medium comprising computer executable instructions for:
-
providing a first interface that enables a data project containing the at least one stored procedure and a trigger that is executed in response to a data modification operation and a device project containing a device database to be generated within a solution, the first interface further enabling the stored procedure and the trigger to be associated with the device database, the device database associated with an installation property comprising one of an always overwrite setting, an overwrite if different setting, and a never overwrite setting; providing a second interface that enables the at least one stored procedure and the trigger to be added to an assembly within the data project; receiving a request to build the solution, and, responsive to the request; automatically embedding the assembly within the device database; and automatically registering the assembly with the device database; deploying the device database with the embedded assembly as a single unit to the device; and installing the deployed device database on the device according to the installation property, wherein installing the deployed device database on the device according to the installation property comprises overwriting an existing device database that was previously installed on the device if the installation property comprises the always overwrite setting, overwriting the existing device database if the installation property comprises the overwrite if different setting and the deployed device database is different from the existing device database, and installing the deployed device database on the device if the installation property comprises the never overwrite setting and no existing device database was previously installed on the device. - View Dependent Claims (24, 25, 26, 27, 28, 29, 30, 31, 32)
-
Specification