Forum Replies Created

Viewing 15 posts - 5,746 through 5,760 (of 9,399 total)

  • RE: Need Ammunition for Developers Doing Select *'s

    Steve Jones - SSC Editor (6/18/2015)


    Teach him to just drag the columns from Object Explorer (or get SQL Prompt). Easy fixes for the dev that aren't a big deal.

    The key...

  • RE: Today's Random Word!

    TomThomson (6/18/2015)


    Revenant (6/17/2015)


    Stupor

    Dementia

    Confusion

  • RE: DBCC and disabled indexes

    I learned something new today as well. Thanks.

  • RE: Need to track logins to all databases

    Jeff Moden (6/17/2015)


    mark.dickinson (6/17/2015)


    B... Is there a way, based on the PostTime column, or a different column which could be added, to record only the most recent logon? For example,...

  • RE: Need to track logins to all databases

    Michael L John (6/17/2015)


    Sorry, I saw this post and ran out the door after I published the code.

    1. I have a DBAUtilities database on all my servers. This...

  • RE: Today's Random Word!

    Jeff Moden (6/17/2015)


    eccentricDBA (6/17/2015)


    Ed Wagner (6/17/2015)


    Eirikur Eiriksson (6/17/2015)


    Ed Wagner (6/17/2015)


    Revenant (6/17/2015)


    Ed Wagner (6/17/2015)


    crookj (6/17/2015)


    DonlSimpson (6/17/2015)


    djj (6/17/2015)


    Ed Wagner (6/17/2015)


    djj (6/17/2015)


    Ed Wagner (6/17/2015)


    Eirikur Eiriksson (6/17/2015)


    Chocolate

    Dark

    Light

    Sabre

    Tooth

    Tiger (I don't think I had a choice)

    Woods

    Hunting

    Egg

    Omlet

    Allium...

  • RE: Need to track logins to all databases

    mark.dickinson (6/17/2015)


    Michael L John (6/17/2015)


    CREATE TRIGGER [Server_Logon_Trigger]

    ON ALL SERVER

    FOR LOGON

    AS

    INSERT INTO DBAUtilities.dbo.Server_Logon_History(EventType, PostTime, ServerName, LoginName, LoginType, SID, ClientHost, IsPooled)

    SELECT EVENTDATA().value('(/EVENT_INSTANCE/EventType)[1]', 'nvarchar(100)'),

    EVENTDATA().value('(/EVENT_INSTANCE/PostTime)[1]', 'datetime'),

    EVENTDATA().value('(/EVENT_INSTANCE/ServerName)[1]', 'nvarchar(512)'),

    EVENTDATA().value('(/EVENT_INSTANCE/LoginName)[1]',...

  • RE: Today's Random Word!

    Eirikur Eiriksson (6/17/2015)


    Ed Wagner (6/17/2015)


    Revenant (6/17/2015)


    Ed Wagner (6/17/2015)


    crookj (6/17/2015)


    DonlSimpson (6/17/2015)


    djj (6/17/2015)


    Ed Wagner (6/17/2015)


    djj (6/17/2015)


    Ed Wagner (6/17/2015)


    Eirikur Eiriksson (6/17/2015)


    Chocolate

    Dark

    Light

    Sabre

    Tooth

    Tiger (I don't think I had a choice)

    Woods

    Hunting

    Egg

    Omlet

    Allium sativum

    Garlic (Had to look that...

  • RE: current security context

    sqlstar2011 (6/17/2015)


    I created a view in db1 database that points to tables in db2 database.

    However when I try to run a select against the view in db1 database I get...

  • RE: Need to track logins to all databases

    Michael L John (6/17/2015)


    CREATE TRIGGER [Server_Logon_Trigger]

    ON ALL SERVER

    FOR LOGON

    AS

    INSERT INTO DBAUtilities.dbo.Server_Logon_History(EventType, PostTime, ServerName, LoginName, LoginType, SID, ClientHost, IsPooled)

    SELECT EVENTDATA().value('(/EVENT_INSTANCE/EventType)[1]', 'nvarchar(100)'),

    EVENTDATA().value('(/EVENT_INSTANCE/PostTime)[1]', 'datetime'),

    EVENTDATA().value('(/EVENT_INSTANCE/ServerName)[1]', 'nvarchar(512)'),

    EVENTDATA().value('(/EVENT_INSTANCE/LoginName)[1]', 'nvarchar(512)'),

    EVENTDATA().value('(/EVENT_INSTANCE/LoginType)[1]',...

  • RE: Today's Random Word!

    Revenant (6/17/2015)


    Ed Wagner (6/17/2015)


    crookj (6/17/2015)


    DonlSimpson (6/17/2015)


    djj (6/17/2015)


    Ed Wagner (6/17/2015)


    djj (6/17/2015)


    Ed Wagner (6/17/2015)


    Eirikur Eiriksson (6/17/2015)


    Chocolate

    Dark

    Light

    Sabre

    Tooth

    Tiger (I don't think I had a choice)

    Woods

    Hunting

    Egg

    Omlet

  • RE: Today's Random Word!

    crookj (6/17/2015)


    DonlSimpson (6/17/2015)


    djj (6/17/2015)


    Ed Wagner (6/17/2015)


    djj (6/17/2015)


    Ed Wagner (6/17/2015)


    Eirikur Eiriksson (6/17/2015)


    Chocolate

    Dark

    Light

    Sabre

    Tooth

    Tiger (I don't think I had a choice)

    Woods

    Hunting

  • RE: Today's Random Word!

    djj (6/17/2015)


    Ed Wagner (6/17/2015)


    Eirikur Eiriksson (6/17/2015)


    Chocolate

    Dark

    Light

    Sabre

  • RE: Today's Random Word!

    Eirikur Eiriksson (6/17/2015)


    Chocolate

    Dark

  • RE: Culture Clashes and Arrogance

    Andy Warren (6/17/2015)


    Ed, that's the first I had read about that element - nice!

    Thanks, but I can't claim credit for coming up with it. I first saw it years...

Viewing 15 posts - 5,746 through 5,760 (of 9,399 total)