create project for the sql scripts
This commit is contained in:
parent
2d5f7c80bf
commit
9171086de8
Binary file not shown.
|
@ -0,0 +1,18 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# SQL Server Management Studio Solution File, Format Version 13.00
|
||||
VisualStudioVersion = 14.0.23107.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{4F2E2C19-372F-40D8-9FA7-9D2138C6997A}") = "sql", "sql\sql.ssmssqlproj", "{75809D7E-7247-459C-A57C-6736E33D1FAA}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Default|Default = Default|Default
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{75809D7E-7247-459C-A57C-6736E33D1FAA}.Default|Default.ActiveCfg = Default
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -0,0 +1,10 @@
|
|||
-- Dateiname create_database.sql
|
||||
--
|
||||
-- Beschreibung: Query zum erstellen der Case Study DB
|
||||
--
|
||||
-- Autor: Andreas Zweili
|
||||
-- Datum: 2017-06-05
|
||||
-- Server Version: SQL Server 2016
|
||||
|
||||
if not exists (select * from sys.databases where name='marketdb')
|
||||
CREATE DATABASE marketdb;
|
|
@ -0,0 +1,9 @@
|
|||
-- Dateiname create_table.sql
|
||||
--
|
||||
-- Beschreibung: Queries zum erstellen der Tabellen der Case Study DB
|
||||
--
|
||||
-- Autor: Andreas Zweili
|
||||
-- Datum: 2017-06-05
|
||||
-- Server Version: SQL Server 2016
|
||||
|
||||
use marketdb;
|
|
@ -0,0 +1,9 @@
|
|||
-- Dateiname insert_data.sql
|
||||
--
|
||||
-- Beschreibung: Queries zum einfügen von Test Daten
|
||||
--
|
||||
-- Autor: Andreas Zweili
|
||||
-- Datum: 2017-06-05
|
||||
-- Server Version: SQL Server 2016
|
||||
|
||||
use marketdb;
|
|
@ -0,0 +1,11 @@
|
|||
-- Removes the tables for the Flugzeug DB
|
||||
--
|
||||
-- Author: Andreas Zweili
|
||||
-- Erstellt: 2017-05-27
|
||||
-- DB-Server SQL Server 2016
|
||||
|
||||
use marketdb;
|
||||
|
||||
use master;
|
||||
if exists (select * from sys.databases where name='marketdb')
|
||||
drop DATABASE marketdb;
|
|
@ -0,0 +1,52 @@
|
|||
<?xml version="1.0"?>
|
||||
<SqlWorkbenchSqlProject xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Name="sql">
|
||||
<Items>
|
||||
<LogicalFolder Name="Connections" Type="2" Sorted="true">
|
||||
<Items>
|
||||
<ConnectionNode Name="(local)\SQLEXPRESS:WIN-LAPTOP\andreas">
|
||||
<Created>2017-06-05T12:49:04.4481167+02:00</Created>
|
||||
<Type>SQL</Type>
|
||||
<Server>(local)\SQLEXPRESS</Server>
|
||||
<UserName />
|
||||
<Authentication>Windows Authentication</Authentication>
|
||||
<InitialDB />
|
||||
<LoginTimeout>15</LoginTimeout>
|
||||
<ExecutionTimeout>0</ExecutionTimeout>
|
||||
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
|
||||
<ApplicationName />
|
||||
</ConnectionNode>
|
||||
</Items>
|
||||
</LogicalFolder>
|
||||
<LogicalFolder Name="Queries" Type="0" Sorted="true">
|
||||
<Items>
|
||||
<FileNode Name="setup_01_create_database.sql">
|
||||
<AssociatedConnectionMoniker />
|
||||
<AssociatedConnSrvName />
|
||||
<AssociatedConnUserName />
|
||||
<FullPath>setup_01_create_database.sql</FullPath>
|
||||
</FileNode>
|
||||
<FileNode Name="setup_02_create_table.sql">
|
||||
<AssociatedConnectionMoniker />
|
||||
<AssociatedConnSrvName />
|
||||
<AssociatedConnUserName />
|
||||
<FullPath>setup_02_create_table.sql</FullPath>
|
||||
</FileNode>
|
||||
<FileNode Name="setup_03_insert_data.sql">
|
||||
<AssociatedConnectionMoniker />
|
||||
<AssociatedConnSrvName />
|
||||
<AssociatedConnUserName />
|
||||
<FullPath>setup_03_insert_data.sql</FullPath>
|
||||
</FileNode>
|
||||
<FileNode Name="setup_04_remove_database.sql">
|
||||
<AssociatedConnectionMoniker />
|
||||
<AssociatedConnSrvName />
|
||||
<AssociatedConnUserName />
|
||||
<FullPath>setup_04_remove_database.sql</FullPath>
|
||||
</FileNode>
|
||||
</Items>
|
||||
</LogicalFolder>
|
||||
<LogicalFolder Name="Miscellaneous" Type="3" Sorted="true">
|
||||
<Items />
|
||||
</LogicalFolder>
|
||||
</Items>
|
||||
</SqlWorkbenchSqlProject>
|
Loading…
Reference in New Issue