Forum Replies Created

Viewing 15 posts - 481 through 495 (of 605 total)

  • RE: Fill factor best practices

    Thanks for the correction, Hans. I never knew there was a difference. Have to extend my reading material.


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: Fill factor best practices

    0 and 100% are the exact same.

    If you have any tables regularly insered, updated and deleted you should be looking at the range of 70 - 90%.

    Start at a...


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: Deleting with a Foreign Key

    In the past I have found a quicker way is to use exists:

    DELETE FROM tbl_Parent

    WHERE NOT EXISTS (

    SELECT ParentID

    FROM tbl_Child

    WHERE tbl_Parent.ParentID = tbl_Child.ParentID )


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: DTS and Access Denied

    Glad it helped. I have had the same sort of error messages for a couple of dts jobs in the last month all down to conflicting permissions.


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: DTS and Access Denied

    The error message is screaming permission problems.

    Check that the account that sql server is running under can select from table A and insert into table B.

    If this works, divide the...


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: DTS error: Its not truncating tables befoe insterting

    Glad to hear it works.


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: DTS error: Its not truncating tables befoe insterting

    I hate to sound patronising, but somehow your truncate table is not working.

    Check the connection to make sure you are truncating the table from the right database. Try running the...


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: char varchar

    Something else to realise is that if you have a char(20) column and do not use all twenty characters, you are wasting disk space.

    Varchar will only only use up the...


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: DTS and Access Denied

    Check the following:

    1. Make sure the account that the sql server agent is running under has sufficient priveleges to perform the dts task.

    2. Make sure any paths to files are...


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: pulling NT domain account in T-SQL (Trigger)

    I have tried all the above and none of them work for me.


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: osql - access denied error

    PLEASE IGNORE THIS THREAD.

    I finally spotted that the batch file I was calling did not go through a mapped drive. I used the full path via server name.

    I was concentrating...


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: Enormous logfile growth

    Try dropping all the indexes apart from the index in the query. This should then reduce the transaction log size considerably. Then put the index back on and dbcc reindex....


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: DTS: advice on dynamically specifying source db/tables

    The answer to 1 would be to look for a good dts book.

    The answer to 2 is to use an activex script. You can set source and destination fields dynamically...


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: DTS: advice on dynamically specifying source db/tables

    I cannot see how this can be done from table to table. You are relying on the dts package knowing which fields to join for starters. If you wanted to...


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: DELETE all rows exept the last five

    alkanfer. I do not know if I misread the question or not, but your code is deleting everything apart from the FIRST five rows, but tomiz appears to want to...


    ------------------------------
    The Users are always right - when I'm not wrong!

Viewing 15 posts - 481 through 495 (of 605 total)