Forum Replies Created

Viewing 15 posts - 31 through 45 (of 222 total)

  • RE: Db restore

    if you can afford, change the db access level to "single user" before restore and then restore te db

  • RE: coalesce and nullif

    thanks for the good QOTD and explanation behind it.

  • RE: losing primary key during import export operation

    i am not sure but if you want to migrate the data including primary keys to production database, you can use set identity insert on and off to explicitly insert...

  • RE: Too much time to commit the transaction

    hi Jason

    I am using T-SQL for data transformation. I think i have confused everyone on the forum.

    Let me rephrase what i am doing. I have a source table with...

  • RE: Too much time to commit the transaction

    How many indexes do you have?

    There are total of 5 indexes on this table

    - 1 clustered as primary key

    - 3 non clustered created on foreign keys

    - 1 non clustered created...

  • RE: Too much time to commit the transaction

    Elliott W (2/16/2010)


    Still not a problem.

    If you are doing it 10 million times I might start to worry.

    CEWII

    Exactly this the point to worry, it is taking 12 milliseconds to insert...

  • RE: Too much time to commit the transaction

    Sorry it is 12 Milliseconds instead of 12 microseconds, the default duration setting done in SQL Profiler.

  • RE: INSERT INTO and INDEXES

    Jeff Moden (1/26/2010)

    You said before that your indexes don't appear to be badly fragmented after the inserts. I think that might not be right. Could you post the...

  • RE: INSERT INTO and INDEXES

    mohammed moinudheen (1/27/2010)Out of curiosity, how much time does reindexing take in this huge table you are referring to.

    it takes approximately 50 minutes to rebuild the index.

  • RE: INSERT INTO and INDEXES

    Fraggle-805517 (1/26/2010)


    I could be wrong on this, but the issue might not be the indexes, but the statistics. If you statistics start to get out of date, then it...

  • RE: INSERT INTO and INDEXES

    Navnish Sharma (1/26/2010)


    As a best practice, you should script out your indexes. Drop them before the load, perform your load and then recreate them. When you talk about millions or...

  • RE: Index Usage

    Thanks Nagaraj. That link answered everything

  • RE: Batch updates with Trigger

    I used Update trigger to fire the stored proc per record. I was thinking triggers in SQL Server work the same way it does in Oracle but unfortunately i was...

  • RE: Best approach on UPDATE

    Lowell (1/11/2010)


    yes Anam, you can...the last post i made with a code example did exactly that...the code was assuming there is a column named recordid, and it was the PK...

  • RE: Best approach on UPDATE

    i am facing a problem with updates in batches. What i thought earlier and what my understanding is that if i am running an update on a table in batches...

Viewing 15 posts - 31 through 45 (of 222 total)