Guest User

Untitled

a guest
Jun 25th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. SET @sql = N'DELETE TOP(1000) FROM ' + @tableName + ' WHERE ItemId
  2. in (Select ItemId from dbo.History_Item
  3. WHERE (
  4. [FullyQualifiedName] LIKE ''' + @machine_DS + '.%'''
  5. OR
  6. [FullyQualifiedName] Like '''+ @machine_Kpi + '.%'''
  7. )
  8. )
  9. AND datetime between'''+ @startDate +''' And '''+ @endDate +'''
Add Comment
Please, Sign In to add comment