Resolving WinCC V7.0 SQL Server 2005 Instance Not Found Installation Error
Siemens WinCC V7.0 is a SCADA/HMI platform that depends on Microsoft SQL Server 2005 and the Microsoft Message Queuing (MSMQ) Windows component. When either dependency is missing, the installation halts with instance-not-found errors that are not always self-explanatory. This reference documents the precise root cause, the prerequisite components that must be present before the installer is launched, and the field-tested recovery procedure used by automation engineers when the bundled SQL Server cannot be located by the WinCC setup routine.
1. Problem Description
During a fresh installation of Siemens WinCC V7.0 (including SP1, SP2, and SP3 updates) on a supported Windows workstation or server, the installer displays one of the following error dialogs:
- Primary error: "The instance 'WinCC' of SQL Server 2005 was not found. Setup will be terminated."
- Secondary error (after enabling MSMQ): "SQL Server installation cannot be found. Setup will be terminated."
-
Tertiary error: Setup reports a missing file such as
setupsql.exeorSQLSERVR.EXEin the expected redistributable path.
All three errors share the same root cause: the WinCC V7.0 setup detects that either the MSMQ Windows component is disabled or the SQL Server 2005 instance named WinCC (the instance that WinCC creates during its own setup pass) cannot be reached. Because WinCC V7.0 redistributes a licensed copy of SQL Server 2005 on its installation media, the failure almost always indicates a corrupted redistributable path, an incomplete prerequisite install, or a Windows component that has been stripped from the image.
2. Affected Products and Versions
| Product | Order Number (MLFB) | Build Range | SQL Instance | Status |
|---|---|---|---|---|
| WinCC V7.0 | 6AV6 381-1AA07-0AX0 | 7.0.0.0 - 7.0.0.214 | WINCC (named) | Affected |
| WinCC V7.0 SP1 | 6AV6 381-1AA07-1AX0 | 7.0.1.x | WINCC (named) | Affected |
| WinCC V7.0 SP2 | 6AV6 381-1AA07-2AX0 | 7.0.2.x | WINCC (named) | Affected |
| WinCC V7.0 SP3 | 6AV6 381-1AA07-3AX0 | 7.0.3.x | WINCC (named) | Affected |
| WinCC V7.0 SP4 | 6AV6 381-1AA07-4AX0 | 7.0.4.x | WINCC (named) | Affected (last SP) |
| WinCC V6.x | 6AV6 381-1AA06-xAX0 | 6.0 - 6.2 | WINCC (named) | Not affected (different redistributable) |
3. Root Cause Analysis
WinCC V7.0 setup is a two-stage installer:
-
Stage 1 (SQL Server 2005 redistributable): Setup launches the embedded Microsoft SQL Server 2005 installer and provisions a named instance called
WinCC. This stage requires the MSMQ Windows component to be enabled before the setup is started. - Stage 2 (WinCC application): Setup installs the WinCC runtime, editors, and SQL Server 2005 Service Pack 2 hotfix on top of the named instance.
When MSMQ is disabled (default on bare Windows Server 2003 R2 / Windows Server 2008 installations), the Stage 1 SQL installer fails silently or rolls back. The Stage 2 WinCC installer then attempts to attach to a SQL instance that does not exist, generating the "WinCC instance of SQL Server 2005 was not found" error.
When the second-stage installer is re-run without first repairing the SQL redistributable, the error shifts to "SQL Server installation cannot be found" because the embedded setup.exe payload expects the SQL Server 2005 bootstrap files in \\WinCC\InstData\SQLServer2005\ of the installation media.
4. Pre-Installation Prerequisites
| Component | Requirement | Verification Command |
|---|---|---|
| Windows Edition | Windows XP Professional SP3, Windows Server 2003 SP2, Windows Server 2003 R2 SP2, Windows 7 Professional/Ultimate (SP1 for SP3+) | winver |
| Microsoft Message Queuing (MSMQ) | Installed and Started (Service: MSMQ) |
sc query MSMQ |
| IIS (Internet Information Services) | Required for Web Navigator; install with ASP.NET enabled | Check IIS Manager |
| .NET Framework | 3.0 minimum (3.5 SP1 for SP3+) | Add/Remove Programs |
| SQL Server 2005 | NOT pre-installed (WinCC provides its own) |
sc query MSSQL$WINCC must return "not found" |
| Free Disk Space | 8 GB minimum (15 GB with WinCC options) | dir C:\ /-c |
| RAM | 2 GB minimum, 4 GB recommended | systeminfo | findstr Memory |
| Local Administrator Rights | Required for installation account | net user %username% |
| User Account Control (UAC) | Disabled during installation on Vista/2008 | reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA |
5. Step-by-Step Resolution Procedure
5.1 Enable Microsoft Message Queuing Services
- Open Control Panel → Add or Remove Programs.
- Click Add/Remove Windows Components (left pane).
- In the Windows Components Wizard, scroll to Message Queuing and place a check mark.
- Click Details, enable Common and Triggers sub-components, then confirm with OK.
- Insert the operating system installation media when prompted.
- Click Next, then Finish.
- Verify the service is running:
net start MSMQor openservices.mscand confirm Message Queuing is set to Automatic and Started.
5.2 Verify SQL Server 2005 Redistributable is Intact
- Insert the original WinCC V7.0 installation DVD (or mount the ISO).
- Confirm the following files exist on the media:
InstData\SQLServer2005\Servers\setup.exeInstData\SQLServer2005\Servers\setupsql.exeInstData\SQLServer2005\Tools\setup.exe
- If any file is missing or 0 bytes, copy the entire
InstDatafolder from the original Siemens DVD image to a local folder (do not run setup from a network share). - Confirm the DVD is an original Siemens-licensed distribution. Third-party rebundled media often omits the
SQLServer2005payload.
5.3 Repair or Reinstall SQL Server 2005 Instance "WINCC"
- Open Control Panel → Administrative Tools → Services.
- Search for the service
MSSQL$WINCC. If it is present but stopped, attempt to start it manually:net start MSSQL$WINCC. - If the service does not exist, run the WinCC V7.0 setup again. This time the installer will detect the previous partial install and offer Repair.
- If the installer only offers Remove, use it to clean the registry entries, then re-run setup for a fresh install.
5.4 Clear Partial Installation Artifacts
If the setup fails repeatedly after Repair, manually purge remnants:
- Stop and delete the SQL service:
sc delete MSSQL$WINCC - Delete registry keys:
HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\WINCCHKLM\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL\WINCC-
HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1(only if no other SQL instance uses it)
- Delete folders
C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQLandC:\Program Files\Microsoft SQL Server\MSSQL$WINCC. - Delete data directories under
C:\Program Files\Siemens\Automation\WinCC\only after backing up project archives. - Reboot the machine.
- Run setup as Administrator.
C:\Program Files\Siemens\Automation\WinCC\ before deletion.6. Verification Steps
After the install completes, verify the system is healthy:
-
SQL Service Status:
sc query MSSQL$WINCCmust returnSTATE: 4 RUNNING. -
SQL Connectivity: Open
C:\Program Files\Microsoft SQL Server\MSSQL$WINCC\MSSQL\Binn\sqlcmd.exeand execute:sqlcmd -S .\WINCC -E SELECT @@VERSION GOExpected output:
Microsoft SQL Server 2005 - 9.00.xxxx.xx (Intel X86) -
MSMQ Status:
sc query MSMQreturnsSTATE: 4 RUNNING. - WinCC Project Manager: Launch from Start Menu → Siemens Automation → WinCC → WinCC Explorer. The console opens without "Database connection failed" prompts.
- Alarm Logging Test: Create a temporary project, open Alarm Logging, and confirm the editor opens and shows the default column headers (Date, Time, Number, Status, etc.).
-
Tag Logging Runtime Test: Open Tag Logging, insert a process tag, start runtime, and confirm the values are archived in the SQL database:
sqlcmd -S .\WINCC -E -d CC_<ProjectName>_<timestamp> -Q "SELECT COUNT(*) FROM dbo.PDE#TAGs"
7. Common SQL Installation Errors and Codes
| Error Code | Message | Likely Cause | Resolution |
|---|---|---|---|
| SQL Server 2005 Setup 0x80070005 | Access is denied | Setup not run as Administrator | Re-run setup elevated |
| SQL Server 2005 Setup 0x80070017 | CRC error reading media | DVD damaged or ISO corrupted | Re-image DVD from Siemens download |
| SQL Server 2005 Setup 0x84B40000 | MSMQ not installed | Section 5.1 not performed | Enable MSMQ, reboot, retry |
| Setup 1603 | Fatal error during installation | Antivirus blocking SQL files | Disable AV, retry |
| Setup 1706 | No valid source path | Running from network share | Copy to local disk |
| WMI error 0x80041010 | Invalid class | Corrupted WMI repository | winmgmt /salvagerepository |
8. Troubleshooting Matrix
| Symptom | First Check | Second Check | Final Action |
|---|---|---|---|
| "Instance WinCC not found" | MSMQ service state | SQL service state | Enable MSMQ, repair SQL |
| "Cannot find SQL installation" | Media files present? | Run setup from local disk | Replace DVD |
| Setup hangs at "Loading components" | DCOM permissions | Windows Firewall | Disable FW, re-run |
| "DCOM error 10016" in event log | Local Activation for SQL service account | Component Services → DCOM Config | Grant launch permissions to SYSTEM |
| Runtime cannot start after install | WinCC service account | SQL Server login WinCCUser
|
Re-run setpdiag.exe |
| Database archive corrupted | Free disk space on log drive | SQL transaction log size | Shrink log, set recovery to simple |
9. Post-Installation Hardening
- Apply the latest WinCC V7.0 SP available (SP4 if licensed) and the matching SQL Server 2005 hotfix rollup. See Siemens Product Support Entry ID
63409384for the SP4 release notes. - Move the SQL Server data files (
.mdf,.ldf) off the system partition onto a dedicated data drive. - Configure daily backups of the WinCC project directories and the SQL databases using
sqlmaint.exeor the Siemens WinCC/Dat@Monitor backup agent. - Set the WinCC project to Multilingual mode and pin the user interface to a single language to avoid DLL version conflicts.
- Enable Windows Event Log forwarding to a central syslog/SCADA event collector; alarm acknowledgement is logged under
WinCC→ConnectionEvents.
10. Migration Path Off WinCC V7.0
Because WinCC V7.0 is in Extended Support per the Siemens Product Lifecycle Portal, new deployments should consider migration to:
- WinCC V7.5 SP2 / V8.0 — drop-in upgrade for V7.0 with SQL Server 2014/2017 instead of SQL Server 2005.
- WinCC Professional (TIA Portal) — integrated engineering for S7-1500/ET200SP targets.
- WinCC Unified (PC) — HTML5-based UI for multi-device operation.
The MSMQ dependency is removed in WinCC V7.4 and later; the resolver stack now uses TCP-based communication, eliminating the entire root cause described in this article.
11. Field-Proven Caveats
- Disable any third-party antivirus before starting the SQL stage; McAfee, Symantec Endpoint Protection, and Trend Micro have all been documented to quarantine
sqlservr.exemid-install. - Never run WinCC V7.0 setup from a UNC path (\server\share). The SQL bootstrap is not designed for remote install and will fail with error 1706 even if the share is reachable.
- If the system has Windows Update KB3072630 or later installed, verify the SQL Server 2005 instance starts after reboot. The 2016 TLS hardening update can break the legacy SQL handshake.
- On Windows 7 / Server 2008 R2 with UAC, the WinCC setup must be elevated even if the installing user is a member of the local Administrators group.
- Project directory paths longer than 260 characters break the SQL connection string parser. Keep
C:\Program Files\Siemens\Automation\WinCC\<ProjectName>paths under 100 characters.
Why does WinCC V7.0 require Microsoft Message Queuing?
MSMQ is the transport layer for the WinCC internal alarm, archive, and user-archive routing between the data manager, runtime, and OPC server. Without MSMQ running, the SQL Server 2005 stage cannot complete its inter-process messaging registration, so the installer rolls back and reports the instance-not-found error.
Can I install my own SQL Server 2005 instead of using the bundled one?
No. WinCC V7.0 setup enforces a named instance called WinCC and ships a specific SQL Server 2005 build (9.00.x) plus a private hotfix that is not redistributed separately. Pre-installed SQL Server 2005 instances with the same name will conflict; use a different instance name (e.g., WINCCAPP) only if you also patch the WinCC registry keys, which is not supported.
Is WinCC V7.0 still supported on Windows 10?
Siemens officially supports WinCC V7.0 only up to Windows 7 Professional SP1 and Windows Server 2008 R2 SP1. Some integrators have installed V7.0 on Windows 10 in compatibility mode, but the SQL Server 2005 instance has known issues with the Universal C Runtime and frequently refuses to start after reboot.
Where can I download the original WinCC V7.0 installation media?
Active customers with an active Software Update Service (SUS) contract can download the current SP from the Siemens Product Support portal. Note that the SP only updates an existing install — the base V7.0 DVD is still required for first-time installation.
How do I confirm MSMQ is the root cause without re-running setup?
Run sc query MSMQ from an elevated command prompt. If the service is STOPPED or does not exist, MSMQ is the primary suspect. You can also check the Windows component log at C:\Windows\setupapi.log for recent MSMQ install entries; absence of "Message Queuing" entries confirms the Windows component was never enabled.