Forum Replies Created

Viewing 15 posts - 46 through 60 (of 99 total)

  • RE: Best code for generating sequence numbers

    If I am not misreading the original request, I think you are trying to get multiple pseudo-identity columns in a single table.

    This is a somewhat squirrely approach but it'd probably...

  • RE: NOLOCK in update statement

    And for (future) reference-- looking at the execution plan should show they are identical.

  • RE: Today's Random Word!

    jcrawf02 (2/19/2010)


    mstjean (2/19/2010)


    SuspicionBreedsConfidence**

    **An ironic phrase appearing in the background in one of the greatest movies ever made, but in the context of a SQL DBA's life, a truism.

    I love that...

  • RE: Today's Random Word!

    SuspicionBreedsConfidence**

    **An ironic phrase appearing in the background in one of the greatest movies ever made, but in the context of a SQL DBA's life, a truism.

  • RE: Today's Random Word!

    {hijack with apologies}

    sing4you (2/17/2010)


    mstjean (2/17/2010)


    Nine apathetic, sympathetic, diabetic old men on roller skates with a marked propensity toward procrastination and sloth

    Isn't this from "'Twas the night of the King's ....

  • RE: Today's Random Word!

    Nine apathetic, sympathetic, diabetic old men on roller skates with a marked propensity toward procrastination and sloth

  • RE: Today's Random Word!

    Is it safe to assume you will be relocating to Mount Olympus soon? Judging from your avatar it appears you're already appropriately attired.

  • RE: Today's Random Word!

    a_solid_gold_kama_sutra_coffee_pot

  • RE: Today's Random Word!

    Ray

    (...you talkin' to ) Me?

  • RE: Today's Random Word!

    Doh was yesterday's.

    Today is "so-close-to-the-weekend-I-can-taste-it"

    Whoops. Sorry, forgot to include the code I used to derive my d'oh. When I re-ran it, it still comes up d'oh.

    CASE

    WHEN...

  • RE: Today's Random Word!

    d'oh

  • RE: Database Users And Associated Database Roles

    Glad you like it.

    By the way, my identity is not "SSC-Enthusiastic", just as yours is not "Forum Newbie".

    Generally you should try to avoid using cursors in tsql-- with few...

  • RE: Database Users And Associated Database Roles

    You don't need a cursor; run this from the db you want to collect information on.

    SELECT

    sdp2.[name] as DBUser, sdp2.type_desc as DBUserType,

    sdp1.[name] as DBUserRole, sdp1.type_desc as DBUserRoleType

    FROM sys.database_role_members drm

    LEFT JOIN sys.database_principals...

  • RE: Refreshing Views

    ...when I needed to refresh all views, I was used to create the script with all DROP and CREATE for all views,...

    If/when you do this-- be sure you grab the...

  • RE: How to know what time a table is last-updated?

    This would NOT catch updates to a non-indexed table and it only has info since the last SQL restart, but if THOSE conditions were not game-stoppers, would this be a...

Viewing 15 posts - 46 through 60 (of 99 total)