Forum Replies Created

Viewing 15 posts - 3,991 through 4,005 (of 8,416 total)

  • RE: sort order

    Sasidhar Pulivarthi (4/9/2010)


    Create a tabular function...

    Or better still use one of Chris' methods or:

    DECLARE @Example

    TABLE (

    col1 ...

  • RE: Security

    From memory. Pleased πŸ™‚

  • RE: Collation Conflict

    Erin-489205 (4/9/2010)


    That worked! Thank you very much.

    Of course it did πŸ˜€ πŸ˜€ πŸ˜€

  • RE: Comparing Table Variables with Temporary Tables

    WayneS (4/9/2010)


    matt32 (4/9/2010)


    1. Creating a #temptable within a SP as select .. into #temptable will lock the tempdb for the time until the #temptable is created.(may take a while for...

  • RE: How to β€˜shuffle’ column data along to remove empty strings.

    This is quite efficient too:

    DECLARE @Example

    TABLE (

    row_id INTEGER IDENTITY PRIMARY KEY,

    ...

  • RE: Collation Conflict

    CASE

    WHEN xv.EMPLID IS NULL

    THEN SUBSTRING(j1.DEPTID, 3, 2) -- COLLATE DATABASE_DEFAULT

    ELSE xv.PG1 COLLATE DATABASE_DEFAULT

    END...

  • RE: STORED PROCEDURE ERROR

    Trouble Shooter (4/9/2010)


    Hi,

    Use can use this statement to stop occuring of temp table creation/deletion

    select * from tempdb.dbo.sysobjects where name=<Table Name>

    Irrelevant nonsense.

  • RE: Delete duplicate rows in a Table?

    rajagopalanseeth (3/29/2010)


    I was migrating my datas and some duplicate rows has been inserted.

    Create a unique constraint or index to prevent this happening again.

    Ignore the advice about SET ROWCOUNT - it...

  • RE: Strange SQL Performance behavior

    shannonjk (4/8/2010)


    The only non-normal piece to this query is that I create a temp table that uses the row_number function and it is recursively used within the select statement.

    #temp table...

  • RE: Regd SQL Server edition info

    Niraj-627298 (4/9/2010)


    Actually, I need to find this information at the very beginning of my code as its a pre requisite check for end users. So, after this valid check only,...

  • RE: Is this a bug?

    This is by design. It is documented in the Remarks section here:

    SELECT @local_variable

  • RE: How is this done ... or how would you do this?

    sku370870 (4/9/2010)


    The second situation means about half as many rows in the table but the Where clause has two conditions to match.

    Surely you can get the best of both worlds?...

  • RE: mis-appying a cross apply table value function?

    Dave,

    With the FLOOR, the Constant Scan produces 182,511 rows, which are then Filtered to 36,500 rows.

    Without the FLOOR, the Constant Scan produces 36,500 rows.

    This is too complex to analyse in...

  • RE: Column length

    Tom.Thomson (4/9/2010)


    I have to disagree. What you are telling me is that the length of the check expression is 5. That is pure nonsense.

    The type of the check...

  • RE: mis-appying a cross apply table value function?

    Dave Ballantyne (4/9/2010)


    Hmmm

    Removing the Ip calculation and just setting it to zero , brings the run time crashing down to 600 - 700 ms..

    The in-line version ends up doing rather...

Viewing 15 posts - 3,991 through 4,005 (of 8,416 total)