Forum Replies Created

Viewing 15 posts - 556 through 570 (of 656 total)

  • RE: backup database

    I guessed wrongly that because it makes no sense to do a backup within a transactiobn, then the transaction would be ignored and it would work.

    I'm not sure what the...

  • RE: Round up or down III

    Hugo Kornelis (9/12/2010)


    On SQL Server 2005, the output of sp_help indicates that the column is typed as numeric(8,6), not numeric(38,6). I cannot check this on SQL Server 2008, as I...

  • RE: SET ROWCOUNT and table variable

    Well I never!

  • RE: SET ROWCOUNT and table variable

    Interesting/worrying! We have lots of code that does something like

    declare @i int

    set @i = 10

    set rowcount @i

    insert into tab1

    select * from tab2

    in order to insert the top n rows from...

  • RE: SET ROWCOUNT and table variable

    Pete Cox (8/26/2010)


    BTW, I think ROWCOUNT stops having this effect in versions of SQL server later than 2005

    Nope, still works in 2008 (luckily, or our code would break!)

  • RE: SET ROWCOUNT and table variable

    Floats can be useful when the same column needs to be able to hold either large values (lots of numbers before the decimal point) or very small values (lots of...

  • RE: TempDB

    Hugo Kornelis (8/20/2010)You can actually run DBCC CHECKALLOC and DBCC CHECKCATALOG on tempdb. You will not get an error, but on the other hand, nothing will actually be done.

    Which version...

  • RE: Round up or down III

    Interesting.

    Can anyone explain exactly what the 3rd argument of Round() is for?

    The BOL says

    "function Is the type of operation to perform. function must be tinyint, smallint, or int. When function...

  • RE: SQL 6.5 and Y2K

    wware (8/13/2010)


    Study the past if you would divine the future. ~Confucius

    Good point.

    I'll bookmark this page in readiness for 2100 🙂

  • RE: How many partitions?

    Hugo Kornelis (8/12/2010)

    Based on visual inspection of the code, you appear to be right about the missing GROUP BY. I'm glad I overlooked that when answering! Luckily, there is no...

  • RE: Deprecated Features

    I've had a play with this on my development server, and the results seem a little curious. Apparently, I've used each of the collations Macedonian, Lithuanian_Classic, Korean_Wansung_Unicode, Hindi, Azeri_Latin_90, and...

  • RE: Deprecated Features

    Jostein Saethern (8/4/2010)


    The correct answer is listed as sys.dm_os_sys_performance_counters, but in the example query sys.dm_os_performance_counters is used.

    Well spotted - I was wondering why the 'correct' view does not exist in...

  • RE: Distinct clause in Select statement

    A bit of a strange question.

    I'd never come across the user of parantheses with DISTINCT so assumed it must be some sort of extended syntax I didn't know about. So...

  • RE: Computed Columns

    I hate "me too" replies, but I also failed on the "Will definitely use more resources" option, because it is just not true. Consider the alternative of a standard column...

  • RE: VARCHAR datatype

    A lesson that's common to many QotDs is that you should never rely on default values - always be specific, so you know exactly what you're getting, and so does...

Viewing 15 posts - 556 through 570 (of 656 total)