Forum Replies Created

Viewing 15 posts - 21,946 through 21,960 (of 22,184 total)

  • RE: Calculating sizes(disk usage) on different levels

    Since you're working in 2005, there are reports and dynamic management views for getting this information. For example, the report Disk Usage by Table returned this data from AdventureWorks:

  • RE: SET ANSI_PADDING in stored procedure and Internal Query Processor Error

    I guess I'm confused by the problem. When I ran the test as presented I got the error you described, but I got the same error even when I commented...

  • RE: Putting Unit Tests to Work

    I think you're correct on my errors in the article. Thanks for the input. I'm not sure if Steve will let me do an update, but I'll check.

    I suspect it's...

  • RE: Performance gap between two seemingly identical databases

    What about scans & I/O? Are they on identical servers? What about weirder stuff like tempdb usage or log backups or other processes causing locks, etc.

    Still, the difference between...

  • RE: Problem in Numbering rows...

    I experimented and came up with this:

    USE

    tempdb;

    IF EXISTS (SELECT *...

  • RE: Lookup Table Madness

    The only answer I have for you is the one that I'm dealing with at this company. They want the "code" tables to be the same across all applications and...

  • RE: Lookup Table Madness

    Allow me to say right up front, I don't like this standard. I inherited it. I fought against it. I lost.

    We name our simple lookup tables 'C_WhatEver' and the complicated...

  • RE: The SQL Server 2005 XML Temptress

    By and large I've stayed away from XML in the database for all the reasons that most people here can list. I have found that XML can play a part...

  • RE: Formatting string function

    Two single quotes inside of single quotes. So if it's part of a string, it looks like this:

    'There''s a single quote'

    If you were just inserting a quote:

    ''''

    Because:

    ''

    Is an empty string.

  • RE: Can I use a local variable in a View with OpenQuery

     You're going to have to do a lot more work in order to convert from that form of string.

    One problem that I...

  • RE: CASE to determine if certain WHERE clause should be used or not?

    SELECT * FROM tblCandidates

    WHERE 1 = CASE WHEN @CandidateId = 0 THEN 1

    WHEN ID_Kandidat = @CandidateID THEN 1

    ELSE 0

  • RE: please help me with this index problem..??

    Whew. I thought I was going nuts for a minute when that turned out not to be as easy as I originally thought. We all came to the same conclusion...

  • RE: Log files are getting huge

    But, of course, never on a production system where we need to have up to the minute data recovery, right.

  • RE: query not using index properly

    100,000 records is just going to take a long time to return especially when you add x number of columns, latency, network traffic, etc. It's also probably going to ignore...

  • RE: please help me with this index problem..??

    OK. Maybe I'm wrong.

    I tried several things and the original is still the performing best.

    I thought this would work:

    SELECT *

    FROM x

    WHERE 1 = CASE WHEN '' = @id THEN...

  • Viewing 15 posts - 21,946 through 21,960 (of 22,184 total)