Forum Replies Created

Viewing 15 posts - 8,731 through 8,745 (of 9,707 total)

  • RE: Handling Tempdb space full situtation?

    Angie,

    We actually have some DBs with UNRESTRICTED on them, but on the other hand, we also have several Alerts and jobs set up to monitor Hard Drive space. When...

  • RE: Can someone please help with this script

    I just cut-n-pasted this into SSMS verses my SQL 2000 db. It appears you're only getting Syntax errors. Run a check against the code, double-click the error and...

  • RE: Handling Tempdb space full situtation?

    I'd really love to have enough partitions in my SAN to have more than one file for my TempDB. @sigh. Gail, you're making me jealous. @=)

  • RE: Arithmetic Query

    Wow, I did not read your response carefully enough...

    Is this okay

    CASE WHEN ISNULL(SUM(QuantityShipped), 0) = 0 THEN 0

    ELSE SUM(T_OrderLine.[Unit Price] * T_OrderLine.QuantityShipped) / SUM(T_OrderLine.QuantityShipped) END AS [A.S.P]

    When I say...

  • RE: Arithmetic Query

    B_Boy,

    Syntax-wise, it is acceptible to put the ISNULL outside of the SUM, but practically speaking, it's a bad idea.

    If there is one single NULL value in the column you are...

  • RE: Arithmetic Query

    And I would STRONGLY urge you to use a CASE statement to verify your QuantityShipped is not NULL or Zero or you will, at some point in the future, get...

  • RE: Arithmetic Query

    The error message means exactly what it says. Right above your ORDER BY, you need a GROUP BY statement that lists out every field that is not aggregated in...

  • RE: Move System Databases

    Why bother copying the files for TempDB? It practically gets "recreated" every time the service gets stopped. Just run the Alter Database command on the files, stop the...

  • RE: Many-to-Many relationships with foreign key constraints?

    And yet a poorly written ETL process could inadvertantly orphan records. Since I might not be the only person writing ETL processes (we're starting out with two DB sources,...

  • RE: Many-to-Many relationships with foreign key constraints?

    You mean besides referential integrity between the Fact table and the Dimension tables?

    My setup includes 3 star schemas that overlap each other on one of the dimensions. I'd like to...

  • RE: Many-to-Many relationships with foreign key constraints?

    Steve, Unfortunately, all my different entities have different fields. Again with the Junk Dimensions issue. I might end up with a 40+ column wide "archive" table with millions of...

  • RE: Arithmetic Query

    Isn't Ralph the name of your evil twin brother, Ryan? @=)

  • RE: Many-to-Many relationships with foreign key constraints?

    I've actually been thinking about that, but it would involve adding at least 12 more tables to my DB.

    I did find an interesting article on "Junk Dimensions" in SQL Server...

  • RE: Insert Statement & Column Order

    I used to think that, but given how Indexes are set up (depending on the Clustered or Non-Clustered) and whether or not you have Triggers / Defaults / Etc... I...

  • RE: Arithmetic Query

    Ryan,

    If you read his first post, he doesn't want to SUM the QuantityShipped. And I was only addressing the math problem, not the GROUP BY (although I should have...

Viewing 15 posts - 8,731 through 8,745 (of 9,707 total)