Forum Replies Created

Viewing 15 posts - 91 through 105 (of 334 total)

  • RE: Remove time part from datetime column

    I'm not sure if this is what your after but I found this snip out there somewhere onetime and use it all over.  Better performance that the convert.

    Select

    -- Standard date...

  • RE: Table Size, row size

    I think sp_spaceused with the table names, then extimating total size of deletion will be the most accurate way.  That will include the index space that is being saved also. ...

  • RE: 5 table join with 165 ORs - returns 93,000 rows in 5 minutes...

    I would also like to see the query run with the following set and see what it says.

    set statistics io on

    set statistics time on

    It will give you the io on...

  • RE: Data Archiving

    If performance is your problem as opposed to space, I would look at partitioning the table.  Books online has a good deal of information about this, and from what I...

  • RE: Quick Index Question

    What is the purpose of this.  The data is always stored with the clustered index.  Any subsequent index can be stored elsewhere on disk and will only contain the key...

  • RE: Protecting tables with triggers

    Great idea Sergiy.

     

  • RE: Protecting tables with triggers

    DDL is not affected by triggers. 

    Tom

  • RE: Protecting tables with triggers

    For truncate and drop you would have to be in the dbo role or sa role.  Just take everyone out of that and grant them the correct permissions on the...

  • RE: TERMINATE SHRINKING DATAFILE process

    There shouldn't be.  What ever reorganization that had happened up to the point of cancel is kept.

    Tom

     

  • RE: TERMINATE SHRINKING DATAFILE process

    You should be able to terminate without a problem.  I have done it many times without any problems.

    Tom

     

  • RE: SQL Indexes

    I have had to put index hints in on occassion.  The reason being what other data elements I was bringing back. Bookmark lookups are very expensive to the optimizer, so when...

  • RE: SQL Indexes

    Not knowing anything about the application I can't say whether all of the indexes are needed or not.  I can say that I have put indexes on fields that are...

  • RE: Newbie SQL backup troubles?

    If the size of the backup files are growing that large, than you are not initing the device when you run the next backup.  That is, you have multiple backups...

  • RE: Indexed VIEWs

    Yes, there is value to having an index on a view even if the underlying object has no index on it.  The view is materialized meaning anything using that view...

  • RE: Need a count for each record

    Since I had no original query to modify, it's hard for me to quess what exactly needed to be changed to do this.  As stated earlier in the thread, if...

Viewing 15 posts - 91 through 105 (of 334 total)