Forum Replies Created

Viewing 15 posts - 16,516 through 16,530 (of 26,487 total)

  • RE: Orpaned logins

    Okay, took awhile but I finally have it written using ALTER USER.

    declare @ DatabaseName sysname = 'H90TST'; -- Added a space between @ and variable name to post code

    declare...

  • RE: Orpaned logins

    Paul White (3/16/2010)


    sp_change_users_login is on the deprecation list - it will be removed from a future version of SQL Server.

    You should use ALTER USER...WITH LOGIN instead.

    Good point. This is...

  • RE: T-SQL: Why “It Depends”

    Excellent article, Bob. It should be required reading for newbies so that the understand why we tell them "It Depends" so often.

  • RE: Are the posted questions getting worse?

    Paul White (3/16/2010)


    Isn't Bob's/Dixie's article an excellent read today?

    Shame about some of the layout, but hopefully that will be fixed soon.

    Most enjoyable.

    Not going to comment on the layout of the...

  • RE: Today's Random Word!

    mbricker-600840 (3/16/2010)


    Marguerita (too bad it's too early).

    I used to work for a company that had a frozen marguerita machine in the kitchen.

    Every afternoon, we would fire it up so it...

  • RE: Are the posted questions getting worse?

    [font="Comic Sans MS"]Party at the Tent in the Desert. The Hippo has been alerted that guests will be arriving.[/font]

    This post is number 10,001

  • RE: Orpaned logins

    I use the following code to fix orphaned SQL Server logins in my production HR and Finance systems. See if it will help you with your problem. You...

  • RE: Are the posted questions getting worse?

    [font="Comic Sans MS"]Party Time is just around the corner! Just one more post is needed![/font]

  • RE: Denormalization Strategies

    Les Cardwell (3/15/2010)


    Also, this:

    DECLARE @selectDate = getdate()-365

    won't work. In SQL Server 2008 it needs to be like this:

    DECLARE @selectDate datetime = getdate()-365

    For what it's worth, it doesn't work in...

  • RE: Are the posted questions getting worse?

    Timewarp? Redo the weekend? I don't think so. The Air Force Academy Fighting Falcons Hockey Team worked hard to beat the Black Knights of Army! They...

  • RE: Are the posted questions getting worse?

    SQL Server 2008

    declare @MyDate1 datetime,

    @MyDate2 datetime2;

    set @MyDate1 = getdate();

    set @MyDate2 = @MyDate1;

    select @MyDate1 - 10; -- Works

    select @MyDate2 -...

  • RE: date

    Ittech03 (3/15/2010)


    another issue, how would you get the date to not display a date if a check box is not checked

    Sorry, don't understand the question. Please explain what you...

  • RE: Are the posted questions getting worse?

    Alvin Ramard (3/15/2010)


    Lynn Pettis (3/15/2010)


    Alvin Ramard (3/15/2010)


    CirquedeSQLeil (3/15/2010)


    Lynn Pettis (3/15/2010)


    Alvin Ramard (3/15/2010)


    Anybody else see a problem with this statement?

    DECLARE @selectDate = getdate()-365

    Yes, in SQL Server 2008 it is missing the...

  • RE: Denormalization Strategies

    CirquedeSQLeil (3/15/2010)


    Lynn Pettis (3/15/2010)


    Les Cardwell (3/15/2010)


    In spite of the criticism, it was still a simple example of minimal denormalization to achieve an end result rather than a full-on explosion of...

  • RE: Are the posted questions getting worse?

    Alvin Ramard (3/15/2010)


    CirquedeSQLeil (3/15/2010)


    Lynn Pettis (3/15/2010)


    Alvin Ramard (3/15/2010)


    Anybody else see a problem with this statement?

    DECLARE @selectDate = getdate()-365

    Yes, in SQL Server 2008 it is missing the data type. Should...

Viewing 15 posts - 16,516 through 16,530 (of 26,487 total)