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
- Open the command prompt (Type "cmd" in the Windows start menu) Note: After each command, press enter to execute.
- 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> - 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.
게시 대상: 슈나이더 일렉트릭 Korea
도움이 필요하신가요?
제품 선택기
애플리케이션에 적합한 제품과 액세서리를 빠르고 쉽게 찾을 수 있습니다.
견적 받기
영업 관련하여 온라인으로 문의하시면 전문가가 연락드립니다.
구매처
해당 지역의 가장 가까운 슈나이더 일렉트릭 대리점을 쉽게 찾을 수 있습니다.
지원 센터
한 곳에서 모든 요구 사항에 대한 지원 리소스를 찾아보십시오.