• matlani.dhiraj (5/5/2010)


    How about this query ?

    SELECT MIN(etp.IntDate)

    FROM dbo.ExampleTablePartitioned etp

    WHERE etp.PartitionID in (1,2,3,4,5,6,7,8,9,10)

    Hello Matlani. Unfortunately, using an IN list has the same performance problem. The query still takes about 10 seconds each time using the IN (1, 2, 3, ...) list. 🙁

    Take care,

    Solomon...

    SQL#https://SQLsharp.com/ ( SQLCLR library ofover 340 Functions and Procedures)
    Sql Quantum Lifthttps://SqlQuantumLift.com/ ( company )
    Sql Quantum Leaphttps://SqlQuantumLeap.com/ ( blog )
    Info sitesCollations     •     Module Signing     •     SQLCLR