Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- create table MiniProfilers
- (
- Id uniqueidentifier not null primary key,
- Name nvarchar(200) not null,
- Started datetime not null,
- MachineName nvarchar(100) null,
- [User] nvarchar(100) null,
- Level tinyint null,
- RootTimingId uniqueidentifier null,
- DurationMilliseconds decimal(7, 1) not null,
- DurationMillisecondsInSql decimal(7, 1) null,
- HasSqlTimings bit not null,
- HasDuplicateSqlTimings bit not null,
- HasTrivialTimings bit not null,
- HasAllTrivialTimings bit not null,
- TrivialDurationThresholdMilliseconds decimal(5, 1) null,
- HasUserViewed bit not null
- )
- create table MiniProfilerTimings
- (
- RowId integer primary key identity, -- sqlite: replace identity with autoincrement
- Id uniqueidentifier not null,
- MiniProfilerId uniqueidentifier not null,
- ParentTimingId uniqueidentifier null,
- Name nvarchar(200) not null,
- Depth smallint not null,
- StartMilliseconds decimal(7, 1) not null,
- DurationMilliseconds decimal(7, 1) not null,
- DurationWithoutChildrenMilliseconds decimal(7, 1) not null,
- SqlTimingsDurationMilliseconds decimal(7, 1) null,
- IsRoot bit not null,
- HasChildren bit not null,
- IsTrivial bit not null,
- HasSqlTimings bit not null,
- HasDuplicateSqlTimings bit not null,
- ExecutedReaders smallint not null,
- ExecutedScalars smallint not null,
- ExecutedNonQueries smallint not null
- )
- create table MiniProfilerSqlTimings
- (
- RowId integer primary key identity, -- sqlite: replace identity with autoincrement
- Id uniqueidentifier not null,
- MiniProfilerId uniqueidentifier not null,
- ParentTimingId uniqueidentifier not null,
- ExecuteType tinyint not null,
- StartMilliseconds decimal(7, 1) not null,
- DurationMilliseconds decimal(7, 1) not null,
- FirstFetchDurationMilliseconds decimal(7, 1) null,
- IsDuplicate bit not null,
- StackTraceSnippet nvarchar(200) not null,
- CommandString nvarchar(max) not null -- sqlite: remove (max)
- )
- create table MiniProfilerSqlTimingParameters
- (
- MiniProfilerId uniqueidentifier not null,
- ParentSqlTimingId uniqueidentifier not null,
- Name varchar(130) not null,
- DbType varchar(50) null,
- Size int null,
- Value nvarchar(max) null -- sqlite: remove (max)
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement