Forum Replies Created

Viewing 15 posts - 46 through 60 (of 100 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...


    Cursors are useful if you don't know SQL

  • RE: NOLOCK in update statement

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


    Cursors are useful if you don't know SQL

  • 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...


    Cursors are useful if you don't know SQL

  • 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.


    Cursors are useful if you don't know SQL

  • 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 ....


    Cursors are useful if you don't know SQL

  • RE: Today's Random Word!

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


    Cursors are useful if you don't know SQL

  • 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.


    Cursors are useful if you don't know SQL

  • RE: Today's Random Word!

    a_solid_gold_kama_sutra_coffee_pot


    Cursors are useful if you don't know SQL

  • RE: Today's Random Word!

    Ray

    (...you talkin' to ) Me?


    Cursors are useful if you don't know SQL

  • 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...


    Cursors are useful if you don't know SQL

  • RE: Today's Random Word!

    d'oh


    Cursors are useful if you don't know SQL

  • 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...


    Cursors are useful if you don't know SQL

  • 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...


    Cursors are useful if you don't know SQL

  • 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...


    Cursors are useful if you don't know SQL

  • 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...


    Cursors are useful if you don't know SQL

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