Forum Replies Created

Viewing 15 posts - 3,406 through 3,420 (of 6,036 total)

  • RE: how to remove numbers from strings?

    Jeff Moden (10/21/2007)


    Heh... jury is still out on 2 times... it's starting to look a lot like the hardware or the installation may also make a huge difference. Davids...

  • RE: how to remove numbers from strings?

    There was a feeling that something is not right.

    Now we have 2 point something times difference.

    About the value I expected.

    But it still should be under 2 times because there is...

  • RE: how to remove numbers from strings?

    Jeff Moden (10/21/2007)


    I don't know about anyone else, but while a lousy 9 second difference on a lousy million rows doesn't seem like much, a batch process that may have...

  • RE: how to remove numbers from strings?

    Lowell (10/21/2007)


    if it's not obvious, management studio, which is using the SQL Native Client was twice as fast as using SQLOLEDB from QA.

    Do you know that SQLOLEDB driver contains cursor...

  • RE: how to remove numbers from strings?

    David McFarland (10/20/2007)

    I'll happily run it for you once marting is done, but I'd expect them to be in the same ballpark for that simple of a query.

    Logic (you would...

  • RE: how to remove numbers from strings?

    So many words instead of just sayng "No".

    David, I ccan tell you a secret.

    Math is not about numbers at all.

    Math uses numbers as an abstraction in an attempt to explain...

  • RE: Help in WHERE clause

    Then Jeff's script should work for you.

    You just misled him a little bit, so code should be simplified:

    SELECT * FROM #TestTable

    WHERE (@dummy is null OR Title = @dummy)

  • RE: Adding workdays

    Jeff Moden (10/19/2007)


    Larger number of rows? Correlated aggragate sub-query on large number of rows? Dunno...

    I've not had to "future-cast" in this manner before but every solution I've seen...

  • RE: how to remove numbers from strings?

    [Code]

    SELECT

    H.CustomerID

    ,H.SalesOrderID

    ,H.TotalDue

    ,H.PercentageOfTotal = H.TotalDue / T.Sum_TotalDue * 100.0

    ,H.DifferenceFromAverage = H.TotalDue - T.Avg_TotalDue

    FROM Sales.SalesOrderHeader H

    INNER JOIN (select CustomerID, Sum(TotalDue) Sum_TotalDue, Avg(TotalDue) Avg_TotalDue

    ...

  • RE: how to remove numbers from strings?

    Matt Miller (10/19/2007)


    Data in my mind is like a project - it never survives contact with the real world. We as the DBA's and data modelers and data architects...

  • RE: how to remove numbers from strings?

    Matt Miller (10/19/2007)


    Corollary: No matter how good the box, remember - you're IN a box. There are things outside of the box.

    Trick is that outside the box is another...

  • RE: how to remove numbers from strings?

    David, for some reason I did not have any doubts about you and some other folks.

    😉

    SQL 2k5 made for programming tools users having no math background, just like you.

    As I...

  • RE: Return a Table from a Stored Procedure

    goodguy (10/19/2007)


    Thanks, pal, but what I meant was how do I retrieve the temp table returned by the sproc into my vb code? How do I get a handle on...

  • RE: how to remove numbers from strings?

    Matt, do you think with Jeff's function fnDeleteNumbers (@String VARCHAR(8000)) from the post above code would be any longer?

    And Jeff already committed performance test.

    Result was not in favour of the...

  • RE: Adding workdays

    Greg Snidow (10/19/2007)


    I gues that makes sense. I have a very small database, so I have not really ever considered overhead costs of doing things. Got any suggestions...

Viewing 15 posts - 3,406 through 3,420 (of 6,036 total)