<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.floodzilla.com/index.php?action=history&amp;feed=atom&amp;title=Creating_a_Test_Database</id>
	<title>Creating a Test Database - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.floodzilla.com/index.php?action=history&amp;feed=atom&amp;title=Creating_a_Test_Database"/>
	<link rel="alternate" type="text/html" href="http://wiki.floodzilla.com/index.php?title=Creating_a_Test_Database&amp;action=history"/>
	<updated>2026-09-10T17:42:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://wiki.floodzilla.com/index.php?title=Creating_a_Test_Database&amp;diff=478&amp;oldid=prev</id>
		<title>DaveSanderman: /* Creating a Test Database */</title>
		<link rel="alternate" type="text/html" href="http://wiki.floodzilla.com/index.php?title=Creating_a_Test_Database&amp;diff=478&amp;oldid=prev"/>
		<updated>2020-11-20T23:49:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Creating a Test Database&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 23:49, 20 November 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l73&quot; &gt;Line 73:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 73:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== Tables which need initial data ===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The following tables need initial data from the production database:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* DeviceTypes&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* UsgsSites&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediadb:diff::1.12:old-477:rev-478 --&gt;
&lt;/table&gt;</summary>
		<author><name>DaveSanderman</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.floodzilla.com/index.php?title=Creating_a_Test_Database&amp;diff=477&amp;oldid=prev</id>
		<title>DaveSanderman: Created page with &quot;== Creating a Test Database ==  For now this is just a record of the steps I took when bringing up a new database for testing/staging purposes.  Eventually it will be fleshed...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.floodzilla.com/index.php?title=Creating_a_Test_Database&amp;diff=477&amp;oldid=prev"/>
		<updated>2020-11-16T15:30:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Creating a Test Database ==  For now this is just a record of the steps I took when bringing up a new database for testing/staging purposes.  Eventually it will be fleshed...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Creating a Test Database ==&lt;br /&gt;
&lt;br /&gt;
For now this is just a record of the steps I took when bringing up a new database for testing/staging purposes.  Eventually it will be fleshed out into a real document.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
use master&lt;br /&gt;
go&lt;br /&gt;
CREATE LOGIN SVPATest with password=&amp;#039;&amp;lt;PASSWORD&amp;gt;&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
create database using sql studio&lt;br /&gt;
- all default params&lt;br /&gt;
&lt;br /&gt;
set configuration in azure portal&lt;br /&gt;
- serverless&lt;br /&gt;
- max size 32GB&lt;br /&gt;
&lt;br /&gt;
------&lt;br /&gt;
connect to SVPATest db using SVPAAdmin&lt;br /&gt;
&lt;br /&gt;
create user SVPATest from login SVPATest&lt;br /&gt;
go&lt;br /&gt;
exec sp_addrolemember &amp;#039;db_owner&amp;#039;, &amp;#039;SVPATest&amp;#039;&lt;br /&gt;
go&lt;br /&gt;
&lt;br /&gt;
------&lt;br /&gt;
connect to SVPATest db using SVPATest (note: SVPATest user can&amp;#039;t enumerate databases)&lt;br /&gt;
&lt;br /&gt;
use table-and-sproc-generating script from existing db&lt;br /&gt;
- do i want to check this in someplace when all is said and done?&lt;br /&gt;
&lt;br /&gt;
initialize data:&lt;br /&gt;
INSERT [dbo].[DeviceTypes] ([DeviceTypeId], [DeviceTypeName]) VALUES (1, N&amp;#039;SVPA&amp;#039;)&lt;br /&gt;
INSERT [dbo].[DeviceTypes] ([DeviceTypeId], [DeviceTypeName]) VALUES (2, N&amp;#039;USGS&amp;#039;)&lt;br /&gt;
INSERT [dbo].[DeviceTypes] ([DeviceTypeId], [DeviceTypeName]) VALUES (3, N&amp;#039;Virtual Device&amp;#039;)&lt;br /&gt;
INSERT [dbo].[DeviceTypes] ([DeviceTypeId], [DeviceTypeName]) VALUES (4, N&amp;#039;Senix&amp;#039;)&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
------&lt;br /&gt;
&lt;br /&gt;
!!!SET UP FloodzillaWeb\developer.settings.json to point to new database&lt;br /&gt;
&lt;br /&gt;
run /Testing/InitializeDatabase&lt;br /&gt;
&lt;br /&gt;
stop and restart web site&lt;br /&gt;
&lt;br /&gt;
log in as first user&lt;br /&gt;
&lt;br /&gt;
change password&lt;br /&gt;
&lt;br /&gt;
edit region to set up initial values&lt;br /&gt;
&lt;br /&gt;
log off&lt;br /&gt;
&lt;br /&gt;
create a new user to use for ongoing testing&lt;br /&gt;
&lt;br /&gt;
log in as first user&lt;br /&gt;
&lt;br /&gt;
update testing user (set as Admin if so desired)&lt;br /&gt;
&lt;br /&gt;
log in as testing user&lt;br /&gt;
&lt;br /&gt;
create a virtual device&lt;br /&gt;
&lt;br /&gt;
create a testing location&lt;br /&gt;
&lt;br /&gt;
!!!SET UP SenixListener\developer.settings.json to point to new database&lt;br /&gt;
&lt;br /&gt;
run SenixListener and SenixPost and verify SensorReadings and SenixListenerLogs are getting filled correctly&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>DaveSanderman</name></author>
		
	</entry>
</feed>