Forum Replies Created

Viewing 15 posts - 5,776 through 5,790 (of 8,416 total)

  • RE: XML Parse Query

    lmu92 (2/28/2010)


    Paul White (2/27/2010)


    I compared your solution and mine using exec plan and mine is about 10-15 times faster (based on that limited sample data).

    Really? I did run both...

  • RE: Add custom T-SQL command via SQLCLR

    chip8 (2/26/2010)


    I have an SqlProcedure 'showbis' with one string parameter. The procedure 'showbis' uses the parameter string to get a dataset from an external ODBC datasource. The syntax in the...

  • RE: need help in sql

    tabrez.test (2/28/2010)


    i have used the following query but its also displaying the policies which have trans in between add and can and policies with only add

    When you say "policies which...

  • RE: Best code for generating sequence numbers

    RBarryYoung (2/28/2010)


    Cool. That would be my choice, simpler.

    Quite. The pooled keys would be allocated from a Sequence Table, naturally 🙂

  • RE: Strange Variable Issue

    You can find the pre-2008 SP1 CU5 version of Erland's article at another location on his site: Dynamic Search Conditions in T-SQL

    The conclusion of the article is:


    You have now seen...

  • RE: Best code for generating sequence numbers

    RBarryYoung (2/28/2010)


    Paul: So on RollBacks, will it leave permanent gaps, try to recycle the gaps, or does it guarantee no gaps, ever? (I am pretty sure that this...

  • RE: need help in sql

    USE tempdb;

    GO

    DECLARE @SampleData

    TABLE (

    id INTEGER IDENTITY NOT NULL,

    ...

  • RE: need help in sql

    tabrez.test (2/27/2010)


    also ihave tried above sql they are also displaying policies which have trans add and trans can and in between other trans like ren,adj,,,(which should not )

    No they...

  • RE: need help in sql

    tabrez.test (2/27/2010)


    yes there is another column trn_id which has numbers 1,2,3 ..10

    Thanks for that information, late as it is 🙁

    tabrez.test (2/27/2010)


    but i want the sql in case statement as there...

  • RE: Avoid dynamic SQL

    Glad to hear you are feeling better Barry!

  • RE: Best code for generating sequence numbers

    CirquedeSQLeil (2/6/2010)


    Would a sequential guid work in place of an int?

    Yes, but they have problems of their own. Quite apart from the issues of key width and getting the...

  • RE: check and add missing data

    Thank you.

  • RE: Using CTE Common table expressions with SELECT CASE statement

    --

    -- Use a view instead of the CTE:

    --

    CREATE VIEW dbo.BaseData

    WITH SCHEMABINDING

    AS

    SELECT ...

  • RE: need help in sql

    This is just for fun:

    USE tempdb;

    GO

    DECLARE @SampleData

    TABLE (

    id INTEGER IDENTITY NOT NULL,

    ...

  • RE: Slow performant select query, yet apparently simple.

    RBarryYoung (2/27/2010)


    Its still an Estimated plan. I plainly indicated that an Actual should be provided. That's even more important now that it appears that there is no "good"...

Viewing 15 posts - 5,776 through 5,790 (of 8,416 total)