Forum Replies Created

Viewing 15 posts - 46 through 60 (of 111 total)

  • RE: Inner Join question

    siamak.s16 (1/14/2011)


    dant12 (1/14/2011)


    you should follow up the code to get context on whats actually being done and why. asking around is your best bet

    Working on that.

    In the meantime, I guess...

  • RE: Inner Join question

    you should follow up the code to get context on whats actually being done and why. asking around is your best bet

  • RE: Update with Row Lock -How to Optimize this

    TheSQLGuru (1/14/2011)


    dant12 (1/14/2011)


    if on SQL 2008 issue

    ALTER TABLE table SET (LOCK_ESCALATION = DISABLE)

    to disable lock escalation on that table, after that sql server will respect locking hints

    Incorrect. Per BOL:

    DISABLE

    Prevents...

  • RE: Better looping - replace for cursor

    i feel your pain, i also once worked on a place that had stuff like this.

    apart from changing how the system works to get away from that loop, the best...

  • RE: multiple join conditions and OR

    as i understood the question, he was trying to figure out how DEF DEF ended up in the results.

    Steve explains it well, that what he is really doing here is...

  • RE: Create stored procedure for parsing Comma Delimited string.

    search around, there are a couple of ready solutions around

    imo, Jeff Moden offers the best split function for strings with less than 4000 chars and Adam Machanic CLR split functions...

  • RE: Update with Row Lock -How to Optimize this

    if on SQL 2008 issue

    ALTER TABLE table SET (LOCK_ESCALATION = DISABLE)

    to disable lock escalation on that table, after that sql server will respect locking hints

  • RE: multiple join conditions and OR

    A.Col1 = B.Col1 matches INSERT INTO #AAA (Col1, Col2) VALUES ('DEF', 'DEF') and INSERT INTO #BBB (Col1) VALUES ('DEF')

    no?

  • RE: Need ideas for a process

    for perfect matches HASHBYTES can be used instead of checksum

    SELECT HASHBYTES('SHA1','123')

    SELECT HASHBYTES('SHA1','321')

  • RE: Need ideas for a process

    ALZDBA (12/2/2010)


    Since OP stated order is of importance, maybe a join on col1 helps to restrict the cartesian product as well as the where-clause for nMatches > 5

    So...

  • RE: Need ideas for a process

    ALZDBA (12/2/2010)


    Can you post some execution results and timings ? (cpu , elaps, io rates)

    Seems to me pulling this kind of stuff into your CLR space could easily blow up...

  • RE: Need ideas for a process

    ill post on what i been testing

    create the 2 tables

    IF OBJECT_ID('TEMP_1') IS NOT NULL

    DROP TABLE TEMP_1

    IF OBJECT_ID('TEMP_2') IS NOT NULL

    DROP TABLE TEMP_2

    GO

    --CREATE TABLES

    DECLARE @a VARCHAR(1000),@B INT

    SELECT

  • RE: Need ideas for a process

    have you tried a Parallel.ForEach or some sort of parallel processing?

    with your server specs it might reduce the execution time.

    i'll post some code soon if you want to try

  • RE: Need ideas for a process

    are you able to use a CLR?

    i believe this sort of processing is best done within the .net framework

  • RE: Help with Full-Text Search

    ALTER TABLE snapshots.trace_data ADD UniqueCol AS (CAST(SNAPSHOT_ID AS VARCHAR) + '-' + CAST(EVENTSEQUENCE AS VARCHAR)) PERSISTED NOT NULL

    adding the column like this made it work.

    since its a computed column...

Viewing 15 posts - 46 through 60 (of 111 total)