Forum Replies Created

Viewing 15 posts - 2,356 through 2,370 (of 59,066 total)

  • Reply To: mdf space balance

    Just to be sure, an index "rebuild" won't do a move.  It must be a CREATE INDEX that matches the currently existing index in all ways and it must have...

  • Reply To: mdf space balance

    Bruin wrote:

    I have 10-15 tables I would like to move to help balance the drive usage on that server. The tables I'm moving are just for reporting by the front-end...

  • Reply To: The Scariest Data Type

    Just to add to this... I've found that the absolute scariest datatype is when people use the wrong datatype to store data, no matter what it is.

    My recent favorite examples...

  • Reply To: Copy backup to not destroy backupchain

    The real risk is you forgetting to use the "Copy Only" functionality.  😀  You can tell I've "never had that problem before", right?  😀  I've made that mistake a couple...

  • Reply To: Restore takes forever

    As a bit of a sidebar, having only 16GB of RAM on a Developer Server where production code is developed and unit tested and has restores done so frequently seems...

  • Reply To: DML Trigger Limits

    Awesome, question, Steve!  Thanks.

  • Reply To: Copy backup to not destroy backupchain

    Yes... you can backup to anywhere you can reach or the server can reach.  There are a couple of ways to do it and, rather than me forgetting something, have...

  • Reply To: mdf space balance

    Bruin wrote:

    ALTER TABLE UserLog DROP CONSTRAINT PK__UserLog__7F8B815172CE9EAE WITH (MOVE TO HISTORY)

    USE TestDB GO

    CREATE UNIQUE CLUSTERED INDEX UIX_UserLogID ON UserLog(UserLogID) ON [PRIMARY]

    That'll certainly fill up your log file!  When you drop...

  • Reply To: Best primarykey and index

    Sounds to me like Tenant/Year might be the way to go for the queries, then.  Don't be alarmed by the high fragmentation that will occur on that clustered index.  It's...

  • Reply To: Null value when checking unused indexes

    "Learning by example" opportunity here... spend some time looking things up on the web, as suggested in the code below.

    And, like Frederico suggests, learn how to use "Object Aliases" and...

  • Reply To: Can someone explain where non - clustered index is stored?

    Clustered and non-clustered indexes are all stored in the data file (MDF/NDF files).  What you may not know is that the Leaf Level of the Clustered Index IS the actual...

  • Reply To: Best primarykey and index

    mto89 wrote:

    1)Loading data in a grid (by tenant,year)

    Just one tenant at a time?

  • Reply To: Multiply time by hourly rate

    frederico_fonseca wrote:

    you really need to read the manuals for MySQL - datediff in Mysql is totally different of that for SQL Server hence the error you get.

    in mysql you would...

  • Reply To: Multiply time by hourly rate

    pedroccamara wrote:

    Hello Jeff and thank you very much for your answer. You're right. My mistake. I thought I was in a MySql forum.

    About the issue....you're sure that the function to...

  • Reply To: Multiply time by hourly rate

    I just noticed that "substring_index" isn't the name of a alias here... it's the name of a function and that function doesn't exist in SQL Server.  You should let people...

Viewing 15 posts - 2,356 through 2,370 (of 59,066 total)