SQL Options

6.jpg

Figure 7

 

Commit Options – some SQL servers provide the opportunity of saving the data at a certain stage of the implementation of the script. This can be done through the Commit SQL instruction. For example, you can save the result every 10 entries – then, for Commit after, you should set the value of 10. If you want to perform the Commit operation after the last entry as well then you should choose Commit after script.

An example of exported file with the following settings:


7.jpg

Figure 8


CREATE TABLE [MyTable] ([DisplayName] char varying(255),
[LastName] char varying(255));

COMMIT;

INSERT INTO [MyTable] ([DisplayName],[LastName])
VALUES ('A. Ferreira','Ferreira');
INSERT INTO [MyTable] ([DisplayName],[LastName])
VALUES ('Albert Hajrizaj','Hajrizaj');

COMMIT;

....
INSERT INTO [MyTable] ([DisplayName],[LastName])
VALUES ('WENETU',null);

COMMIT;