Forum Replies Created

Viewing 15 posts - 301 through 315 (of 901 total)

  • RE: Looking to select last time tables were queried

    Gail,

    wouldn't the Database level Audit be enough, as this seems to handle events for Select, Insert, Update, and Delete Actions? Or would the overhead be significant?

  • RE: PK Violation with same Case Sensitve values

    No problem.

    My main concern is that this isn't necessarily a small change, as it wil have an impact on any query, SP, Function that uses this as a join, as...

  • RE: PK Violation with same Case Sensitve values

    If the Database had no collation specified when it was created then it will inherit the Server collation in this case its Case Insensitive so you have to manually set...

  • RE: PK Violation with same Case Sensitve values

    What is the collation of the database/table/column? As that is what will be driving this to cause an error.

    if you set the column Col2 to a Case Sensitive collation then...

  • RE: How to shrink TempDb

    Jeff,

    I know you've written a number of articles on running totals, this one (the most recent) sprang to mind, http://www.sqlservercentral.com/articles/T-SQL/68467/, but I'm not sure if this is the one...

  • RE: Insert a row in SQL table for SLX and STANDARDID type

    The database is running user defined data type, so the selct you are running is attempting to convert the SECCODEID(varchar) to an INT, data type.

    If you did

    SELECT *...

  • RE: TSQL Optimization - CASTing and CURSOR

    Using a CAST(NULL as <DataType>) is usually done to ensure that a place holder column has the right datatype for a later process especially when doing an SELECT INTO or...

  • RE: Count by 30 min interval query

    I've made two refinements the first is the addition of a dynamic interval slicer, and the second was to remove the modulous calculation and replace it with a ROW_NUMBER() based...

  • RE: Count by 30 min interval query

    I saw the Dynamic pivot of the request and wrote this to pivot the data, its similar to dunstans, there are some simplifications optimisations that can be made like splitting...

  • RE: Count by 30 min interval query

    This is my attempt, it works on a 24 hour widow and im sure theres a better way of doing it

    CREATE TABLE #Hist

    (

    CallDateTime DateTime

    ,HistId int

    )

    Insert into #Hist

    VALUES ('2013-02-01 06:14:41.000',2671058)

    ,('2013-02-01 07:02:15.000',...

  • RE: Really Strange

    Can you post the code in the SP, as that might help us see what's going on.

    I take it you've don't a count on the source table and that matches...

  • RE: DWH : Fact table : index creation.

    Scott,

    I would disagree with you on the under no circumstances comment, for a couple of reasons

    1) the risk of fragmentation is significant on the clustered index, especially if it...

  • RE: DWH : Fact table : index creation.

    Andy Hyslop (2/18/2013)


    Bhuvnesh (2/18/2013)


    Andy Hyslop (2/15/2013)


    could test your ETL's by dropping all of your indexes and re-creating and determining the impact so see which is more efficient

    Does it cost...

  • RE: SQL Data warehouse poor performance

    The problem is that there is a tipping point where SQL can get into a twist, sometimes this can be a few 100,000 rows difference.

    does your service account have...

  • RE: SQL Data warehouse poor performance

    Thanks for the reply,

    Its good to see you do a targeted rebuild, I would imaging its indexes over 30/40% that get rebuilt and anything under that re-organised. I'm...

Viewing 15 posts - 301 through 315 (of 901 total)