Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String would be truncated in table 'TimeZones', column 'DisplayName' #22

Open
michull opened this issue Oct 18, 2023 · 0 comments
Open

Comments

@michull
Copy link

michull commented Oct 18, 2023

Installing the project leads to the following error on my system (Windows 10, German):

Write-SqlTableData : The given value '(UTC+01:00) Belgrad, Bratislava (Pressburg), Budapest, Ljubljana, Prag (Praha)'
of type String from the data source cannot be converted to type nvarchar for Column 1 [DisplayName] Row 53.
In C:\dba-database\Install-LatestDbaDatabase.ps1:75 Zeichen:9
+         Write-SqlTableData  -ServerInstance $instance -Database $Data ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: ([dbo].[TimeZones]:Table) [Write-SqlTableData], InvalidOperationException
    + FullyQualifiedErrorId : WriteToTableFailure,Microsoft.SqlServer.Management.PowerShell.WriteSqlTableData

The DisplayName has 78 characters which does not fit into 64 characters of the column DisplayName in table TimeZones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant