USE StockStockPrice
GO

Declare @notificationClassName varchar(255)
Declare @notificationBatchId bigint

Select @notificationClassName = 'StockPriceNotifications'
select @notificationBatchId = max(NotificationBatchId) from NSDMTradeNotificationsNotificationBatches1


EXEC NSNotificationBatchDetails @notificationClassName, @notificationBatchId
go