Parallel Data Warehouse (PDW) pass variable to "TOP()" function

已答复 Parallel Data Warehouse (PDW) pass variable to "TOP()" function

  • Montag, 4. Februar 2013 20:58
     
     

    The code below works in SQL Server 2008 R2 but not in PDW. Can anyone assist please....

    Declare @VAR2 bigint

    set @VAR2  = 1

    select top(@VAR2) * from PDW_POC.dbo.MyTable

    Thanks!

Alle Antworten