Forum Replies Created

Viewing 15 posts - 811 through 825 (of 1,993 total)

  • Reply To: Using a Surrogate vs Natural Key

    I've always found the following points be in favour of artificial keys

    if my key is "firstname, surname, dateofbirth" then for every linked table I have to use 2 varchars and...

    MVDBA

  • Reply To: More Computed Column Indexes

    Toreador wrote:

    None of the answers is correct. You can index a computed column based on a float as long as it is persisted.

    I made that same mistake - steve didn't...

    MVDBA

  • Reply To: Performance Tuning Question?

    hardware ?

    SQL instance configuration ?

    T-SQL code ?

    Table design and 3NF?

    you have to give us a little more about your problem so that someone can help you - I could go...

    MVDBA

  • Reply To: More Computed Column Indexes

    dammit - I pretty much only use persisted computed columns (we write once and read many)… so my version worked - I took out the persisted and it errored

    MVDBA

  • Reply To: Datetime data migration.

    Ian

    unless i misread the original post (I've done that a lot) , they want a trailing zero not a leading zero

    MVDBA

  • Reply To: 2012 - 17 Performance Issue

    good shout sterling. It's got to be either network transfer or disk.

    for network transfer, log onto the desktop and make sure your connection is using the shared memmory protocol (not...

    MVDBA

  • Reply To: 2012 - 17 Performance Issue

    one trick i use... Does it hang before the first row comes back, or start sending results and stall?

    if you get nothing for 10 seconds I'd put money on compiles.

    if...

    MVDBA

  • Reply To: Datetime data migration.

    the best I can suggest is reverse the string, do a charindex for the first colon :   then you know if there are only 2 digits for milliseconds

    if it's...

    MVDBA

  • Reply To: 2012 - 17 Performance Issue

    check in the database settings if you have "legacy cardinality estimation" turned on - also if you can change the database compatability mode you may get some better results

    i'd forget...

    MVDBA

  • Reply To: Question on triggers

    just make sure no-one tries to put a stored proc call inside the trigger making an assumption that it is single row only.

    I've inherited triggers where they have put checks...

    MVDBA

  • Reply To: Pull dynamic reportpath of RDL into SQL inside the RDL.

    is the locking at the sql level (ie in sql monitor or sp_who2 you can see a blocked process)???

    I know with 1000 reports it's not feasible to go through all...

    MVDBA

  • Reply To: The Work of the Ancients

    Wow,

    I just came off the back of speaking at data relay in Nottingham on this topic

    we've been in business since 1851 (ok it was a bookshop back then) and most...

    MVDBA

  • Reply To: Table Function becomes slow

    I can see you are using a string split function - the longer the string, the worse that function will perform.

    although the number of UNION ALL statements in there will...

    MVDBA

  • Reply To: Add row number column based on id and stages

    I did post a reply, but it didn't save it

    i'm guessing that you want something like this

    SELECT *,ROW_NUMBER() OVER(PARTITION BY customerid ORDER BY stage) AS rnk FROM #t

    but you have...

    MVDBA

  • Reply To: Transaction Log Shipping (No direct link)

    you are going to have to roll out your own log shipping system

    it's not that difficult - but i'm guessing many other people will have better solutions

    create a table on...

    MVDBA

Viewing 15 posts - 811 through 825 (of 1,993 total)