How can we help you today?

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 Australia

Users group

Discuss this topic with experts

Visit our Community for first-hand insights from experts and peers on this topic and more.

Need help?

Need help?

Product Selector

Product Selector

Quickly and easily find the right products and accessories for your applications.

Get a Quote

Get a Quote

Start your sales inquiry online and an expert will connect with you.

Where to buy?

Where to buy?

Easily find the nearest Schneider Electric distributor in your location.

Help Centre

Help Centre

Find support resources for all your needs, in one place.

  • Products Documentation
  • Software Downloads
  • Product Selector
  • Product Substitution and Replacement
  • Help and Contact Centre
  • Office Locations
  • Where to buy
  • Phone: 13 73 28 (13 SEAU)
  • Schneider Electric Community
  • Careers
  • Company Profile
  • Report a misconduct
  • Newsroom
  • Investors
  • EcoStruxure
  • Job Search
  • Blog
  • Privacy Policy
  • Cookie Notice
  • Terms and Conditions of Sale
  • Change your cookie settings