CORRECTION:
INSTANCENAME is optional!
But, if an error occurs during MSDE setup and the setup rollback is performed after confirming the error message,
the instance sub-folders of C:\Program Files\Microsoft SQL Server\ ...
MSSQL ... for a default instance
MSSQL$[instance_name] ... for a...
Got it!
Have to use:
Do
RC = MsgWaitForMultipleObjects(1, ProcessInfo.hProcess, 0, ProgEndTimeout * 1000, (QS_POSTMESSAGE Or QS_SENDMESSAGE))
If RC = WAIT_FAILED Then Err.Raise 1
DoEvents
Loop While RC <> WAIT_OBJECT_0
...instead of WaitForSingleObject(...)
But, now something else...
Hi folks,
I need to install the MSDE during a setup of one of our apps.
The online help of SQL server 2000 suggests to use CreateProcess() and WaitForSingleObject() for this and supplies a sample code, too. No prob. This is an easy task. I do this all the time when I have to run something...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.