Forum Replies Created

Viewing 15 posts - 7,456 through 7,470 (of 7,597 total)

  • RE: Running Sql Server Program files on RAID10 - is this necessary for performance ?

    For (almost) pure reads, as O/S and SQL pgms are, RAID5 should be faster than RAID10, with the same number of spindles for each RAID.

    So, I'd say use...

  • RE: update statement

    An UPDATE statement will always cause some type of lock(s) on the table. SQL must do locks to insure the integrity of the UPDATEs.

    Depending on the number of rows...

  • RE: Making NOT NULL

    If I understand correctly:

    ((COALESCE([prefix]+'-'), '')+right('0000'+COALESCE(convert([varchar],[numeric],(0)), ''),(4)))

    is persisted =yes

  • RE: Varchar(max) performance problem in SQL server 2008 R2

    For XML data, you are very likely better off specifying XML as the data type rather than varchar(max), since SQL optimizes XML storage.

  • RE: Order by While inserting

    When did SQL Server start doing these "auto sorts" for clus indexes?

  • RE: Order by While inserting

    I wouldn't call it 'auto-magically',

    That's primarily what I meant. I thought it was conditional. I've seen SQL not do it.

    To me it's much safer to code your...

  • RE: Order by While inserting

    I thought it depended on whether SQL thought it was "necessary" or not.

    Whether the number of rows, etc., met whatever magic criteria SQL went by -- which are not documented...

  • RE: Order by While inserting

    IIRC, a single insert of many rows will be done in the clustered index order auto-magically.

    Really? Interesting. I don't recall that. Would be nice tho.

  • RE: Order by While inserting

    I think the order does matter for the clus index and whether it gets fragmented or not. SQL is coded to recognize sequential inserts and not cause page splits...

  • RE: Order by While inserting

    Very interesting post by Conor.

    I referred to the clus index only. I assumed you can't control any other index(es), nor a heap (the ORDER BY would be irrelevant to...

  • RE: Order by While inserting

    It just seems to be too much work when you still need to retrieve results in some order. If you don't then who cares?

    You should care when inserting into...

  • RE: Order by While inserting

    Be careful with phrasing: MSDN doesn't say it doesn't work, they say it's not guaranteed to work.

  • RE: Order by While inserting

    When used together with a SELECT...INTO statement to insert rows from another source, ...

    I take that to mean what it explicitly says -- if you do SELECT ... INTO <new_table>,...

  • RE: Logon trigger malfunctions

    You did give SQL this instruction when creating the trigger:

    WITH EXECUTE AS 'DOMAIN\AnonLogin'

    Maybe you can use ORIGINAL_LOGIN( ) to still get the actual original login name.

  • RE: New and looking to advance my career

    Seconded -- the Developer Edition of SQL is great for learning -- and cheap!

    For SQL Server knowledge, check out "Inside SQL Books" by/with Kalen Delaney.

    For T-SQL, check out books by...

Viewing 15 posts - 7,456 through 7,470 (of 7,597 total)