<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: easyTravel - using other RDBMSes in Start with Dynatrace</title>
    <link>https://community.dynatrace.com/t5/Start-with-Dynatrace/easyTravel-using-other-RDBMSes/m-p/201869#M216</link>
    <description>&lt;P&gt;Thank you for the information&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/21724"&gt;@Karolina_Linda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jan 2023 21:07:09 GMT</pubDate>
    <dc:creator>ChadTurner</dc:creator>
    <dc:date>2023-01-09T21:07:09Z</dc:date>
    <item>
      <title>easyTravel - using other RDBMSes</title>
      <link>https://community.dynatrace.com/t5/Start-with-Dynatrace/easyTravel-using-other-RDBMSes/m-p/181353#M104</link>
      <description>&lt;P&gt;&lt;SPAN&gt;By default, easyTravel uses an internal Derby Database on the Java side and an SQL Server Compact internal database on the .NET side. However, you can change this to use other types of RDBMS, this page describes how you can configure this.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;Java&lt;/H2&gt;&lt;H4&gt;Connection settings&lt;/H4&gt;&lt;P&gt;In the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;EasyTravel installation (dist) folde&lt;/STRONG&gt;r, search for this file:&lt;/P&gt;&lt;PRE&gt;resources/easyTravelConfig.properties&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;These properties control the Database:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# for starting the internal Derby database in the Launcher
config.internalDatabaseEnabled=true
config.internalDatabasePort=1527

# how to connect to the Java database, user/password can be empty on Derby
config.databaseDriver=org.apache.derby.jdbc.ClientDriver
config.databaseUrl=jdbc:derby://localhost:1527/easyTravelBusiness;create=true
config.databaseUser=APP
config.databasePassword=APP&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above values are part of the standard easyTravel installation.&lt;/P&gt;&lt;P&gt;They can be changed to use any database desired. The following sets of properties have been&lt;BR /&gt;tested against DB/2, SQLServer and Oracle DBMS.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":warning:"&gt;⚠️&lt;/span&gt;&lt;SPAN&gt;If external RDBMS is on the same machine, the property&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;config.internalDatabasePort=1527&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;must point to some free port. easyTravel must start a derby instance, even when it is using external RDBMS.&lt;/SPAN&gt;&lt;/P&gt;&lt;H4&gt;&lt;SPAN&gt;DB/2&lt;/SPAN&gt;&lt;/H4&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;config.internalDatabaseEnabled=false

config.databaseDriver=com.ibm.db2.jcc.DB2Driver
config.databaseUrl=jdbc:db2://dbserv:50000/easyTravelBusiness
config.databaseUser=easytraveluser
config.databasePassword=labpass&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H4&gt;Oracle&lt;/H4&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":warning:"&gt;⚠️&lt;/span&gt;&lt;SPAN&gt;Oracle versions 12 is only supported in easyTravel builds&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;2542 or higher due to a required newer version of Hibernate (see&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://hibernate.atlassian.net/browse/HHH-9044" target="_blank" rel="noopener"&gt;HHH-9044&lt;/A&gt;).&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;config.internalDatabaseEnabled=false

config.databaseDriver=oracle.jdbc.OracleDriver
config.databaseUrl=jdbc:oracle:thin:$user_name/$user_pass@dbserv:1521:easyTravelBusiness
config.databaseUser=easytraveluser
config.databasePassword=labpass&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":warning:"&gt;⚠️&lt;/span&gt;&amp;nbsp;easyTravelBusiness&amp;nbsp;is an Oracle SID&amp;nbsp;$user_name&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&amp;nbsp;$user_pass&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;should be filled with real values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Oracle service:&lt;/P&gt;&lt;PRE&gt;config.databaseUrl=jdbc:oracle:thin:@//dbhost:1521/easytravel1&lt;/PRE&gt;&lt;P&gt;User and password must be provided as parameters. easytravel1 is service name&lt;/P&gt;&lt;P&gt;Warning! Due to issue ORA-01882: timezone region not found while connecting to Oracle workaround there is workaround,&amp;nbsp;jvm parameters&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;have to contain&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-Duser.timezone=GMT. Of course it should be adjusted to your timezone. Example is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;config.javaopts=-Djava.util.logging.config.file=../resources/logging.properties,-Duser.timezone="+01:00"

config.frontendJavaopts=-Xmx160m,-Duser.timezone="+01:00"

config.backendJavaopts=-Xmx64m,-Duser.timezone="+01:00"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;also files launching jvm like weblauncher/weblauncher.sh should look like below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$JAVA_BIN $COVERAGE  -Duser.timezone='+01:00'  -Dcom.dynatrace.easytravel.install.dir.correction=.. -jar ../com.dynatrace.easytravel.weblauncher.jar "$@"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example code for the DB user creation:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;create user easytraveluser identified by labpass;

grant CREATE SESSION, ALTER SESSION, CREATE DATABASE LINK, CREATE MATERIALIZED VIEW, CREATE PROCEDURE, 
CREATE PUBLIC SYNONYM, CREATE ROLE, CREATE SEQUENCE, CREATE SYNONYM, CREATE TABLE, CREATE TRIGGER, 
CREATE TYPE, CREATE VIEW, UNLIMITED TABLESPACE
to easytraveluser;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H4&gt;SQL Server&lt;/H4&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":information:"&gt;ℹ️&lt;/span&gt;&lt;STRONG&gt;Locale&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;Note that easyTravel will insert a number of locations with non-ASCII characters as part of the name, e.g. Århus. Make sure you set up the SQL Server database with a local that supports these characters.&lt;/P&gt;&lt;P&gt;SQL_Latin1_General_CP1_CI_AS is reported to work, also any UTF-8 or UTF-16 based encoding should be fine.&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;There are at least two different JDBC drivers available for SQL Server, depending on which one you want to use the following settings apply:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL Server with JTDS-JDBC Driver&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;config.internalDatabaseEnabled=false

config.databaseDriver=net.sourceforge.jtds.jdbc.Driver
config.databaseUrl=jdbc:jtds:sqlserver://dbserv5:1433/easyTravelBusiness;instance=dynasqlserver
config.databaseUser=easytraveluser
config.databasePassword=labpass&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":warning:"&gt;⚠️&lt;/span&gt;&amp;nbsp;&lt;FONT color="#000000"&gt;Parameter 'instance' is optional and can be omitted.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;There are two stored procedures used by easyTravel but not created automatically:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;*&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;sp_findJourneys&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- if you intend to use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;FindJourneysSqlServerQueryOverride&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;easyTravel plugin, you can either setup the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;sp_findJourneys&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;stored procedure yourself, or use the provided source file&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;sp_findJourneys.sql&lt;/STRONG&gt;, which is located in the plugin's JAR file root.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;*&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;sp_verifyLocation&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- used by&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;SlowAuthentication&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;plugin. You can create the procedure using provided source file in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;sp_verifyLocation.sql&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;which is located in the plugin's JAR file root.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL Server with Microsoft JDBC Driver&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;config.internalDatabaseEnabled=false

config.databaseDriver=com.microsoft.sqlserver.jdbc.SQLServerDriver
config.databaseUrl=jdbc:sqlserver://[dbhostname]:1433;databaseName=easyTravelBusiness
config.databaseUser=easytravel
config.databasePassword=easytravel&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;easyTravel cannot ship the Microsoft JDBC driver because of license considerations. To make it work, you need to complete the following steps:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Download the MS SQL JDBC drivers at:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="http://go.microsoft.com/fwlink/?LinkId=245496" target="_blank" rel="noopener"&gt;http://go.microsoft.com/fwlink/?LinkId=245496&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Unpack "mssql-jdbc-7.0.0.jre8.jar" to C:\Program Files\dynaTrace\easyTravel (x64)\lib&lt;/LI&gt;&lt;LI&gt;Unpack "META-INF/MANIFEST.MF" from "com.dynatrace.easytravel.database.jar" in your main easyTravel directory&lt;/LI&gt;&lt;LI&gt;Add "lib/mssql-jdbc-7.0.0.jre8.jar" to the end of the Class Path in MANIFEST.MF&lt;/LI&gt;&lt;LI&gt;Overwrite the MANIFEST.MF in "com.dynatrace.easytravel.database.jar" with your changed file.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":warning:"&gt;⚠️&lt;/span&gt;If you are using a new edition of SQL Server you might encounter an error which looks like "Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near '@P0'". In such a case, you need to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Unpack "META-INF/persistence.xml" from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"com.dynatrace.easytravel.database.jar" in your main easyTravel directory&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN&gt;Modify this file by adding a new property in the properties section:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;property name="hibernate.dialect" value="org.hibernate.dialect.SQLServer2012Dialect"/&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Overwrite the persistence.xml in "com.dynatrace.easytravel.database.jar" with your changed file.&lt;/LI&gt;&lt;/UL&gt;&lt;H4&gt;MySQL&lt;/H4&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":warning:"&gt;⚠️&lt;/span&gt;Using easyTravel with MySQL leads to errors about duplicate entries with special characters in the Journey/Location-Name, e.g. "Ibagué" and "Ibague"! (Detailed informations:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://bugs.mysql.com/bug.php?id=57877" target="_blank" rel="noopener"&gt;https://bugs.mysql.com/bug.php?id=57877&lt;/A&gt;). There are two possible solutions for this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Setting collation to utf8_bin, as described below should remove this problem (tested with MySQL 5.5, 5.6).&lt;/LI&gt;&lt;LI&gt;You can try to adjust the file "data/Cities.txt" inside the file com.dynatrace.easytravel.database.jar, by removing following cities: Vitória, Ibagué, Århus, Székesfehérvár, Mérida, Gdañsk, Córdoba, Skövde, Tabor, Malmo, Villa Maria.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;config.internalDatabaseEnabled=false config.databaseDriver=com.mysql.jdbc.Driver config.databaseUrl=jdbc:mysql://&amp;lt;client-host-ip&amp;gt;/easyTravelBusiness config.databaseUser=root config.databasePassword=labpass&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How to configure MySQL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Create a database and allow access from other machines:&lt;BR /&gt;Adjust config at /etc/mysql/my.cnf, i&lt;SPAN&gt;n section [mysqld]&lt;/SPAN&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;add&lt;P&gt;character-set-server = utf8&lt;BR /&gt;collation-server = utf8_bin&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;comment out&amp;nbsp;&lt;BR /&gt;bind-address = 127.0.0.1&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mysql -u root -p

create database easyTravelBusiness;
GRANT ALL PRIVILEGES ON *.* TO root@'&amp;lt;client-host&amp;gt;' IDENTIFIED BY 'labpass';&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://dev.mysql.com/doc/refman/5.0/en/" target="_blank" rel="noopener"&gt;http://dev.mysql.com/doc/refman/5.0/en/&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-14-04" target="_blank" rel="noopener"&gt;Install MySQL on Ubuntu 14.04&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-16-04" target="_blank" rel="noopener"&gt;Install MySQL on Ubuntu 16.04&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H4&gt;Database schema&lt;/H4&gt;&lt;P&gt;easyTravel will try to automatically create the schema, which works for built-in Derby and the above mentioned DBMS. This is done with the hibernate feature&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;hibernate.hbm2ddl.auto&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;set to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;update&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;It also creates the database content on startup. Existing content will not be erased.&lt;/P&gt;&lt;H2&gt;.NET&lt;/H2&gt;&lt;P&gt;Currently, two databases are supported:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SQL Server Compact Edition (which is default)&lt;/LI&gt;&lt;LI&gt;SQL Server&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;to switch to SQL Server you have to modify dotNetPaymentBackend/web.config.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;connectionStrings&amp;gt;
    &amp;lt;add name="PaymentEntities" connectionString="metadata=res://*/AppData.PaymentDB.csdl|res://*/AppData.PaymentDB.ssdl|res://*/AppData.PaymentDB.msl;provider=System.Data.SqlServerCe.3.5;provider connection string=&amp;amp;quot;Data Source=|DataDirectory|PaymentData.sdf;Password=easyTravelDB;Persist Security Info=True&amp;amp;quot;" providerName="System.Data.EntityClient"/&amp;gt;
    &amp;lt;add name="SQLConnection" connectionString="Data Source=|DataDirectory|PaymentData.sdf;Password=easyTravelDB;Persist Security Info=True" providerName="System.Data.SqlServerCe.3.5" /&amp;gt;
    &amp;lt;!--add name="SQLConnection" connectionString="Data Source=**source**;Database=**database**;User ID=**user**;Password=**password**" providerName="System.Data.SqlClient" /&amp;gt;
    &amp;lt;add name="PaymentEntities" connectionString="metadata=res://*/dotNetPaymentBackend.AppData.PaymentDBSQLServer.ssdl|res://*/AppData.PaymentDB.csdl|res://*/AppData.PaymentDB.msl;provider=System.Data.SqlClient;provider connection string=&amp;amp;quot;Data Source=**source**;Initial Catalog=**database**;User ID=**user**;Password=**password**;MultipleActiveResultSets=True&amp;amp;quot;" providerName="System.Data.EntityClient" /--&amp;gt;
  &amp;lt;/connectionStrings&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at the bottom of the file you will find the element "connectionStrings". There remove the currently active connection-strings for "PaymentEntities" and "SQLConnection" and uncomment the other two, which are prepared for SQL Server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then fill out the place-holders with the corresponding values:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;**&lt;STRONG&gt;source&lt;/STRONG&gt;** --&amp;gt; server&lt;/LI&gt;&lt;LI&gt;**&lt;STRONG&gt;database&lt;/STRONG&gt;** --&amp;gt; datebase-name&lt;/LI&gt;&lt;LI&gt;**&lt;STRONG&gt;user&lt;/STRONG&gt;** --&amp;gt; db-user&lt;/LI&gt;&lt;LI&gt;**&lt;STRONG&gt;password&lt;/STRONG&gt;** --&amp;gt; db-password&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Make sure to modify both the SQLConnection and PaymentEntities.&lt;/P&gt;&lt;P&gt;Currently Schema has to be set to "dbo" which is the default value of SQL Server.&lt;/P&gt;&lt;P&gt;To create the tables on SQL Server with the correct constraints the following Script can be used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CREATE TABLE [CreditCard] (
  [number] nvarchar(32) NOT NULL
, [user] nvarchar(64) NOT NULL
, [validThrough] datetime NOT NULL
);
GO
CREATE TABLE [Payment] (
  [bookingId] nvarchar(64) NOT NULL
, [ccNumber] nvarchar(32) NOT NULL
, [amount] money NOT NULL
, [date] datetime NOT NULL
);
GO
CREATE TABLE [Report] (
  [tenant] nvarchar(255) NOT NULL
, [date] datetime NOT NULL
, [xmlData] ntext NULL
);
GO
ALTER TABLE [CreditCard] ADD CONSTRAINT [PK__CreditCard__0000000000000084] PRIMARY KEY ([number]);
GO
ALTER TABLE [Payment] ADD CONSTRAINT [PK_Payment] PRIMARY KEY ([bookingId]);
GO
ALTER TABLE [Report] ADD CONSTRAINT [PK__Report__000000000000006C] PRIMARY KEY ([tenant],[date]);
GO
CREATE UNIQUE INDEX [UQ__CreditCard__0000000000000089] ON [CreditCard] ([number] ASC);
GO
CREATE UNIQUE INDEX [UQ__Payment__000000000000002D] ON [Payment] ([bookingId] ASC);
GO
ALTER TABLE [Payment] ADD CONSTRAINT [FK_CREDITCARD_PAYMENT] FOREIGN KEY ([ccNumber]) REFERENCES [CreditCard]([number]) ON DELETE NO ACTION ON UPDATE NO ACTION;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 13:17:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Start-with-Dynatrace/easyTravel-using-other-RDBMSes/m-p/181353#M104</guid>
      <dc:creator>Karolina_Linda</dc:creator>
      <dc:date>2023-09-29T13:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: easyTravel - using other RDBMSes</title>
      <link>https://community.dynatrace.com/t5/Start-with-Dynatrace/easyTravel-using-other-RDBMSes/m-p/201869#M216</link>
      <description>&lt;P&gt;Thank you for the information&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/21724"&gt;@Karolina_Linda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 21:07:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Start-with-Dynatrace/easyTravel-using-other-RDBMSes/m-p/201869#M216</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2023-01-09T21:07:09Z</dc:date>
    </item>
  </channel>
</rss>

