Hôm nay chúng tôi có thể giúp gì cho bạn?

Power Monitoring Expert (PME): How to manually detach an ION Databases using SQL CMD commands in the command prompt.

Issue
The Power Monitoring Expert (PME) ION databases may need to be detached from the PME SQL instance. If there is an issue with detaching the databases using SQL Server Management Studio (SSMS).

Product line

Power Monitoring Expert 8.x
Power Monitoring Expert 9.x
Power Monitoring Expert 2020
Power Monitoring Expert 2021
Power Monitoring Expert 2022
Power Monitoring Expert 2023

Power Monitoring Expert 2024

Environment
Power Monitoring Expert (PME)

SQL Server
Command Prompt

Cause

Power Monitoring Expert (PME) databases may need to be detached for troubleshooting, upgrades, etc. The databases can be detached using SQL CMD commands from the command prompt if other methods are not successful.

Resolution

  1. Open the command prompt (Type "cmd" in the Windows start menu) Note: After each command, press enter to execute.
  2. Type one of the following commands to login to Microsoft SQL Server, replacing what's in the < > brackets with the correct system information. The first command is if using SQL Server Authentication for login, the second command is to use Windows Authentication to login.  (Example: sqlcmd -U sa -P ION!Everywhere -S MyServer\ION.)
    sqlcmd -U <username> -P <Password> -S <ServerName>\<SQLInstance>
    sqlcmd -E -S <WindowsDomain\Username> -S <ServerName\SQLInstance>


  3. Next use this command to detach the database once again replacing < > with the correct system information. (Example: EXEC sp_detach_db ION_Data)
    EXEC sp_detach_db <database name>

4. Then type the following two commands:

> GO 
> QUIT

The database should now be detached.

Schneider Electric Việt Nam

Bạn cần trợ giúp?

Bạn cần trợ giúp?

Công cụ chọn sản phẩm

Công cụ chọn sản phẩm

Nhanh chóng và dễ dàng tìm được sản phẩm và phụ kiện phù hợp cho các ứng dụng của bạn.

Nhận báo giá

Nhận báo giá

Bắt đầu gửi yêu cầu bán hàng trực tuyến và chuyên gia sẽ liên hệ với bạn.

Nơi mua hàng?

Nơi mua hàng?

Dễ dàng tìm nhà phân phối Schneider Electric gần bạn nhất.

Trung tâm Hỗ trợ

Trung tâm Hỗ trợ

Tìm sự hỗ trợ cho mọi nhu cầu của bạn tại một nơi.

  • Tài liệu về Sản phẩm
  • Tải xuống phần mềm
  • Công cụ chọn Sản phẩm
  • Thay thế và thay đổi sản phẩm
  • Trung tâm Hỗ trợ
  • Tìm Văn phòng của chúng tôi
  • Nhận báo giá
  • Tìm Nhà Phân phối
  • Cộng đồng Schneider Electric
  • Cơ hội nghề nghiệp
  • Hồ sơ doanh nghiệp
  • Báo cáo hành vi sai trái
  • Khả năng truy cập
  • Phòng tin tức
  • Nhà đầu tư
  • EcoStruxure
  • Tìm việc
  • Blog
  • Chính sách bảo mật
  • Thông báo về Cookie
  • Điều khoản sử dụng
  • Change your cookie settings