Read this for a more simple example

From: we7313 (we7313_at_discussions.microsoft.com)
Date: 12/23/04

  • Next message: Hugo Kornelis: "Re: SQL 7 vs. 2000 issue -trigger and nulls"
    Date: Thu, 23 Dec 2004 13:19:05 -0800
    
    

    CREATE PROCEDURE dbo.will
    (
            @a int,
            @b int
            
    )
     AS

    SELECT * from price_view where keydate between @a and @b
    GO

    Keydate is the The first field in the clustered key
    The table is shown in the previous post.

    -- 
    will
    

  • Next message: Hugo Kornelis: "Re: SQL 7 vs. 2000 issue -trigger and nulls"