Skip to content

Commit

Permalink
document date format
Browse files Browse the repository at this point in the history
  • Loading branch information
tsahi committed Jul 29, 2020
1 parent fdf8b57 commit 014f772
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
BEGIN
ALTER SESSION SET NLS_DATE_FORMAT='MM/DD/YYYY';

INSERT INTO Orders
(OrderID,CustomerID,EmployeeID,OrderDate,RequiredDate,
ShippedDate,ShipVia,Freight,ShipName,ShipAddress,
Expand Down Expand Up @@ -5810,4 +5812,5 @@ VALUES (11077,N'RATTC',1,'5/6/1998','6/3/1998',NULL,2,8.53,
N'Rattlesnake Canyon Grocery',N'2817 Milton Dr.',N'Albuquerque',
N'NM',N'87110',N'USA');
COMMIT;
END;
END;
/
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,8 @@ COMMIT;
END;

BEGIN
ALTER SESSION SET NLS_DATE_FORMAT='MM/DD/YYYY';

INSERT INTO Orders
(OrderID,CustomerID,EmployeeID,OrderDate,RequiredDate,
ShippedDate,ShipVia,Freight,ShipName,ShipAddress,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ truncate table products;
commit;
truncate table Employees;
commit;
TRUNCATE TABLE Orders;
COMMIT;
truncate table Customers;
commit;
truncate table simpledatatype;
commit;
truncate table debits;
commit;
TRUNCATE TABLE Region;
COMMIT;
TRUNCATE TABLE Orders;
COMMIT;
11 changes: 9 additions & 2 deletions BVT/Data.BVT/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,26 @@ C. The Oracle connection string is configured as follows:
User Id: SYSTEM<br/>
Password: oracle

These values will need to be modified if the Oracle installation differs. Run this command on your Oracle database instance:
These values will need to be modified if the Oracle installation differs. Run this command on your Oracle XE database instance:

`ALTER USER SYSTEM IDENTIFIED BY oracle;`


D. Install Oracle and then run the SQL scripts located in DatabaseSetupScripts\OracleDBScripts, using the credentials above:
D. Install Oracle XE and then run the SQL scripts located in DatabaseSetupScripts\OracleDBScripts, using the credentials above:
1. 1.Table\alldb.sql
2. 2.Packages\ENTLIBTEST.pks
3. 2.Packages\ENTLIBTEST.pkb
4. 3.SP\1.cursor.sql<br/>
All other 18 scripts located in 3.SP directory
5. 4.Data\alldata.sql

**Tip:** To run these scripts in SQL*Plus utility provided with Oracle XE, use this syntax in the SQL*Plus console:
`@"path\to\1.Table\alldb.sql"`

**Note:** Orders table contains dates in MM/DD/YYYY format. If your system date format is different, you should
run this command in order to change the date format for the session:

`ALTER SESSION SET NLS_DATE_FORMAT='MM/DD/YYYY';`

Microsoft patterns & practices<br/>
http://microsoft.com/practices

0 comments on commit 014f772

Please sign in to comment.