Sa login

  • Hi,

    I have given a project with a list of servers and my client requested to get a report on the servers using sa login.

    Please help me in doing this.

    Thanks.

  • You can get the information about server in system tables such as sysservers, sysconfigures, sysdevices etc...

    Or just use the search at the top the page for scripts...

    --Ramesh


  • Thanks for your immediate response.

    Do you have any scripts to find out who are(were) logged in on a server and what databases they access.

  • Hi,

    Pls. try this:

    SELECT name

    FROM master.dbo.syslogins

    WHERE IS_SRVROLEMEMBER( 'sysadmin' , name ) = 1

    Saravanan

  • Since I'm a developer, I don't keep much administrative stuffs with myself:hehe:

    Anyways, here is a script to retrieve server information along with current active user information.

    --Ramesh


Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply