Forum Replies Created

Viewing 15 posts - 3,631 through 3,645 (of 7,187 total)

  • RE: Compression

    Mark

    I'm not sure what your point is. The question is about compressed databases (not compressed disks), as was my reply. I apologise if I didn't word mine clearly.

    I...

  • RE: Compression

    I think you're assuming this question is more complicated than it actually is. What it's actually saying is this: "I have two databases that take up the same size...

  • RE: Compression

    pmadhavapeddi22 (1/30/2014)


    I too agree with patrick, When we are compressing already compressed db we wont get much space in it. That is why i feel option C is correct

    thanks

    Precisely. ...

  • RE: If Statement

    OK, so fix that. When you set the value of a scalar variable, you can only pass a single value to it. If the SELECT statement you use...

  • RE: If Statement

    You need to do it before, not after.

    John

  • RE: If Statement

    The first thing to try is to put a SELECT @ADR3 statement in just after you set the value of the variable. Then you can see whether the problem...

  • RE: Applying constraints to WHERE statement

    Happy to help, and I'm glad it turned out so well. Please will you share your solution, in case anyone else has a similar issue and wonders how you...

  • RE: Scanning all tables for highest ID

    Jeff's and Lynn's queries return the last value, which, as was pointed out, isn't necessarily the largest. Depending on what the exact requirement here is, it may be worth...

  • RE: Permissions needed for Commvault Windows acount for backup

    I remember once having a conversation with the support team of another vendor of third-party backup software, and resigning myself to the fact that I was going to have to...

  • RE: What would happen? - Log shipping, changing to simple recovery, keep the chain going!

    If you take a differential backup, you'll need the original backup as well. But yes, your differential is likely to be almost as large as a full backup. ...

  • RE: storedprocedure

    You can write your stored procedure with a table-valued parameter instead of scalar parameters. You'd need to use an OUTPUT clause on your INSERT statement instead of relying on...

  • RE: Applying constraints to WHERE statement

    Here's one way, but I'm not sure that it's the best. Create a table called ForbiddenPatterns with columns Size, Colour, Pattern. Insert one row for each forbidden combination....

  • RE: Cannot connect to instance after disabling account

    You can check the authentication mode in the registry. If it's set to Windows only, change it to Mixed and try sa again. If that doesn't work, you...

  • RE: Rank over with Clustered Index

    So the answer to your original question is no, it's not overkill. You can't rely on the clustered index for sorting query results. Parallelism, advanced scans and other...

  • RE: Odd row and even Row side by side.

    Fairly simple in T-SQL, as well:

    SELECT

    a.RowNumber

    ,a.name

    ,a.dQty

    ,a.Price

    ,b.RowNumber

    ,b.name

    ,b.dQty

    ,b.Price

    FROM

    MyTable a

    LEFT JOIN

    MyTable b ON a.RowNUmber + 1 = b.RowNumber and a.RowNumber%2 = 1

    John

Viewing 15 posts - 3,631 through 3,645 (of 7,187 total)