Closed centeiol closed 1 year ago
Hi
$data | Write-DbaDbTableData -SqlInstance $serverName -Database $databaseName -Schema dbo -Verbose -Table $tableName -AutoCreateTable
but for example Invoke-Sqlcmd -ServerInstance OMX-LPT-0107\SQLEXPRESS -Query "select * from sys.databases" is OK
I read somewhere that I could put TrustServerCertificate=True in connectio string, but where in Write-DbaDbTableData ?
How can I overcome this issue?
Hi there, Check out this blog post that talks through the new defaults for SMO and how to get around that error: https://dbatools.io/newdefaults
Hi
$data | Write-DbaDbTableData -SqlInstance $serverName -Database $databaseName -Schema dbo -Verbose -Table $tableName -AutoCreateTable
give me Error occurred while establishing connection to localhost\SQLEXPRESS | The certificate chain was issued by an authority that is not trusted
but for example Invoke-Sqlcmd -ServerInstance OMX-LPT-0107\SQLEXPRESS -Query "select * from sys.databases" is OK
I read somewhere that I could put TrustServerCertificate=True in connectio string, but where in Write-DbaDbTableData ?
How can I overcome this issue?