I'm running a Powershell Script to configure search initially on one server. During the process I receive an error that it can not find the Usage and Health database. I used pre-created databases for Usage and Health following this article: http://blogs.msdn.com/b/sowmyancs/archive/2012/12/14/considerations-while-provisioning-the-service-application-using-pre-created-databases.aspx and Search is looking for the temporary database which I deleted. Usage and Health appears to be running fine and uses the correct database. How can I update Search or SP2013 to use the correct database and not the temporary database during the provision process? I have run Get-SPDatabase and the temporary database is not listed. The following is the Powershell Error:
New-SPEnterpriseSearchServiceApplication : A database exception occurred when creating Search Application: Cannot open database
"WSS_Usage_ToDelete01" requested by the login. The login failed.
The original Powershell script I am using is from: http://balamurugankailasam.blogspot.com/2013/04/sharepoint-2013-create-and-configure.html
Thank You in Advance.