Forum Replies Created

Viewing 15 posts - 3,871 through 3,885 (of 5,504 total)

  • RE: Performance Tuning Big Table

    scziege (3/30/2010)


    ...

    Another pain is the creation of new codes

    we have a stored procedure which checks if a code exists and if not it will be inserted. ...

    I truly hope the...

  • RE: patindex - search for either value

    Something like this?

    CREATE TABLE #TableA ( id INT,columnA VARCHAR(200))

    INSERT INTO #TableA

    SELECT 1,'here is my phone number 12345678. but my cell is 44444444.' UNION ALL

    SELECT 2,'987654321 is my balance' UNION ALL

    SELECT...

  • RE: crosstab SQL Server 2000

    Here's what I came up with.

    The solution will display the first 6 followups. I added a note what to change if more followups are required.

    Once you've studied the concept and...

  • RE: crosstab SQL Server 2000

    orca (4/1/2010)


    I have to admit that I didn't understand much of Lutz solution (but I did copy the suggestion into the Management Studio, and the result was exactly as I...

  • RE: Cross tab and Moving running totals

    Please provide sample data that will describe the scenario you're strugglnig with.

    Based on your vague description it is unclear whether you would have missing rows in #customers for a specific...

  • RE: How to tune this query

    Judy-363345 (4/1/2010)


    lmu92 (4/1/2010)


    Did you try the solution I posted earlier?

    SELECT UID, ReferenceNumber, TYPE

    FROM #tbl myTable

    WHERE ReferenceNumber NOT LIKE 'TR%'

    AND EXISTS (SELECT 1 FROM #tbl myTable2 WHERE TYPE = 1...

  • RE: How to tune this query

    Did you try the solution I posted earlier?

    SELECT UID, ReferenceNumber, TYPE

    FROM #tbl myTable

    WHERE ReferenceNumber NOT LIKE 'TR%'

    AND EXISTS (SELECT 1 FROM #tbl myTable2 WHERE TYPE = 1 AND myTable.uid...

  • RE: Date Conversion

    You could use the following line to find the rows with bad data format:

    SELECT * FROM YourTable WHERE ISDATE(yourColumn) = 0

  • RE: DBCC Timewarp

    IIRC DBCC TIMEWARP has 137 parameter plus 256 optional parameter.

    Or will that be in the futures / was it in the past / will it be in the past? :w00t:

    If...

  • RE: SQL Query

    Your WHERE condition is transformed into:

    WHERE

    (CardORKey='Key')

    OR

    (

    CardORKey='Both'

    AND

    ( LastName = @LastName

    ...

  • RE: How to tune this query

    I'm not sure if I'm totally wrong, but isn't that WHERE condition identical to WHERE ReferenceNumber NOT LIKE 'TR%' ?

    Reason:

    With your first subquery you include all UIDs with Type =...

  • RE: Are the posted questions getting worse?

    CirquedeSQLeil (3/31/2010)


    lmu92 (3/31/2010)


    I think question #6 cannot be answered on this forum at all:

    6 - how operators would move?

    The answer would depend on too many things, e.g.

    How much money is...

  • RE: Are the posted questions getting worse?

    I think question #6 cannot be answered on this forum at all:

    6 - how operators would move?

    The answer would depend on too many things, e.g.

    How much money is offered to...

  • RE: SQL Bulk Load - Nested Elements

    Did you try to find a solution in BOL (BooksOnLine, the SQL Server help system usually installed together with SQL Server)?

    You might find a solution in section "XML Bulk...

  • RE: Are the posted questions getting worse?

    But it's a while back since I've last seen a LMGTFY link...

    Seems like we're kinda learning search engine.

    How does a search engine express it's/his/her feelings anyway?

Viewing 15 posts - 3,871 through 3,885 (of 5,504 total)