Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. String.Format(@"Select TOP(@batch) [Id]
  2. ,[Barcode]
  3. ,[ItemCode]
  4. ,[Description]
  5. ,[UnitOfMeasure]
  6. ,[ItemClass1]
  7. ,[ItemClass2]
  8. ,[ItemClass3]
  9. ,[ItemClass4]
  10. ,[ItemClass5]
  11. ,[VendorCode]
  12. ,[Weight]
  13. ,[UnitCost]
  14. ,[UnitPrice]
  15. ,[TotStockItem]
  16. ,[Loc1Stock]
  17. ,[Loc2Stock]
  18. ,[Loc3Stock]
  19. ,[ItemClass6]
  20. ,[Warranty]
  21. ,[QtyIn]
  22. ,[QtyOut]
  23. ,[MonthUpToDate]
  24. ,[YearUpToDate]
  25. ,[LMonthUpToDate]
  26. ,[LastYear]
  27. ,[BestInQty]
  28. ,[VAT]
  29. ,[Margin]
  30. ,[Ingredients]
  31. ,[Ingredients2]
  32. ,convert(nvarchar,[LastModifiedDate],121) as [LastModifiedDate]
  33. ,[Custom1]
  34. ,[Active],[ScanSerial],[TrackingType]
  35. from Masterdata with(nolock)
  36. WHERE ( [LastModifiedDate]=@lastSync AND [Id]>@id) OR ( [LastModifiedDate]>@lastSync )
  37. order by lastModifiedDate asc,id asc");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement