Forum Replies Created

Viewing 15 posts - 42,676 through 42,690 (of 49,571 total)

  • RE: Product of Values in a Column

    There's no built-in function that does that. However...

    Itzik, in his PASS precon, showed a cool trick for faking one using some highschool maths.

    LOGx(a * b * c) = LOGx(a) +...

  • RE: Integrity Check -- DBCC

    Paul Randal (12/2/2008)


    Without backups, this is going to be hard to get rid of - repair cannot fix this so your only options without backups are to migrate all schema...

  • RE: Recommended path for advanced training?

    Jeff Moden (12/2/2008)


    I had several folks say they were Ninja's in SQL Server and one even claimed to be a "9 out of 10" right on his resume......

  • RE: Recommended path for advanced training?

    Oksana March (12/2/2008)


    I have same question but how to go from beginner to intermediate! Oksana

    Study for the SQL certifications.

    Note, I did not say write and pass them. I said...

  • RE: Aggregate function SUM gives some junk value

    santhoshkumar.boregowda (12/2/2008)


    The SUM of above must be equal to zero.

    No way to ensure that with a float.

    Any Suggestion?

    Change the data type to one that is precise and accurate.

  • RE: Aggregate function SUM gives some junk value

    santhoshkumar.boregowda (12/2/2008)


    Thanks Gila,

    Actually these types of result are affecting the production in one or other way.

    some batches will be having a query like

    WHERE col = '0'...

  • RE: Aggregate function SUM gives some junk value

    You're not getting a junk value, you're getting a value very close to 0. -2.7465348468E-13 is scientific notation. Expanded out it's 0.000000000000227373675443232

    Float's aren't accurate data types. They're approximate and rounding...

  • RE: Production issue

    As I said, firstly, the growth should not be 10%. That's a bad default and it gets out of hand on larger databases. Change it to a fixed size (depending...

  • RE: Recommended path for advanced training?

    jeffkretz (12/2/2008)


    Does anyone have any opionions about this practice? Good idea? Bad idea?

    JK

    I think a lot of people do that or do a full technical interview before the...

  • RE: Any sql-db-related objects updated?

    Grant Fritchey (12/2/2008)


    , OK, changing data can change statistics, so where the statistics are maintained can be changed, and if you have indexes on the columns that you modified or...

  • RE: Production issue

    Two things.

    Autogrow should not be left on a percentage (the default) as that causes massive grows for larger databases, with the resulting time problems and poor performance during the grow.

    You...

  • RE: Ambiguous field name error

    You could. I had this nasty mess on my hands once on SQL 2000.

    SELECT SomeColumn, CONVERT(varchar(20),SomeDate,107) AS SomeDate

    FRom SomeTable

    Order By SomeDate

    The ordering came out with April first.

  • RE: Shrink job failed with Error 644 (could not find index entry)..

    Paul Randal (12/2/2008)


    Hmm - I don't think the corruption was in the nonclustered indexes - I think the corruption was (and still is) in the base table itself.

    Of course,...

  • RE: Integrity Check -- DBCC

    Could you post the complete output of checkDB please, with all of its errors and recomendations.

    Was this DB upgraded from SQL 2000 and how long ago was it upgraded?

  • RE: Ambiguous field name error

    Grant Fritchey (12/2/2008)


    Clarification: "Column aliases in ORDER BY clause cannot be prefixed by table alias"

    Sorry. What I said earlier was misleading. Also, on rereading, I'm not shocked that this doesn't...

Viewing 15 posts - 42,676 through 42,690 (of 49,571 total)