我們的品牌

Impact-Company-Logo-English Black-01-177x54

歡迎造訪施耐德電機全球網站

歡迎訪問我們的網站
		
我们今天能为您提供什么帮助?
How to View Database Information

Issue
A view of the basic database information can be very useful in determining its configuration, maintaining and monitoring its growth
and to aid in estimating future resource and configuration requirement.  (ie.  a system upgrade)
This information can also be very helpful to identify the cause of some database issues.

Product Line
Struxureware Power Monitoring
Power Monitoring Expert
ION Enterprise
ION EEM

Environment
SQL Server 2005

SQL Server 2008 R2

SQL Server 2012,

SQL Server 2014

SQL Server 2016

Cause
Database maintenance and troubleshooting possible database issues.

Resolution
A SQL stored procedure, sp_helpdb,  can be used to obtain and examine database information.

To do so, in SQL Server Management Studio, access the Query view panel.
This can be accomplished by right-clicking the name of a server to which you have already connected in the Object Explorer view and then selecting New Query.
Alternatively, you can click New Query on the main toolbar, select Database Engine Query, and then establish a connection to the Database on a specific server.


After you have accessed the Query view, use the following command, where <dbname> is the name of the database you want to examine:
sp_helpdb <dbname>
go

Viewing the database information in this way, presents an overview of the database as well as a listing of current data and log files.
Below is a summary of the information available when using this stored procedure to display the database properties .
This data is returned in two different result sets.  Scroll down in the Results pane to see the additional result set.

compatibility_level - The current compatibility level of the database. The level 90 indicates SQL Server 2008 compatibility.
created - The date the database was created.
db_size - The total size of the database, including all data and log files.
dbid - The unique identifier for the database on the current server.
filegroup - The filegroup associated with the database file. Filegroups allow you to group sets of database files together.
fileid - The unique identifier for the file in the current database.
filename - The full file name and path.
growth - The number of megabytes or percent by which the file grows.
maxsize - The maximum file size. Unlimited means there is no limit.
name - The name of the database or file (without a file extension).
owner - The database owner.
size - The current size of a file.
status - The database status.
usage - The way the file is used, such as data only or log only.

施耐德電機Taiwan

探索更多
系列:
探索更多
系列:

需要協助?

  • 從這裡開始!

    現在就找尋答案。自行搜尋解決方案,或與我們的專家聯絡。

  • 聯絡客服

    聯繫我們的客戶服務團隊以獲得更多資訊、技術支援、投訴協助等。

  • 購買地點

    輕鬆在您所在地區找到最近的施耐德電機經銷商。

  • 瀏覽 FAQ

    瀏覽主題相關常見問題 (FAQ),藉此取得您所需要的答案。

  • 聯絡業務

    歡迎您線上提問,將有專家與您聯絡。

我願意透過電子通訊方式(如電子郵件)從施耐德電機及其附屬公司接收新聞和商業資訊,我也同意他們收集這些電子郵件的開啟和點擊資訊(使用隱藏式追蹤像素),以衡量溝通效益並優化這些資訊。如您需更多詳細資訊,請參閱施耐德電機的 隱私權政策

  • 產品文檔
  • 軟體下載
  • 產品選型工具
  • 產品替代和替換
  • 幫助和聯絡中心
  • 尋找我們的辦公室
  • 取得報價
  • 人才招募
  • 公司簡介
  • 舉報不當行為
  • 無障礙
  • 新聞中心
  • 投資者
  • 專業洞察
  • 台灣施耐德電機學院
  • 綠色影響力落差調查
  • Schneider Go Green 2025
  • 隱私政策
  • Cookie通告
  • 使用條款
  • Change your cookie settings