You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It doesn't appear there is way to pass in all the same parameters as connect-sql. So if I wanted to connect using sql credentials or windows, I wouldn't be able to that with invoke-query
- Changes to common module: Invoke-Query
- Fixes issues in [issue #1355](#1355)
- Works together with Connect-SQL now
- Parameters and Aliases now match that of Connect-SQL
- Can now pass in credentials
- Can now pass in 'Microsoft.SqlServer.Management.Smo.Server' object
- Can also pipe in 'Microsoft.SqlServer.Management.Smo.Server' object
- Can pipe Connect-SQL | Invoke-Query
- Added default vaules to Invoke-Query
It doesn't appear there is way to pass in all the same parameters as connect-sql. So if I wanted to connect using sql credentials or windows, I wouldn't be able to that with invoke-query
$serverObject = Connect-SQL -ServerName $SQLServer -InstanceName $SQLInstanceName
Also the parameters differ from Connect-SQL, can we create alias ServerName and InstanceName of Invoke-Query
The text was updated successfully, but these errors were encountered: