how to get database names with in the server

  • hi

    Query for how to get database names with in the server.

    and also how to find database 'sa' password .

    Thanks
    Dastagiri.D

  • database names on the server can be found with this query

    SELECT name FROM sys.databases

    as for the sa password, you will need to ask your DBA as I don't think there is any other way to find it out via sql.

  • This is an interesting sequence of questions... :Whistling:

    EXEC sp_helpdb;

    You are on your own to break the sa password.

Viewing 3 posts - 1 through 2 (of 2 total)

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