Merge pull request #52 from Microsoft/jodebrui

Jodebrui - small fixes here and there
This commit is contained in:
Jos de Bruijn
2016-06-07 08:53:56 -07:00
5 changed files with 106 additions and 78 deletions
@@ -46,17 +46,18 @@ ALTER DATABASE CURRENT
ADD FILEGROUP ' + QUOTENAME(@MODName) + N' CONTAINS MEMORY_OPTIMIZED_DATA;';
EXECUTE (@SQL);
-- add container in the filegroup
IF NOT EXISTS (SELECT * FROM sys.database_files WHERE data_space_id IN (SELECT data_space_id FROM sys.filegroups WHERE type = N'FX'))
BEGIN
SET @SQL = N'
END;
-- add container in the filegroup
IF NOT EXISTS (SELECT * FROM sys.database_files WHERE data_space_id IN (SELECT data_space_id FROM sys.filegroups WHERE type = N'FX'))
BEGIN
SET @SQL = N'
ALTER DATABASE CURRENT
ADD FILE (name = N''' + @MODName + ''', filename = '''
+ @MemoryOptimizedFilegroupFolder + N''')
TO FILEGROUP ' + QUOTENAME(@MODName);
EXECUTE (@SQL);
END
END;
EXECUTE (@SQL);
END
END
-- 3. set compat level to 130 if it is lower
@@ -1,7 +1,19 @@
# In-Memory OLTP Performance Improvement Sample
# In-Memory OLTP Performance Improvement Sample
This Windows Forms sample application built on .NET Framework 4.6 demonstrates the performance benefits of using SQL Server memory optimized tables and native compiled stored procedures. You can compare the performance before and after enabling In-Memory OLTP by observing the transactions/sec as well as the current CPU Usage and latches/sec.
<a name=about-this-sample></a>
## About this sample
<!-- Delete the ones that don't apply -->
1. **Applies to:** SQL Server 2014 (or higher), Azure SQL Database
1. **Key features:** In-Memory OLTP
1. **Workload:** OLTP
1. **Programming Language:** T-SQL, C#
1. **Authors:** Jos de Bruijn
![Alt text](Screenshots/1.png "Ticket Reservations")
## Running this sample
@@ -1,4 +1,4 @@
-- helper stored procedure to
-- helper stored procedure to batch reservations
CREATE PROCEDURE BatchInsertReservations(@ServerTransactions int, @RowsPerTransaction int, @ThreadID int)
AS