Infer values for server and database from SQLSERVER: drive.
Infers the server instance and database from the current location or, if not on a SQL Server drive, then from the default SQLSERVER: drive. It extends the notion of default context. That is, you do not actually have to be on the SQLSERVER: drive, only to have set the current location on that drive to a server and database path.
This cmdlet supports the common parameters: Verbose, Debug,
If your current location is *not* on a SQLSERVER: drive or alias, then the current location of the SQLSERVER: drive is used as the reference location. If your current location includes the SQLSERVER: drive or an alias to some node on it, that is the reference location. Either way, the reference location is examined to see if it contains a server and/or database. If either server or db are both are not found $null is returned for that item.