This project has moved and is read-only. For the latest updates, please go here.

Remove underscore ( _ ) from database creation

Feb 8, 2013 at 5:39 PM
My SQL team does not like to have underscores in the database names. I am looking to remove the addition of the underscore in the autospinstaller scripts. From what I can see, it looks like the only think I need to do is comment out line 45 of the AutoSPInstallerMain.ps1 script which is as follows:

If (($dbPrefix -ne "") -and ($dbPrefix -ne $null)) {$script:DBPrefix += "_"}

Can anyone confirm whether I am right or wrong about this?
Feb 8, 2013 at 8:27 PM
Yes, or just use your own separator instead of the underscore. I wouldn't comment out the line, just remove the underscore at the end. I believe you'd get errors if $script:DBPrefix is not defined at all.