Created
June 6, 2012 16:17
-
-
Save dreadjr/2883004 to your computer and use it in GitHub Desktop.
Remove LoadTestRuns
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @LoadTestRunId int | |
DECLARE db_cursor CURSOR FOR | |
SELECT LoadTestRunId [LoadTestRunId] FROM [LoadTest2010].[dbo].[LoadTestRun] | |
OPEN db_cursor | |
FETCH NEXT FROM db_cursor INTO @loadTestRunId | |
WHILE @@FETCH_STATUS = 0 | |
BEGIN | |
EXECUTE [LoadTest2010].[dbo].[Prc_DeleteDataCollectorLogs] @LoadTestRunId | |
EXECUTE [LoadTest2010].[dbo].[Prc_DeleteLoadTestRun] @LoadTestRunId | |
FETCH NEXT FROM db_cursor INTO @LoadTestRunId | |
END | |
CLOSE db_cursor | |
DEALLOCATE db_cursor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment