Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8b3f943

Browse files
Need an additional convert to make these dates work.
1 parent 05104ee commit 8b3f943

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎sp_BlitzFirst.sql‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,11 @@ BEGIN
205205
+ @OutputDatabaseName + '.'
206206
+ @OutputSchemaName + '.'
207207
+ @OutputTableName
208-
+ ' WHERE CheckDate >= DATEADD(mi, -15, ''' + CAST(@AsOf AS NVARCHAR(100)) + ''')'
209-
+ ' AND CheckDate <= DATEADD(mi, 15, ''' + CAST(@AsOf AS NVARCHAR(100)) + ''')'
208+
+ ' WHERE CheckDate >= DATEADD(mi, -15, CONVERT(DATETIMEOFFSET, ''' + CAST(@AsOf AS NVARCHAR(100)) + '''))'
209+
+ ' AND CheckDate <= DATEADD(mi, 15, CONVERT(DATETIMEOFFSET, ''' + CAST(@AsOf AS NVARCHAR(100)) + '''))'
210210
+ ' /*ORDER BY CheckDate, Priority , FindingsGroup , Finding , Details*/;';
211-
EXEC(@StringToExecute);
211+
PRINT(@StringToExecute)
212+
EXEC(@StringToExecute);
212213

213214

214215
END /* IF @AsOf IS NOT NULL AND @OutputDatabaseName IS NOT NULL AND @OutputSchemaName IS NOT NULL AND @OutputTableName IS NOT NULL */

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /