SQL Server 2012 SQLPs Module - Changing current location automatically?
问题 I have a large library of existing powershell scripts, primarily to run some complicated logic and interactions between SQL Server and the file system. The SQL interactions typically are performed through the cmdlet Invoke-SQLCmd . Recently the SSMS version on all of my servers was upgraded to 2012. This meant I had to make some changes to my code to remove references to the sqlserverprovidersnapin100 and sqlservercmdletsnapin100 since those are deprecated in 2012 in favor of importing the