Forum Replies Created

Viewing 5 posts - 1 through 6 (of 6 total)

  • RE: selecting a set of records by rank

    Sorry, it only works if you omit the 'where rank between @iStartRank and @iEndRank' clause.

    Regards

    Tony Healey

    http://www.SQLCoder.com - Free Code generation for SQL Server 7/2000


    Regards

    Tony Healey
    www.SQLCoder.com - Free Code generation for SQL Server 7/2000

  • RE: selecting a set of records by rank

    Hi,

    Try the following. I've only tried it on a cut down version of data, so excuse me if there is a syntax error (or two). It seems to work OK.

    select...


    Regards

    Tony Healey
    www.SQLCoder.com - Free Code generation for SQL Server 7/2000

  • RE: Very Urgent: Record Locking SQL SERVER

    Hi,

    'Read committed' is the default isolation level so you probably won't have changed anything there.

    I don't know if you want to set the isolation level to repeatable read or serializable...


    Regards

    Tony Healey
    www.SQLCoder.com - Free Code generation for SQL Server 7/2000

  • RE: VERY URGENT: How to read only the newest data

    Hi,

    I am assuming here you want the price for the latest datetime associated with a code.

    Try :

    select code, datetime, price

    from tablename t1

    where datetime = ( select max(datetime)

    ...


    Regards

    Tony Healey
    www.SQLCoder.com - Free Code generation for SQL Server 7/2000

  • RE: Openquery in a Stored Procedure problem!

    Hi,

    This is from the BOL, 'SET ANSI_NUllS' entry.

    For stored procedures, SQL Server uses the SET ANSI_NULLS setting value from the initial creation time of the stored procedure. Whenever the stored...


    Regards

    Tony Healey
    www.SQLCoder.com - Free Code generation for SQL Server 7/2000

Viewing 5 posts - 1 through 6 (of 6 total)