Return DB Info

  • Does anyone know of a script to return the Server Name, DBName, DBO, Version, size of DB, and when last modified. There may already be a script posted somewhere around here, so if anybody finds it before I do, posting the link would be great. Thanks in advance for any help.

    -pat

  • In this link, there's a script that show some info from a given database. It is posted by me and if you don´t like I can create a new one for you.

    http://www.sqlservercentral.com/scripts/scriptdetails.asp?scriptid=145

  • any ideas on how to get server name, dbname, DB owner, and version?

  • To find the server name: Select @@servername

    DBName:select db_name() (where you are running it)

    DBO,size with sp_helpdb.

    The server version with: select @@version

  • thanks for your help. I appreciate it.

    -pat

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

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