Skip to content

Write-SqlTableData gets TypeInitializationException with 22.1.1 #58

@KenRokos

Description

@KenRokos

I upgraded from 21.1.18256 to 22.1.1, and now Write-SqlTableData gets an error.

Write-SqlTableData : The type initializer for 'Microsoft.Data.SqlClient.InOutOfProcHelper' threw an exception.
At line:1 char:1
+ Write-SqlTableData @SQLServerArguments -TableName 'OperatorLogins' -I ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-SqlTableData], TypeInitializationException
    + FullyQualifiedErrorId : System.TypeInitializationException,Microsoft.SqlServer.Management.PowerShell.WriteSqlTableData

I also added -TrustServerCertificate to the command, but it fails the same way with or without that.

Metadata

Metadata

Assignees

Labels

more info neededI need more information to make progress

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions