Forum Replies Created

Viewing 15 posts - 121 through 135 (of 518 total)

  • RE: Get the Current Date

    Jeff Moden (10/28/2010)


    Derrick... I have to ask... did you ever work at Grainger? I ask because worked with a Derrick Smith from Grainger Corporate Headquarters.

    Nope. Someone asked me the...

  • RE: Get the Current Date

    Stefan Krzywicki (10/28/2010)


    Brandie Tarvin (10/28/2010)


    Sean,

    Thanks for pointing out that he's talking about syntax, but when I go back to read his post, he's saying ANSI is more readable than T-SQL.

    I...

  • RE: Export to Excel but too many rows

    Alvin Ramard (10/25/2010)


    The more ETL work I do, the more I hate Excel.

    Excel is a great product. Just keep it away from ETL.

    Agreed...and the whole lack of a 64bit jetdb...

  • RE: Trouble expanding a VMWare virtual disk

    Did you try right clicking and doing Rescan Disks?

    Did you also check it in diskpart to see if you get the same results there?

  • RE: Export to Excel but too many rows

    Export to flat files...I hate dealing with Excel and would always recommend against it unless there is no other way. If you install excel 2007/2010 you can export more than...

  • RE: Trouble with ceiling() function

    It has to do with significant digits and rounding.

    If you do select 5/2, you get 2 because it truncates.

    If you do select 5.0/2.0, you get 2.500000, which is more accurate.

    edit:...

  • RE: One interviewer asked me this following question

    First things first, look at the execution plan. See where it's hanging.

    If you don't see anything there, check for blocks while it executes.

    If that also looks fine, check CPU/IO usage...

  • RE: time and % data datatype

    laddu4700 (10/25/2010)


    I tried to use both float and numeric(4,2), but failed get 74.64(eg:)

    with float, I got this

    0.746428571428571

    with numeric, I got this

    0.74

    That's because the excel format is %, essentially divided by...

  • RE: time and % data datatype

    Agreed - Numeric(4,2) or FLOAT.

  • RE: Get the Current Date

    Just for the record, getdate() and current_timestamp perform the exact same operation on the back end, so there is no data/performance difference at all between them. The only difference is...

  • RE: Script Question

    edit: i lied, apparently there is now:

    dbcc show_statistics ("HealthCheck", "idxTime") WITH STAT_HEADER

    This will return just the top section. You can set that up with an insert into exec ('') loop.

  • RE: datafile defragmentation

    If you have a freshly cleaned/formatted disk, and you copy new files to it, they will be 100% contiguous after the copy.

  • RE: Is SQL Server 2008 R1 available for purchase

    Yes, you can buy 2008. It's just called SQL Server 2008. R2 is an entirely different version with different install media/etc. There is no way to patch/update 2008 to be...

  • RE: Possible to log ship to TWO standby servers at once?

    tacy.highland (10/22/2010)


    Am I just doing an unnecessary restore to that standby server each night?

    Yes you are.

    The log restores will keep the database up to date. There is never a need...

  • RE: select query taking more time (execution time)

    Out of curiosity...are you executing this on your machine locally connected to a remote server and pulling results over the WAN?

Viewing 15 posts - 121 through 135 (of 518 total)