Forum Replies Created

Viewing 15 posts - 9,031 through 9,045 (of 19,560 total)

  • RE: Truncate and Delete

    Toreador (8/17/2011)


    mbova407 (8/17/2011)


    TRUNCATE TABLE cannot activate a trigger because the operation does not log individual row deletions.

    Emphasis mine 😉

    When truncating - Row actions are not logged. Page deallocations (which...

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: Truncate and Delete

    Subjective Adapts (8/17/2011)


    Truncate

    Delete

    Faster in performance wise, because it doesn’t keep any logs

    Slower than truncate because, it keeps logs

    Rollback is not possible

    Rollback is possible

    Actually Truncate is...

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: Truncate and Delete

    Basics type of question.

    Still astounds me that sooooo many people believe that truncate is not logged. At the time I answered, 44% of respondents selected that.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: Today's Random Word!

    Sudoku[/url]

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: syntax near a subquery

    I have seen it many times more often in a CTE than the older Derived table. I think this syntax has some usefulness when thinking through it. I...

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: Solving SUDOKU thru SQL Code

    bc_ (8/17/2011)


    That is cool SQLRNNR.

    I don't know if this would always work, but this at least works for the given puzzle to return it in 9 x 9:

    SELECT TOP 9...

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: syntax near a subquery

    It is actually very similar to the construct for a cte. A CTE is in essence the new way of doing a derived table.

    Break down the query like this

    SELECT...

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: Solving SUDOKU thru SQL Code

    Lynn Pettis (8/16/2011)


    SQLRNNR (8/16/2011)


    Blog post[/url] sneak peek.

    Sneak peek didn't work, at least for me.

    Crud - I had hoped it would since it worked for me. It is scheduled to...

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: syntax near a subquery

    It is not a common syntax, but it is listing the column names for the virtual table created by that subquery.

    Here is syntax that is easier to read.

    DECLARE @studentID INT...

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: Grant dbo_owner role

    That is a fast and easy enough way to do it.

    I would suggest creating a domain group and adding users to that domain group. Then add the domain group...

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: database diagram in management studio

    Interesting. Mine displays the links between tables for those that already have FKs defined.

    I'd look at doing this through a different tool. You may not want to make...

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: Solving SUDOKU thru SQL Code

    Blog post[/url] sneak peek.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: Solving SUDOKU thru SQL Code

    Late - but maybe still worth it. I'll be posting a blog on it shortly.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: database diagram in management studio

    It generally creates those links if the keys already exist.

    Do you already have FKs defined?

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: Configuring FILESTREAM for RBS

    I would ensure the RBS filegroup for each content database had a different name. I would also test it heavily in a dev/qa environment and ensure it works. ...

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

Viewing 15 posts - 9,031 through 9,045 (of 19,560 total)