Forum Replies Created

Viewing 15 posts - 3,226 through 3,240 (of 8,416 total)

  • RE: Create index progress.

    See the percent_complete column on sys.dm_exec_requests

    It only works with:

  • ALTER INDEX REORGANIZE
  • AUTO_SHRINK option with ALTER DATABASE
  • BACKUP DATABASE
  • CREATE INDEX
  • DBCC CHECKDB
  • DBCC CHECKFILEGROUP
  • DBCC CHECKTABLE
  • DBCC INDEXDEFRAG
  • DBCC SHRINKDATABASE
  • DBCC SHRINKFILE
  • KILL
  • RESTORE DATABASE
  • UPDATE STATISTICS
  • Paul

  • RE: Transaction Log Growth, do you need it?

    Gary7512 (5/29/2010)


    Thanks Paul, I will take note of what you're telling me. It does seem like a good magic solution, but I suppose some fables warn the use of magic...

  • RE: Primary Key in Partition Table

    lrodriguessp (5/29/2010)


    Exactly, I have to use the primary key in the primary partition.

    Sorry, but that sentence does not make sense to me. 🙁

    If you mean that you have to include...

  • RE: Set based approach to get previous rows value for same column which is a calculation

    With the best will in the world, it's impossible to suggest an appropriate set-based solution without knowing more about what the complex financial calculation does. I realise you had...

  • RE: ADD column storeID while bulk inserting

    Why don't you have a decent crack at it first?

    See how you get on.

  • RE: Transaction Log Growth, do you need it?

    Gary7512 (5/29/2010)


    My colleague who is more technical than me says: "The way it works is that the Hyper-V VSS writer on the host tells VSS in the guest to get...

  • RE: Primary Key in Partition Table

    Perhaps some demo code will make the issues clearer to see:

    CREATE PARTITION FUNCTION

    PF_Date (DATETIME)

    AS ...

  • RE: Insert/Update

    You should certainly consider MERGE (if you are using SQL Server 2008) but you need to be careful with either method if there is concurrent activity on the destination table....

  • RE: SQL syntax

    Nice (but quite shocking!) question. I'm not at all embarrassed to say I got this one wrong.

  • RE: SQL syntax

    Grant Fritchey (5/28/2010)


    I would argue that while all three compile and run, none of them is "correct."

    In the same way that 2+2=5 for sufficiently large values of 2? 😛

  • RE: Convert Julian date to Gregorian date

    Good to know the Y2K problem is still alive and well 😀

  • RE: Problem with DATE

    You corrected the bug that ColdCoffee and Kingston missed, but all the solutions presented so far use a form which cannot seek using an index. The best they can...

  • RE: Computed Column

    Side note:

    It's not often worth persisted expressions like this - this optimiser very frequently chooses to recalculate the value from the base columns instead - particularly if the computed value...

  • RE: ADD column storeID while bulk inserting

    Use an XML format file and OPENROWSET BULK. This allows you to modify the bulk load stream without losing any of the benefits of bulk loading - it will...

  • Viewing 15 posts - 3,226 through 3,240 (of 8,416 total)